]> git.example.dev Git - binbsis50.git/commitdiff
removed Makefile in favour of npm scripts
authorLuigi Pinca <luigipinca@gmail.com>
Sun, 17 May 2015 14:49:27 +0000 (16:49 +0200)
committerLuigi Pinca <luigipinca@gmail.com>
Sun, 17 May 2015 15:37:13 +0000 (17:37 +0200)
Makefile [deleted file]
package.json

diff --git a/Makefile b/Makefile
deleted file mode 100644 (file)
index 7d245da..0000000
--- a/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-SHELL=/bin/bash -o pipefail
-DIR=public/js/
-
-default:
-       @:
-
-install: minify
-       @NODE_ENV=development npm i | awk '1; END { if (NF != 0) print "" }' \
-               && node util/load_sample_tracks.js
-
-minify:
-       @uglifyjs $(DIR)app.js -o $(DIR)app.min.js \
-               && uglifyjs $(DIR)home.js -o $(DIR)home.min.js \
-               && uglifyjs $(DIR)leaderboards.js -o $(DIR)leaderboards.min.js
-
-.PHONY: default install minify
index 3908e74de9926d25ee47126b71dd283062acda59..b07870b2188a77de9914891e152338eca598c788 100644 (file)
@@ -1,5 +1,20 @@
 {
-  "analyze": false,
+  "name": "binb",
+  "version": "0.5.6-2",
+  "description": "Competitive, multiplayer, realtime, guess the song game",
+  "homepage": "https://binb.co",
+  "bugs": "https://github.com/lpinca/binb/issues",
+  "license": "MIT",
+  "author": "Luigi Pinca",
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/lpinca/binb.git"
+  },
+  "scripts": {
+    "minify": "for f in public/js/{app,home,leaderboards}; do uglifyjs $f.js -o $f.min.js; done",
+    "import-data":"node util/load_sample_tracks.js",
+    "start": "node app.js"
+  },
   "dependencies": {
     "async": "0.9.x",
     "body-parser": "1.12.x",
   },
   "devDependencies": {
     "JSONStream": "0.10.x"
-  },
-  "engines": {
-    "node": "0.10.x"
-  },
-  "name": "binb",
-  "repository": {
-    "type": "git",
-    "url": "https://github.com/lpinca/binb.git"
-  },
-  "scripts": {
-    "predeploy": "make minify",
-    "start": "node app.js"
-  },
-  "subdomain": "binb",
-  "version": "0.5.6-2"
+  }
 }