SHELL=/bin/bash .PHONY: watch test pass lint clean watch: DEBUG=true supervisor --ignore "./test" -e ".litcoffee|.coffee|.js" --exec make run-server run-server: static/js/epiclient_v2.js static/js/epiclient_v3.js exec ./ar-start difftest/templates: cd difftest/ && git clone https://github.com/igroff/epiquery-templates.git \ templates/ test: build lint difftest/templates difftest run ${TEST_NAME} pass/%: cp difftest/results/$(subst pass/,,$@) difftest/expected/$(subst pass/,,$@) lint: find ./src -name '*.coffee' | xargs ./node_modules/.bin/coffeelint -f ./etc/coffeelint.conf find ./src -name '*.js' | xargs ./node_modules/.bin/jshint static/js/sockjstest.js: static/js/src/wstest.coffee ./node_modules/.bin/browserify -t coffeeify static/js/src/wstest.coffee > static/js/sockjstest.js static/js/epiclient_v3.js: src/clients/EpiClient.coffee ./node_modules/.bin/browserify -t coffeeify -r ./src/clients/EpiClient.coffee:epi-client --outfile $@ static/js/hunting-websocket.js: src/clients/hunting-websocket.litcoffee ./node_modules/.bin/browserify -t coffeeify src/clients/hunting-websocket.litcoffee --outfile $@ debug: static/js/sockjstest.js DEBUG=true PORT=8080 exec ./ar-start build: static/js/epiclient_v3.js clean: rm -rf ./node_modules/