forked from davebalmer/jo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild
executable file
·28 lines (21 loc) · 1.09 KB
/
build
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
#!/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
if [[ ${1} && -d ${1} ]]; then
echo "Copying files to test directory"
cp jo.js jo_min.js ${1}
fi
cd ..
echo "Done compiling."