Skip to content

Commit

Permalink
Add Travis, NYC, Eslint, Coveralls integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Feb 20, 2017
1 parent 8ad7e0e commit de2a820
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
@@ -0,0 +1,3 @@
/coverage/
/node_modules/
/.nyc_output/
5 changes: 5 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,5 @@
module.exports = {
extends: [
'onelint'
]
};
2 changes: 2 additions & 0 deletions .gitignore
@@ -1 +1,3 @@
/node_modules/
/coverage/
/.nyc_output/
8 changes: 8 additions & 0 deletions .travis.yml
@@ -0,0 +1,8 @@
language: node_js
node_js:
- "0.10"
- "0.12"
- "4"
- "6"
- "7"
script: "npm run-script travis"
10 changes: 8 additions & 2 deletions package.json
Expand Up @@ -10,12 +10,18 @@
"lru-cache": "=2.3.1"
},
"devDependencies": {
"coveralls": "2.11.16",
"eslint": "3.15.0",
"eslint-config-onelint": "2.0.0",
"mocha": "=1.13.0",
"nyc": "10.1.2",
"unexpected": "=1.0.1"
},
"scripts": {
"prepublish": "mocha",
"test": "mocha"
"lint": "eslint .",
"test": "mocha",
"travis": "npm test && npm run lint && npm run coverage && <coverage/lcov.info coveralls",
"coverage": "NODE_ENV=development nyc --reporter lcov --reporter text -- mocha && echo google-chrome coverage/lcov-report/index.html"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit de2a820

Please sign in to comment.