-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (15 loc) · 798 Bytes
/
Makefile
File metadata and controls
17 lines (15 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
compile:
coffee -b -o pkg -c src/movable.coffee
coffee -b -o pkg -c src/fadable.coffee
coffee -b -o pkg -c src/rotatable.coffee
cat pkg/movable.js pkg/fadable.js pkg/rotatable.js > pkg/scrollable.js
minify:
java -jar compiler.jar --js pkg/movable.js --js_output_file pkg/movable.min.js
java -jar compiler.jar --js pkg/fadable.js --js_output_file pkg/fadable.min.js
java -jar compiler.jar --js pkg/rotatable.js --js_output_file pkg/rotatable.min.js
java -jar compiler.jar --js pkg/scrollable.js --js_output_file pkg/scrollable.min.js
test:
make compile
node tests/server.js & phantomjs tests/phantom.js "http://localhost:3000/tests/index.html"
kill -9 `cat tests/pid.txt`
rm tests/pid.txt