From: Luigi Pinca Date: Sun, 17 May 2015 14:49:27 +0000 (+0200) Subject: removed Makefile in favour of npm scripts X-Git-Url: https://git.saalbach.dev/?a=commitdiff_plain;h=13662b947152975621b5c415bec5c3e052ed8437;p=binbsis50.git removed Makefile in favour of npm scripts --- diff --git a/Makefile b/Makefile deleted file mode 100644 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 diff --git a/package.json b/package.json index 3908e74..b07870b 100644 --- a/package.json +++ b/package.json @@ -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", @@ -21,19 +36,5 @@ }, "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" + } }