Skip to content

Commit 3e99e93

Browse files
committed
0.10 support
1 parent ba64b1c commit 3e99e93

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

Makefile

+15-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
BIN = ./node_modules/.bin/
22
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
315

416
test:
517
@$(NODE) $(BIN)mocha \
6-
--timeout 4000 \
18+
--harmony-generators \
719
--require should \
820
--reporter spec \
9-
--harmony-generators \
10-
--bail
21+
--timeout 10000
1122

12-
.PHONY: test
23+
.PHONY: test clean

index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
module.exports = require('./lib');
1+
module.exports = require('generator-supported')
2+
? require('./lib')
3+
: require('./build');

package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
},
2020
"dependencies": {
2121
"debug": "*",
22+
"generator-supported": "~0.0.1",
2223
"graceful-fs": "~2.0.1",
2324
"semver": "~2.2.1",
24-
"cogent": "~0.3.4",
25+
"cogent": "~0.3.12",
2526
"chanel": "~1.0.2",
2627
"mkdirp": "~0.3.5",
2728
"rimraf": "~2.2.5",
@@ -31,10 +32,12 @@
3132
"devDependencies": {
3233
"mocha": "^1.17",
3334
"should": "^3.0",
34-
"gnode": "~0.0.6"
35+
"gnode": "~0.0.6",
36+
"regenerator": "~0.3.9"
3537
},
3638
"scripts": {
37-
"test": "NODE=gnode make test"
39+
"test": "NODE=gnode make test",
40+
"prepublish": "make clean build"
3841
},
3942
"engines": {
4043
"node": ">= 0.11.4"

0 commit comments

Comments
 (0)