File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ before_install:
14
14
before_script :
15
15
- npm prune
16
16
script :
17
- - npm run lint
18
17
- npm test
19
18
- npm run example
19
+ - node bin/npm-quick-run.js test-foo 'foo bar'
20
20
after_success :
21
21
- npm run semantic-release
22
22
branches :
Original file line number Diff line number Diff line change 8
8
"nrun" : " bin/npm-quick-run.js"
9
9
},
10
10
"scripts" : {
11
+ "pretest" : " npm run lint" ,
11
12
"test" : " mocha --harmony src/*-spec.js" ,
12
13
"commit" : " git-issues && commit-wizard" ,
13
14
"issues" : " git-issues" ,
14
15
"semantic-release" : " semantic-release pre && npm publish && semantic-release post" ,
15
16
"error" : " echo \" an error on purpose\" && exit -1" ,
16
17
"lint" : " standard bin/*.js src/*.js" ,
17
18
"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)\" "
19
21
},
20
22
"files" : [
21
23
" bin" ,
52
54
"pre-git" : {
53
55
"commit-msg" : " simple" ,
54
56
"pre-commit" : [
55
- " npm run lint" ,
56
57
" npm test" ,
57
- " npm run example"
58
+ " npm run example" ,
59
+ " node bin/npm-quick-run.js test-foo 'foo bar'"
58
60
],
59
61
"pre-push" : [
60
62
" npm run size"
You can’t perform that action at this time.
0 commit comments