File tree 2 files changed +7
-27
lines changed
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)
15
15
PKG ?= $(if $(YARN ) ,$(YARN ) ,$(NODE ) $(shell which npm) )
16
16
BROWSERIFY ?= $(NODE ) $(BIN ) /browserify
17
17
18
- install : node_modules
18
+ all : lint test
19
19
20
20
browser : dist/debug.js
21
21
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
27
23
@mkdir -p dist
28
- @$(BROWSERIFY ) \
29
- --standalone debug \
30
- . > dist/debug.js
24
+ @$(BROWSERIFY ) --standalone debug . > dist/debug.js
31
25
32
26
lint :
33
- @eslint * .js src/ * .js
27
+ @xo
34
28
35
29
test-node :
36
30
@istanbul cover node_modules/mocha/bin/_mocha -- test/** .js
@@ -40,19 +34,9 @@ test-browser:
40
34
@$(MAKE ) browser
41
35
@karma start --single-run
42
36
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
54
38
55
39
clean :
56
- rimraf dist coverage
40
+ rm -rf dist coverage
57
41
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 6
6
"url" : " git://github.com/visionmedia/debug.git"
7
7
},
8
8
"description" : " small debugging utility" ,
9
- "scripts" : {
10
- "test" : " xo && mocha"
11
- },
12
9
"keywords" : [
13
10
" debug" ,
14
11
" log" ,
28
25
"chai" : " ^3.5.0" ,
29
26
"concurrently" : " ^3.1.0" ,
30
27
"coveralls" : " ^3.0.2" ,
31
- "eslint" : " ^3.12.1" ,
32
28
"istanbul" : " ^0.4.5" ,
33
29
"karma" : " ^3.0.0" ,
34
30
"karma-chai" : " ^0.1.0" ,
You can’t perform that action at this time.
0 commit comments