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 language: node_js
node_js: node node_js: node
script: npm run lint && npm test script: npm test
after_success: npm run coverage after_success: npm run coverage
notifications: notifications:
email: email:

3
package.json

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

Loading…
Cancel
Save