1
Fork 0

Externalised jquery module

This commit is contained in:
Jake Howard 2015-11-21 15:08:33 +00:00
parent b3646aa813
commit 4d75169b02

View file

@ -3,11 +3,13 @@
set -e set -e
echo ">> Building Libraries..." echo ">> Building Libraries..."
uglifyjs node_modules/jquery/dist/jquery.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/lib/jquery.js
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
uglifyjs node_modules/bootstrap/dist/js/bootstrap.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/lib/bootstrap.js uglifyjs node_modules/bootstrap/dist/js/bootstrap.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/lib/bootstrap.js
uglifyjs static/build/js/lib/* --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/libs.js uglifyjs static/build/js/lib/* --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/libs.js
rm -rf static/build/js/lib/* rm -rf static/build/js/lib
echo ">> Building JQuery..."
uglifyjs node_modules/jquery/dist/jquery.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/jquery.js
echo ">> Building Application JS..." echo ">> Building Application JS..."
browserify -t reactify static/src/js/app.js -o static/build/js/app.js browserify -t reactify static/src/js/app.js -o static/build/js/app.js