Browse Source

run lint and tests in npm test

pull/49/head
Luke Childs 7 years ago
parent
commit
e48c9741b1
  1. 2
      .travis.yml
  2. 3
      package.json

2
.travis.yml

@ -1,6 +1,6 @@
language: node_js
node_js: node
script: npm run lint && npm test
script: npm test
after_success: npm run coverage
notifications:
email:

3
package.json

@ -4,8 +4,7 @@
"description": "Node.js client library for the Tor Onionoo API",
"main": "src/index.js",
"scripts": {
"test": "nyc ava",
"lint": "xo",
"test": "xo && nyc ava",
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
"xo": {

Loading…
Cancel
Save