-
Notifications
You must be signed in to change notification settings - Fork 26
/
build.sh
executable file
·32 lines (24 loc) · 701 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
set -e
echo [clean] Removing old app.
rm -f js/app.js
echo [format] Format JS and CSS.
node_modules/js-beautify/js/bin/js-beautify.js -r js/**/*
node_modules/js-beautify/js/bin/js-beautify.js -r css/*
echo -n [build] Building JS Kid Pix app.js..
# node_modules/uglify-js/bin/uglifyjs -b -o js/app.js \
#node_modules/uglify-js/bin/uglifyjs -c -m -o js/app.js \
#node_modules/uglify-es/bin/uglifyjs -c -m -o js/app.js \
node_modules/uglify-es/bin/uglifyjs -bo js/app.js \
js/init/* \
js/util/* \
js/tools/* \
js/textures/* \
js/submenus/* \
js/brushes/* \
js/builders/* \
js/stamps/* \
js/sounds/* \
echo "" >> js/app.js
echo "// $(date)" >> js/app.js
echo . done.