File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,36 +15,39 @@ YARN ?= $(shell which yarn)
1515PKG ?= $(if $(YARN ) ,$(YARN ) ,$(NODE ) $(shell which npm) )
1616BROWSERIFY ?= $(NODE ) $(BIN ) /browserify
1717
18- .FORCE :
19-
2018install : node_modules
2119
20+ browser : dist/debug.js
21+
2222node_modules : package.json
2323 @NODE_ENV= $(PKG ) install
2424 @touch node_modules
2525
26- lint : .FORCE
27- eslint * .js src/* .js
28-
29- test-node : .FORCE
30- istanbul cover node_modules/mocha/bin/_mocha -- test/** .js
31-
32- test-browser : .FORCE
33- mkdir -p dist
34-
26+ dist/debug.js : src/* .js node_modules
27+ @mkdir -p dist
3528 @$(BROWSERIFY ) \
3629 --standalone debug \
3730 . > dist/debug.js
3831
32+ lint :
33+ eslint * .js src/* .js
34+
35+ test-node :
36+ istanbul cover node_modules/mocha/bin/_mocha -- test/** .js
37+
38+ test-browser :
39+ $(MAKE ) browser
3940 karma start --single-run
40- rimraf dist
4141
42- test : .FORCE
42+ test :
4343 concurrently \
4444 " make test-node" \
4545 " make test-browser"
4646
4747coveralls :
4848 cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
4949
50+ clean :
51+ rimraf dist
52+
5053.PHONY : all install clean distclean
You can’t perform that action at this time.
0 commit comments