File tree Expand file tree Collapse file tree 2 files changed +7
-27
lines changed Expand file tree Collapse file tree 2 files changed +7
-27
lines changed Original file line number Diff line number Diff line change @@ -15,22 +15,16 @@ YARN ?= $(shell which yarn)
1515PKG ?= $(if $(YARN ) ,$(YARN ) ,$(NODE ) $(shell which npm) )
1616BROWSERIFY ?= $(NODE ) $(BIN ) /browserify
1717
18- install : node_modules
18+ all : lint test
1919
2020browser : dist/debug.js
2121
22- node_modules : package.json
23- @NODE_ENV= $(PKG ) install
24- @touch node_modules
25-
26- dist/debug.js : src/* .js node_modules
22+ dist/debug.js : src/* .js
2723 @mkdir -p dist
28- @$(BROWSERIFY ) \
29- --standalone debug \
30- . > dist/debug.js
24+ @$(BROWSERIFY ) --standalone debug . > dist/debug.js
3125
3226lint :
33- @eslint * .js src/ * .js
27+ @xo
3428
3529test-node :
3630 @istanbul cover node_modules/mocha/bin/_mocha -- test/** .js
@@ -40,19 +34,9 @@ test-browser:
4034 @$(MAKE ) browser
4135 @karma start --single-run
4236
43- test-all :
44- @concurrently \
45- " make test-node" \
46- " make test-browser"
47-
48- test :
49- @if [ " x$( BROWSER) " = " x" ]; then \
50- $(MAKE ) test-node; \
51- else \
52- $(MAKE ) test-browser; \
53- fi
37+ test : test-node test-browser
5438
5539clean :
56- rimraf dist coverage
40+ rm -rf dist coverage
5741
58- .PHONY : browser install clean lint test test-all test-node test-browser
42+ .PHONY : all browser install clean lint test test-node test-browser
Original file line number Diff line number Diff line change 66 "url" : " git://github.com/visionmedia/debug.git"
77 },
88 "description" : " small debugging utility" ,
9- "scripts" : {
10- "test" : " xo && mocha"
11- },
129 "keywords" : [
1310 " debug" ,
1411 " log" ,
2825 "chai" : " ^3.5.0" ,
2926 "concurrently" : " ^3.1.0" ,
3027 "coveralls" : " ^3.0.2" ,
31- "eslint" : " ^3.12.1" ,
3228 "istanbul" : " ^0.4.5" ,
3329 "karma" : " ^3.0.0" ,
3430 "karma-chai" : " ^0.1.0" ,
You can’t perform that action at this time.
0 commit comments