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
2015-11-03 18:40:12 +00:00

17 lines
766 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 build/lib/jquery.js
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
echo ">> Building Main JS..."
uglifyjs src/main.js --compress --screw-ie8 --define --stats --keep-fnames -o build/main.js
echo ">> Building Audio Controller..."
uglifyjs src/js/audio.js --compress --screw-ie8 --define --stats --keep-fnames -o build/js/audio.js