Skip to content

Commit 62822f1

Browse files
committedSep 11, 2018
clean up makefile
1 parent 833b6f8 commit 62822f1

File tree

2 files changed

+7
-27
lines changed

2 files changed

+7
-27
lines changed
 

‎Makefile

+7-23
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,16 @@ YARN ?= $(shell which yarn)
1515
PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm))
1616
BROWSERIFY ?= $(NODE) $(BIN)/browserify
1717

18-
install: node_modules
18+
all: lint test
1919

2020
browser: 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

3226
lint:
33-
@eslint *.js src/*.js
27+
@xo
3428

3529
test-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

5539
clean:
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

‎package.json

-4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
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",
@@ -28,7 +25,6 @@
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",

0 commit comments

Comments
 (0)
Please sign in to comment.