diff --git a/package.json b/package.json index d787e88..116a00c 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "app.js", "scripts": { "lint": "eslint -c node_modules/eslint-config/.eslintrc 'static/src/js/'", - "build-js": "bash scripts/build-js.sh", + "build-js": "./scripts/build-js.sh", "create-build-dirs": "mkdir -p static/build/js/lib static/build/fonts static/build/css static/build/img", "build": "npm run create-build-dirs && npm run build-fonts && npm run build-images && npm run build-js && npm run build-less", "build-less": "lessc --silent static/src/less/style.less static/build/css/style.css && cleancss -d --s0 -o static/build/css/style.css static/build/css/style.css", diff --git a/scripts/build-js.sh b/scripts/build-js.sh old mode 100644 new mode 100755 index 203d339..2f837a0 --- a/scripts/build-js.sh +++ b/scripts/build-js.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash set -e @@ -14,4 +14,4 @@ uglifyjs node_modules/jquery/dist/jquery.js --compress --screw-ie8 --define --st echo ">> Building Application JS..." browserify -t [ babelify --presets [ es2015 react ] ] static/src/js/app.js -o static/build/js/app.js -# uglifyjs static/build/js/app.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/app.js \ No newline at end of file +# uglifyjs static/build/js/app.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/app.js