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.
Keyboard-Mechanizer/scripts/build-js.sh

18 lines
766 B
Bash
Raw Normal View History

2015-11-01 17:22:08 +00:00
#!/usr/bin/bash
set -e
echo ">> Building Libraries..."
2015-11-03 18:40:12 +00:00
uglifyjs node_modules/jquery/dist/jquery.js --compress --screw-ie8 --define --stats --keep-fnames -o build/lib/jquery.js
2015-11-01 17:22:08 +00:00
uglifyjs node_modules/bootstrap/dist/js/bootstrap.js --compress --screw-ie8 --define --stats --keep-fnames -o build/lib/bootstrap.js
echo ">> Building Application JS..."
browserify -t reactify src/js/app.js -o build/js/app.js
uglifyjs build/js/app.js --compress --screw-ie8 --define --stats --keep-fnames -o build/js/app.js
2015-11-01 17:22:08 +00:00
echo ">> Building Main JS..."
uglifyjs src/main.js --compress --screw-ie8 --define --stats --keep-fnames -o build/main.js
2015-11-03 08:44:35 +00:00
echo ">> Building Audio Controller..."
uglifyjs src/js/audio.js --compress --screw-ie8 --define --stats --keep-fnames -o build/js/audio.js