Removed stars from production flag
This commit is contained in:
parent
bd4f020328
commit
47683345da
2 changed files with 6 additions and 6 deletions
|
@ -2,14 +2,14 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [[ $@ == **prod** ]]
|
if [[ $@ == prod ]]
|
||||||
then
|
then
|
||||||
echo ">>> WARNING: Building in Production Mode!"
|
echo ">>> WARNING: Building in Production Mode!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p static/build/js/lib
|
mkdir -p static/build/js/lib
|
||||||
|
|
||||||
if [[ $@ == **prod** ]]
|
if [[ $@ == prod ]]
|
||||||
then
|
then
|
||||||
echo ">> Compressing Libraries..."
|
echo ">> Compressing Libraries..."
|
||||||
uglifyjs node_modules/markdown/lib/markdown.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/lib/markdown.js
|
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
|
rm -rf static/build/js/lib
|
||||||
|
|
||||||
if [[ $@ == **prod** ]]
|
if [[ $@ == prod ]]
|
||||||
then
|
then
|
||||||
echo ">> Compressing jQuery..."
|
echo ">> Compressing jQuery..."
|
||||||
uglifyjs node_modules/jquery/dist/jquery.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/jquery.js
|
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..."
|
echo ">> Building Application JS..."
|
||||||
browserify -t [ babelify --presets [ es2015 react ] ] static/src/js/app.js -o static/build/js/app.js
|
browserify -t [ babelify --presets [ es2015 react ] ] static/src/js/app.js -o static/build/js/app.js
|
||||||
|
|
||||||
if [[ $@ == **prod** ]]
|
if [[ $@ == prod ]]
|
||||||
then
|
then
|
||||||
echo ">> Compressing Application..."
|
echo ">> Compressing Application..."
|
||||||
uglifyjs static/build/js/app.js --compress --screw-ie8 --define --stats --keep-fnames -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
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [[ $@ == **prod** ]]
|
if [[ $@ == prod ]]
|
||||||
then
|
then
|
||||||
echo ">>> WARNING: Building in Production Mode!"
|
echo ">>> WARNING: Building in Production Mode!"
|
||||||
fi
|
fi
|
||||||
|
@ -10,7 +10,7 @@ fi
|
||||||
echo ">> Building LESS..."
|
echo ">> Building LESS..."
|
||||||
lessc --silent static/src/less/style.less static/build/css/style.css
|
lessc --silent static/src/less/style.less static/build/css/style.css
|
||||||
|
|
||||||
if [[ $@ == **prod** ]]
|
if [[ $@ == prod ]]
|
||||||
then
|
then
|
||||||
echo ">> Compressing LESS..."
|
echo ">> Compressing LESS..."
|
||||||
cleancss -d --s0 -o static/build/css/style.css static/build/css/style.css
|
cleancss -d --s0 -o static/build/css/style.css static/build/css/style.css
|
||||||
|
|
Reference in a new issue