diff options
author | Mike Greiling <mgreiling@gitlab.com> | 2017-03-20 22:29:45 +0000 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-03-20 22:29:45 +0000 |
commit | fde335bfb755e766e058b25c65cbc514df9b33f9 (patch) | |
tree | d829eaccef8913b269b2915f2d9ee615c1adaffe /package.json | |
parent | b26d4d2ac4cdf3a66e16918dae28d9b724557dd2 (diff) | |
download | gitlab-ce-fde335bfb755e766e058b25c65cbc514df9b33f9.tar.gz |
Only add frontend code coverage instrumentation when generating coverage report
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/package.json b/package.json index 1048e29d0ac..b3d038bd3d1 100644 --- a/package.json +++ b/package.json @@ -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/**/*" - ] } } |