Browse Source

Transpile with source maps before tests

So we get useful code coverage reporting
transpile
Luke Childs 8 years ago
parent
commit
2366f676e2
  1. 3
      package.json

3
package.json

@ -6,6 +6,9 @@
"scripts": {
"prebuild": "rm -rf dist",
"build": "babel -d dist src",
"prebuild:map": "npm run prebuild",
"build:map": "babel --source-maps=true -d dist src",
"pretest": "npm run build:map",
"lint": "xo",
"test": "nyc ava",
"coverage": "nyc report --reporter=text-lcov | coveralls",

Loading…
Cancel
Save