1 NPMBIN:=$(shell npm bin)
9 ulimit -n 4000; for x in bootstrap bower browserify chai chai-jquery jquery jsdom mithril mithril-query mocha mocha-phantomjs sinon; do [ -d "$(NPMBIN)/../$$x" ] || npm install $$x --save-dev; done
11 # This uses --debug to enable source maps.
12 build: build-app build-test build-assets
15 ulimit -n 4000; $(NPMBIN)/browserify --debug -o dist/app.js app/app.js
18 ulimit -n 4000; $(NPMBIN)/browserify --debug -o dist/test.js test/runner.js
19 build-assets: dist/bootstrap
22 rsync -a $(NPMBIN)/../bootstrap/dist/ dist/bootstrap/
25 [ -e $(NPMBIN)/harp ] || npm install harp
26 $(NPMBIN)/harp server --port 9000
28 test-phantomjs: build-test build-assets
29 $(NPMBIN)/mocha-phantomjs test.html
31 $(NPMBIN)/mocha --watch