From 47683345da5ff3edd1ab0888ce4bd6f566197dd1 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 14 Jan 2016 19:13:08 +0000 Subject: [PATCH] Removed stars from production flag --- scripts/build-js.sh | 8 ++++---- scripts/build-less.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/build-js.sh b/scripts/build-js.sh index 770b5f7..debc3b1 100755 --- a/scripts/build-js.sh +++ b/scripts/build-js.sh @@ -2,14 +2,14 @@ set -e -if [[ $@ == **prod** ]] +if [[ $@ == prod ]] then echo ">>> WARNING: Building in Production Mode!" fi mkdir -p static/build/js/lib -if [[ $@ == **prod** ]] +if [[ $@ == prod ]] then echo ">> Compressing Libraries..." uglifyjs node_modules/markdown/lib/markdown.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/lib/markdown.js @@ -24,7 +24,7 @@ fi rm -rf static/build/js/lib -if [[ $@ == **prod** ]] +if [[ $@ == prod ]] then echo ">> Compressing jQuery..." uglifyjs node_modules/jquery/dist/jquery.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/jquery.js @@ -37,7 +37,7 @@ fi echo ">> Building Application JS..." browserify -t [ babelify --presets [ es2015 react ] ] static/src/js/app.js -o static/build/js/app.js -if [[ $@ == **prod** ]] +if [[ $@ == prod ]] then echo ">> Compressing Application..." uglifyjs static/build/js/app.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/app.js diff --git a/scripts/build-less.sh b/scripts/build-less.sh index 9b0f06b..5d97287 100755 --- a/scripts/build-less.sh +++ b/scripts/build-less.sh @@ -2,7 +2,7 @@ set -e -if [[ $@ == **prod** ]] +if [[ $@ == prod ]] then echo ">>> WARNING: Building in Production Mode!" fi @@ -10,7 +10,7 @@ fi echo ">> Building LESS..." lessc --silent static/src/less/style.less static/build/css/style.css -if [[ $@ == **prod** ]] +if [[ $@ == prod ]] then echo ">> Compressing LESS..." cleancss -d --s0 -o static/build/css/style.css static/build/css/style.css