Browse Source

Integrate with Travis and Coveralls

pull/2/head
Luke Childs 9 years ago
parent
commit
5a795e3b2b
  1. 4
      .travis.yml
  2. 2
      package.json

4
.travis.yml

@ -0,0 +1,4 @@
language: node_js
node_js: node
script: npm run lint && npm test
after_success: npm run coverage

2
package.json

@ -13,6 +13,7 @@
"build:map": "babel --source-maps=true -d dist src",
"pretest": "npm run build:map",
"test": "nyc ava test",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"lint": "eslint src",
"prepublish": "npm run build"
},
@ -53,6 +54,7 @@
"babel-cli": "^6.9.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-es2015": "^6.9.0",
"coveralls": "^2.11.9",
"eslint": "^2.11.1",
"eslint-config-lukechilds": "^1.5.1",
"nyc": "^6.4.4"

Loading…
Cancel
Save