REPORTER = dot TARGETS ?= unexpected.js lint: @./node_modules/.bin/jshint --exclude test/documentation.spec.js lib/*.js test/*.js .PHONY: lint unexpected.js: lib/* (echo '/*!' && $@ .PHONY: unexpected.js test-phantomjs: ${TARGETS} @$(eval QUERY=$(shell node -e "console.log(decodeURIComponent(process.argv.pop()))" "${grep}")) \ ./node_modules/.bin/mocha-phantomjs test/tests.html?grep=${QUERY} test: lint mocha .PHONY: test coverage: lib/* NODE_ENV=development ./node_modules/.bin/istanbul cover \ -x unexpected.js \ -x **/vendor/** \ -x **/site/** \ -x **/documentation/** \ --include-all-sources ./node_modules/mocha/bin/_mocha -- --reporter dot .PHONY: test-browser test-browser: unexpected.js @./node_modules/.bin/serve . travis: lint test coverage