diff --git a/.jshintignore b/.jshintignore new file mode 120000 index 0000000..3e4e48b --- /dev/null +++ b/.jshintignore @@ -0,0 +1 @@ +.gitignore \ No newline at end of file diff --git a/.jshintrc b/.jshintrc index 9e7ed74..96586f0 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,3 +1,4 @@ { - "sub": true + "sub": true, + "node": true } \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 3200c27..6efc5bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,7 @@ node_js: script: - npm install - - npm test - - npm run cov + - npm run travis notifications: webhooks: diff --git a/package.json b/package.json index 10340fe..2c43fad 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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"