refactor: remove makefile

This commit is contained in:
Jun Yang
2018-03-05 01:31:12 +08:00
parent 7ccd0cb1e5
commit 11355cbf09
3 changed files with 3 additions and 19 deletions
View File
-18
View File
@@ -1,18 +0,0 @@
MINIFY = ./node_modules/.bin/uglifyjs
BROWSERIFY = ./node_modules/.bin/browserify
.PHONY: dist default clean
default:
dist:
[ -d dist/ ] || mkdir dist/
$(BROWSERIFY) index.js -s Liquid \
--ignore path \
-t [ babelify --global true --presets [ es2015 ] ] \
> dist/liquid.js
$(MINIFY) dist/liquid.js --compress warnings=false --mangle --output dist/liquid.min.js
ls -lh dist/
clean:
rm -rf dist/
+3 -1
View File
@@ -8,7 +8,9 @@
"test": "mocha --recursive", "test": "mocha --recursive",
"coverage": "cross-env NODE_ENV=test istanbul cover --report html ./node_modules/mocha/bin/_mocha -- -R spec --recursive", "coverage": "cross-env NODE_ENV=test istanbul cover --report html ./node_modules/mocha/bin/_mocha -- -R spec --recursive",
"lcov": "cross-env NODE_ENV=test istanbul cover --report lcovonly ./node_modules/mocha/bin/_mocha -- -R spec --recursive", "lcov": "cross-env NODE_ENV=test istanbul cover --report lcovonly ./node_modules/mocha/bin/_mocha -- -R spec --recursive",
"dist": "make dist", "dist": "npm run browserify && npm run uglify",
"browserify": "browserify index.js -s Liquid --ignore path -t [ babelify --global true --presets [ es2015 ] ] > dist/liquid.js",
"uglify": "uglifyjs dist/liquid.js --compress warnings=false --mangle --output dist/liquid.min.js",
"preversion": "npm run lint && npm test", "preversion": "npm run lint && npm test",
"version": "npm run dist && git add -A dist", "version": "npm run dist && git add -A dist",
"postversion": "git push && git push --tags" "postversion": "git push && git push --tags"