Skip to content

Commit

Permalink
Improve package.json scripts and add pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
geraintwhite committed Jul 1, 2015
1 parent faf755a commit 1b8c450
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions .jshintignore
3 changes: 2 additions & 1 deletion .jshintrc
@@ -1,3 +1,4 @@
{
"sub": true
"sub": true,
"node": true
}
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -7,8 +7,7 @@ node_js:

script:
- npm install
- npm test
- npm run cov
- npm run travis

notifications:
webhooks:
Expand Down
14 changes: 8 additions & 6 deletions package.json
Expand Up @@ -11,9 +11,10 @@
"github-listener": "./bin/github-listener"
},
"scripts": {
"test": "istanbul cover tape test/*.js",
"cov": "codeclimate < ./coverage/lcov.info",
"start": "./bin/github-listener"
"start": "./bin/github-listener",
"test": "jshint . && tape test/*.js | tap-spec",
"cover": "istanbul cover tape test/*.js",
"travis": "npm run cover && codeclimate < ./coverage/lcov.info"
},
"dependencies": {
"ansi-to-html": "^0.3.0",
Expand All @@ -24,10 +25,11 @@
"string-format": "~0.5.0"
},
"devDependencies": {
"tape": "~4.0.0",
"through2": "~2.0.0",
"codeclimate-test-reporter": "~0.0.4",
"istanbul": "~0.3.15",
"codeclimate-test-reporter": "~0.0.4"
"pre-commit": "^1.0.10",
"tape": "~4.0.0",
"through2": "~2.0.0"
},
"bugs": {
"url": "https://github.com/itsapi/github-listener/issues"
Expand Down

0 comments on commit 1b8c450

Please sign in to comment.