forked from davebalmer/jo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build
executable file
·24 lines (17 loc) · 1007 Bytes
/
build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
echo "Building jo.js"
cd js/core
cat log.js _jo.js dom.js event.js subject.js time.js yield.js cache.js clipboard.js local.js > ../jo.js
cd ../data
cat datasource.js record.js database.js sqldatasource.js filesource.js script.js preference.js yql.js dispatch.js >> ../jo.js
cd ../ui
cat interface.js collect.js view.js container.js control.js button.js list.js busy.js caption.js card.js stack.js scroller.js divider.js expando.js expandotitle.js flexrow.js focus.js footer.js gesture.js group.js html.js input.js label.js menu.js option.js passwordinput.js popup.js screen.js shim.js sound.js stackscroller.js tabbar.js table.js textarea.js title.js toolbar.js form.js dialog.js selectlist.js navbar.js select.js toggle.js slider.js >> ../jo.js
cd ..
echo "Done."
echo "Minifying jo.js -> jo_min.js"
jsmin < jo.js > jo_min.js
# echo "Compiling jo.js -> jo_com.js"
# java -jar ~/bin/compiler.jar --js=jo.js --js_output_file=jo_com.js
# gzip -c jo_com.js > jo_com.js.gz
cd ..
echo "Done."