Skip to content

Commit 3ca2331

Browse files
committed
clean up builds
1 parent 9f4f8f5 commit 3ca2331

File tree

4 files changed

+22
-40
lines changed

4 files changed

+22
-40
lines changed

.npmignore

Lines changed: 0 additions & 15 deletions
This file was deleted.

Makefile

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,39 @@
1-
# get Makefile directory name: http://stackoverflow.com/a/5982798/376773
1+
# http://stackoverflow.com/a/5982798/376773
22
THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
33
THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
4-
5-
# BIN directory
6-
BIN := $(THIS_DIR)/node_modules/.bin
7-
8-
# Path
9-
PATH := node_modules/.bin:$(PATH)
4+
export PATH := $(THIS_DIR)/node_modules/.bin:$(PATH)
105
SHELL := /bin/bash
116

12-
# applications
13-
BROWSERIFY ?= $(BIN)/browserify
14-
157
all: lint test
168

17-
browser: dist/debug.js dist/test.js
9+
dist: dist/debug.js dist/test.js
10+
11+
.INTERMEDIATE: dist/debug.es6.js
12+
dist/debug.es6.js: src/*.js
13+
@mkdir -p dist
14+
browserify --standalone debug $< > $@
1815

19-
dist/debug.js: src/*.js
16+
dist/debug.js: dist/debug.es6.js
2017
@mkdir -p dist
21-
@$(BROWSERIFY) --standalone debug . > $@.es6.js
22-
@babel $@.es6.js > $@
23-
@rm $@.es6.js
18+
babel $< > $@
2419

2520
dist/test.js: test.js
2621
@mkdir -p dist
27-
@cp $< $@.es6.js
28-
@babel $@.es6.js > $@
29-
@rm $@.es6.js
22+
babel $< > $@
3023

3124
lint:
32-
@xo
25+
xo
3326

3427
test-node:
35-
@istanbul cover node_modules/mocha/bin/_mocha -- test.js
28+
istanbul cover node_modules/mocha/bin/_mocha -- test.js
3629
@cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
3730

38-
test-browser:
39-
@$(MAKE) browser
40-
@karma start --single-run
31+
test-browser: dist
32+
karma start --single-run
4133

4234
test: test-node test-browser
4335

4436
clean:
4537
rm -rf dist coverage
4638

47-
.PHONY: all browser install clean lint test test-node test-browser
39+
.PHONY: all dist clean lint test test-node test-browser

node.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
"log",
1212
"debugger"
1313
],
14+
"files": [
15+
"src",
16+
"dist/debug.js",
17+
"LICENSE",
18+
"README.md"
19+
],
1420
"author": "TJ Holowaychuk <[email protected]>",
1521
"contributors": [
1622
"Nathan Rajlich <[email protected]> (http://n8.io)",

0 commit comments

Comments
 (0)