1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/scripts/build-js.sh
2015-11-09 14:13:17 +00:00

15 lines
No EOL
965 B
Bash

#!/usr/bin/bash
set -e
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/bootstrap/dist/js/bootstrap.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/lib/bootstrap.js
uglifyjs node_modules/skrollr/dist/skrollr.min.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/lib/skrollr.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/*
echo ">> Building Application JS..."
browserify -t reactify 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