File tree 3 files changed +24
-8
lines changed
3 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 1
1
BIN = ./node_modules/.bin/
2
2
NODE ?= node
3
+ SRC = $(shell find lib -name "* .js")
4
+ BUILD = $(subst lib,build,$(SRC ) )
5
+
6
+ build :
7
+ @mkdir -p build/remotes
8
+ @$(MAKE ) $(BUILD )
9
+
10
+ build/% .js : lib/% .js
11
+ @$(BIN ) regenerator --include-runtime $< > $@
12
+
13
+ clean :
14
+ @rm -rf build
3
15
4
16
test :
5
17
@$(NODE ) $(BIN ) mocha \
6
- --timeout 4000 \
18
+ --harmony-generators \
7
19
--require should \
8
20
--reporter spec \
9
- --harmony-generators \
10
- --bail
21
+ --timeout 10000
11
22
12
- .PHONY : test
23
+ .PHONY : test clean
Original file line number Diff line number Diff line change 1
- module . exports = require ( './lib' ) ;
1
+ module . exports = require ( 'generator-supported' )
2
+ ? require ( './lib' )
3
+ : require ( './build' ) ;
Original file line number Diff line number Diff line change 19
19
},
20
20
"dependencies" : {
21
21
"debug" : " *" ,
22
+ "generator-supported" : " ~0.0.1" ,
22
23
"graceful-fs" : " ~2.0.1" ,
23
24
"semver" : " ~2.2.1" ,
24
- "cogent" : " ~0.3.4 " ,
25
+ "cogent" : " ~0.3.12 " ,
25
26
"chanel" : " ~1.0.2" ,
26
27
"mkdirp" : " ~0.3.5" ,
27
28
"rimraf" : " ~2.2.5" ,
31
32
"devDependencies" : {
32
33
"mocha" : " ^1.17" ,
33
34
"should" : " ^3.0" ,
34
- "gnode" : " ~0.0.6"
35
+ "gnode" : " ~0.0.6" ,
36
+ "regenerator" : " ~0.3.9"
35
37
},
36
38
"scripts" : {
37
- "test" : " NODE=gnode make test"
39
+ "test" : " NODE=gnode make test" ,
40
+ "prepublish" : " make clean build"
38
41
},
39
42
"engines" : {
40
43
"node" : " >= 0.11.4"
You can’t perform that action at this time.
0 commit comments