Skip to content

Commit 3fa0e7b

Browse files
committed
testing bug with split arguments for #21
1 parent 2ad9a40 commit 3fa0e7b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ before_install:
1414
before_script:
1515
- npm prune
1616
script:
17-
- npm run lint
1817
- npm test
1918
- npm run example
19+
- node bin/npm-quick-run.js test-foo 'foo bar'
2020
after_success:
2121
- npm run semantic-release
2222
branches:

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@
88
"nrun": "bin/npm-quick-run.js"
99
},
1010
"scripts": {
11+
"pretest": "npm run lint",
1112
"test": "mocha --harmony src/*-spec.js",
1213
"commit": "git-issues && commit-wizard",
1314
"issues": "git-issues",
1415
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
1516
"error": "echo \"an error on purpose\" && exit -1",
1617
"lint": "standard bin/*.js src/*.js",
1718
"example": "node bin/npm-quick-run.js li",
18-
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";"
19+
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";",
20+
"test-foo": "node -e \"console.assert(process.argv[1] === 'foo bar', process.argv)\""
1921
},
2022
"files": [
2123
"bin",
@@ -52,9 +54,9 @@
5254
"pre-git": {
5355
"commit-msg": "simple",
5456
"pre-commit": [
55-
"npm run lint",
5657
"npm test",
57-
"npm run example"
58+
"npm run example",
59+
"node bin/npm-quick-run.js test-foo 'foo bar'"
5860
],
5961
"pre-push": [
6062
"npm run size"

0 commit comments

Comments
 (0)