16 lines
687 B
Bash
16 lines
687 B
Bash
#!/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
|