Only add frontend code coverage instrumentation when generating coverage report
Showing
.babelrc
0 → 100644
... | ... | @@ -6,6 +6,7 @@ |
"eslint-fix": "eslint --max-warnings 0 --ext .js --fix .", | ||
"eslint-report": "eslint --max-warnings 0 --ext .js --format html --output-file ./eslint-report.html .", | ||
"karma": "karma start config/karma.config.js --single-run", | ||
"karma-coverage": "BABEL_ENV=coverage karma start config/karma.config.js --single-run", | ||
"karma-start": "karma start config/karma.config.js", | ||
"webpack": "webpack --config config/webpack.config.js", | ||
"webpack-prod": "NODE_ENV=production webpack --config config/webpack.config.js" | ||
... | ... | @@ -13,7 +14,8 @@ |
"dependencies": { | ||
"babel-core": "^6.22.1", | ||
"babel-loader": "^6.2.10", | ||
"babel-preset-es2015": "^6.22.0", | ||
"babel-plugin-transform-define": "^1.2.0", | ||
"babel-preset-latest": "^6.24.0", | ||
"babel-preset-stage-2": "^6.22.0", | ||
"bootstrap-sass": "^3.3.6", | ||
"compression-webpack-plugin": "^0.3.2", | ||
... | ... | @@ -57,12 +59,5 @@ |
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-webpack": "^2.0.2", | ||
"webpack-dev-server": "^2.3.0" | ||
}, | ||
"nyc": { | ||
"exclude": [ | ||
"spec/javascripts/test_bundle.js", | ||
"spec/javascripts/**/*_spec.js", | ||
"app/assets/javascripts/droplab/**/*" | ||
] | ||
} | ||
} |
Please register or sign in to comment