Skip to content

Commit 250f541

Browse files
committed
remove precompiling stuff
1 parent 1a694f5 commit 250f541

File tree

4 files changed

+6
-24
lines changed

4 files changed

+6
-24
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_js:
2+
- "0.10"
23
- "0.11"
34
language: node_js

Makefile

+2-14
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
11
BIN = ./node_modules/.bin/
2-
SRC = $(shell find lib -name "*.js")
3-
BUILD = $(subst lib,build,$(SRC))
42
NODE ?= node
53

6-
build:
7-
@mkdir -p build/remotes
8-
@$(MAKE) $(BUILD)
9-
10-
build/%.js: lib/%.js
11-
@$(BIN)regenerator $< > $@
12-
13-
clean:
14-
@rm -rf build
15-
16-
test tests:
4+
test:
175
@$(NODE) $(BIN)mocha \
186
--timeout 4000 \
197
--require should \
208
--reporter spec \
219
--harmony-generators \
2210
--bail
2311

24-
.PHONY: test tests build clean
12+
.PHONY: test

index.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
try {
2-
module.exports = require('./lib')
3-
} catch (err) {
4-
if (err.message !== 'Unexpected token *') throw err
5-
module.exports = require('./build')
6-
}
1+
module.exports = require('./lib');

package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@
3131
"devDependencies": {
3232
"mocha": "^1.17",
3333
"should": "^3.0",
34-
"gnode": "~0.0.6",
35-
"regenerator": "~0.3.4"
34+
"gnode": "~0.0.6"
3635
},
3736
"scripts": {
38-
"test": "NODE=gnode make test",
39-
"prepublish": "make clean build"
37+
"test": "NODE=gnode make test"
4038
},
4139
"engines": {
4240
"node": ">= 0.11.4"

0 commit comments

Comments
 (0)