Skip to content

Commit 99315d9

Browse files
committed
Merge pull request #156 from artnez/component-dependency
Add component dependency
2 parents b9604fe + dd43b7f commit 99315d9

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

Makefile

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
NODE_BIN=node_modules/.bin
2+
MOCHA=$(NODE_BIN)/mocha
3+
COMPONENT=$(NODE_BIN)/component
14

25
rework.js:
3-
@component install
4-
@component build --standalone rework --out . --name rework
6+
@$(COMPONENT) install
7+
@$(COMPONENT) build --standalone rework --out . --name rework
58

69
test:
7-
@./node_modules/.bin/mocha \
8-
--require should
10+
@$(MOCHA) --require should
911

1012
clean:
1113
rm -f rework.js

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@
2727
},
2828
"devDependencies": {
2929
"mocha": "*",
30-
"should": "*"
30+
"should": "*",
31+
"component": "~0.19.9"
3132
},
3233
"main": "index",
3334
"scripts": {
3435
"prepublish": "make rework.js",
3536
"test": "mocha --require should --reporter spec"
3637
}
37-
}
38+
}

0 commit comments

Comments
 (0)