forked from leapmotion/leapjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (25 loc) · 881 Bytes
/
Makefile
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
33
34
35
36
BROWSERIFY_ARGS=--ignore=./node_connection lib/websocketjs/swfobject.js lib/websocketjs/web_socket.js template/entry.js
serve:
./node_modules/.bin/static .
test: test-all
test-all: test-browser test-node
test-browser: build
./node_modules/.bin/mocha-phantomjs test/runner.html
test-node:
./node_modules/.bin/mocha lib/index.js test/common.js test/test.js test/*.js -R dot
build: compile compress
watch:
./node_modules/.bin/nodemon --watch lib --exec "make" test
compress:
./node_modules/.bin/uglifyjs ./leap.js -o leap.min.js
compile:
./node_modules/.bin/browserify ${BROWSERIFY_ARGS} -o leap.js
watch-test: watch
docs:
rm -rf docs-repo
git clone -b gh-pages git@github.com:leapmotion/leapjs.git docs-repo
./node_modules/jsdoc/jsdoc -c jsdoc_conf.json lib README.md -d docs-repo
cd docs-repo
git commit -a -m"regenerate docs"
git push origin gh-pages
cd ..