1 # Copyright (c) 2013 IndexData ApS. http://indexdata.com
3 # For running on Mike's local install of node.js
4 MIKE = PATH=$$PATH:/usr/local/lib/node-v0.10.24-linux-x64/bin
6 PHANTOMJS= ./node_modules/phantomjs/bin/phantomjs
7 PHANTOMJS_URL= https://mkws-dev.indexdata.com/jasmine-popup.html
14 rm -f mkws-error.png mkws-error.html
19 mkws-complete-syntax-check:
20 ${MAKE} -C../tools/htdocs $@
22 check: mkws-complete-syntax-check
23 @if [ ! -e node_modules ]; then echo "please run first: make node-modules"; exit 1; fi
24 jasmine-node --noColor --captureExceptions --forceexit ./spec
25 jasmine-node --noColor --captureExceptions --forceexit ./spec-sp
30 $(MIKE) jasmine-node --noColor --captureExceptions --forceexit spec
33 ${PHANTOMJS} phantom/evaluate.js ${PHANTOMJS_URL} ${PHANTOMJS_TIMEOUT}
36 ${PHANTOMJS} phantom/screenshot.js ${PHANTOMJS_URL} ${IMAGES}/screenshot.png 1200 1000
38 jsbeautifier jsb indent:
39 for i in ./spec*/*.js ./js/*.js ./phantom/*.js; do \
40 jsbeautifier -j $$i > $@.tmp && mv -f $@.tmp $$i; \
43 node-modules: node_modules
45 npm install ${NPM_INSTALL_FLAGS} jQuery xmlhttprequest jsdom request jasmine-node phantomjs
48 @echo "make [ all | check | clean | distclean ]"
49 @echo " [ phantomjs | screenshot ]"
50 @echo " [ jsbeautifier | node-modules ]"