We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b57e063 commit d95e38fCopy full SHA for d95e38f
Makefile
@@ -1,17 +1,14 @@
1
2
-REPORTER = dot
+help: ## print this message
3
+ @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
4
-test:
5
+test: ## run tests either in the browser or in Node.js, based on the `BROWSERS` variable
6
@if [ "x$(BROWSERS)" = "x" ]; then make test-node; else make test-zuul; fi
7
-test-node:
8
- @./node_modules/.bin/mocha \
9
- --reporter $(REPORTER) \
10
- --bail \
11
- test/index.js
+test-node: ## run tests in Node.js
+ @./node_modules/.bin/mocha --reporter dot --bail test/index.js
12
13
-test-zuul:
14
- @./node_modules/zuul/bin/zuul \
15
+test-zuul: ## run tests in the browser
+ @./node_modules/zuul/bin/zuul test/index.js
16
17
-.PHONY: test
+.PHONY: help test test-node test-zuul
0 commit comments