Force npm run lint before running tests

This commit is contained in:
Sebastien Chopin 2017-05-05 14:07:40 +02:00
parent 49a9052898
commit 8a620dcc30

View File

@ -38,7 +38,7 @@
"nuxt": "./bin/nuxt" "nuxt": "./bin/nuxt"
}, },
"scripts": { "scripts": {
"test": "nyc ava --verbose --serial test/", "test": "npm run lint && nyc ava --verbose --serial test/",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"lint": "eslint --ext .js,.vue bin lib pages test/*.js --ignore-pattern lib/app", "lint": "eslint --ext .js,.vue bin lib pages test/*.js --ignore-pattern lib/app",
"build": "webpack", "build": "webpack",