1 | BROWSERIFY_ARGS=--ignore=./node_connection template/entry.js
|
2 |
|
3 |
|
4 | build: compile compress
|
5 |
|
6 | compile:
|
7 | ./node_modules/.bin/browserify ${BROWSERIFY_ARGS} -o leap.js
|
8 |
|
9 | compress:
|
10 | ./node_modules/.bin/uglifyjs ./leap.js -o leap.min.js
|
11 |
|
12 | docs:
|
13 | ./node_modules/jsdoc/jsdoc lib README.md -d docs
|
14 |
|
15 |
|
16 | test: build test-only
|
17 |
|
18 | test-only: test-node test-browser
|
19 |
|
20 | test-browser:
|
21 | ./node_modules/.bin/mocha-phantomjs -R dot test/helpers/browser.html
|
22 |
|
23 | test-node:
|
24 | ./node_modules/.bin/mocha lib/index.js test/helpers/node.js test/*.js -R dot
|
25 |
|
26 | stress: stress/punisher.js
|
27 | node stress/punisher.js
|
28 |
|
29 |
|
30 | watch: watch-test
|
31 |
|
32 | watch-build:
|
33 | ./node_modules/.bin/nodemon --watch lib --exec "make" build
|
34 |
|
35 | watch-test:
|
36 | ./node_modules/.bin/nodemon --watch lib --exec "make" test
|
37 |
|
38 |
|
39 | open-in-browsers: build
|
40 | open -a /Applications/Firefox.app test/helpers/browser.html
|
41 | open -a /Applications/Safari.app test/helpers/browser.html
|
42 | open -a /Applications/Google\ Chrome.app test/helpers/browser.html
|