File tree Expand file tree Collapse file tree 4 files changed +22
-40
lines changed Expand file tree Collapse file tree 4 files changed +22
-40
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- # get Makefile directory name: http://stackoverflow.com/a/5982798/376773
1
+ # http://stackoverflow.com/a/5982798/376773
2
2
THIS_MAKEFILE_PATH: =$(word $(words $(MAKEFILE_LIST ) ) ,$(MAKEFILE_LIST ) )
3
3
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 )
10
5
SHELL := /bin/bash
11
6
12
- # applications
13
- BROWSERIFY ?= $(BIN ) /browserify
14
-
15
7
all : lint test
16
8
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 $< > $@
18
15
19
- dist/debug.js : src/ * .js
16
+ dist/debug.js : dist/debug.es6 .js
20
17
@mkdir -p dist
21
- @$(BROWSERIFY ) --standalone debug . > $@ .es6.js
22
- @babel $@ .es6.js > $@
23
- @rm $@ .es6.js
18
+ babel $< > $@
24
19
25
20
dist/test.js : test.js
26
21
@mkdir -p dist
27
- @cp $< $@ .es6.js
28
- @babel $@ .es6.js > $@
29
- @rm $@ .es6.js
22
+ babel $< > $@
30
23
31
24
lint :
32
- @ xo
25
+ xo
33
26
34
27
test-node :
35
- @ istanbul cover node_modules/mocha/bin/_mocha -- test.js
28
+ istanbul cover node_modules/mocha/bin/_mocha -- test.js
36
29
@cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
37
30
38
- test-browser :
39
- @$(MAKE ) browser
40
- @karma start --single-run
31
+ test-browser : dist
32
+ karma start --single-run
41
33
42
34
test : test-node test-browser
43
35
44
36
clean :
45
37
rm -rf dist coverage
46
38
47
- .PHONY : all browser install clean lint test test-node test-browser
39
+ .PHONY : all dist clean lint test test-node test-browser
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11
11
" log" ,
12
12
" debugger"
13
13
],
14
+ "files" : [
15
+ " src" ,
16
+ " dist/debug.js" ,
17
+ " LICENSE" ,
18
+ " README.md"
19
+ ],
14
20
"author" :
" TJ Holowaychuk <[email protected] >" ,
15
21
"contributors" : [
16
22
" Nathan Rajlich <[email protected] > (http://n8.io)" ,
You can’t perform that action at this time.
0 commit comments