Skip to content

Commit d95e38f

Browse files
[chore] Update the Makefile
1 parent b57e063 commit d95e38f

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

Makefile

+8-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11

2-
REPORTER = dot
2+
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}'
34

4-
test:
5+
test: ## run tests either in the browser or in Node.js, based on the `BROWSERS` variable
56
@if [ "x$(BROWSERS)" = "x" ]; then make test-node; else make test-zuul; fi
67

7-
test-node:
8-
@./node_modules/.bin/mocha \
9-
--reporter $(REPORTER) \
10-
--bail \
11-
test/index.js
8+
test-node: ## run tests in Node.js
9+
@./node_modules/.bin/mocha --reporter dot --bail test/index.js
1210

13-
test-zuul:
14-
@./node_modules/zuul/bin/zuul \
15-
test/index.js
11+
test-zuul: ## run tests in the browser
12+
@./node_modules/zuul/bin/zuul test/index.js
1613

17-
.PHONY: test
14+
.PHONY: help test test-node test-zuul

0 commit comments

Comments
 (0)