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

17 lines
687 B
Bash
Raw Normal View History

2015-11-01 17:22:08 +00:00
#!/usr/bin/bash
set -e
cp node_modules/bootstrap/dist/js/bootstrap.js static/src/js/lib/
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/page.js -o build/page.js
uglifyjs build/js/app.js --compress --screw-ie8 --define --stats --keep-fnames -o src/js/app.js
echo ">> Building Main JS..."
uglifyjs build/main.js --compress --screw-ie8 --define --stats --keep-fnames -o src/main.js