summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2017-02-16 13:10:32 +1100
committerSimon Knox <psimyn@gmail.com>2017-02-16 13:10:32 +1100
commit8a928af0fc54a84c5b858955e7459512155d4af0 (patch)
tree4c55ff6c1cd20405e9adf5973e2ce1c229fcebde /config
parent3f713db0da2602152aa482b57f84b7418fd20a93 (diff)
parentb05e75b8faccc50749adc63419074c91802a8f50 (diff)
downloadgitlab-ce-task_list_refactor.tar.gz
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into task_list_refactortask_list_refactor
Diffstat (limited to 'config')
-rw-r--r--config/karma.config.js7
-rw-r--r--config/webpack.config.js2
2 files changed, 9 insertions, 0 deletions
diff --git a/config/karma.config.js b/config/karma.config.js
index 44229e2ee88..a1fbeab1f46 100644
--- a/config/karma.config.js
+++ b/config/karma.config.js
@@ -15,6 +15,13 @@ module.exports = function(config) {
preprocessors: {
'spec/javascripts/**/*.js?(.es6)': ['webpack', 'sourcemap'],
},
+ reporters: ['progress', 'coverage-istanbul'],
+ coverageIstanbulReporter: {
+ reports: ['html', 'text-summary'],
+ dir: 'coverage-javascript/',
+ subdir: '.',
+ fixWebpackSourcePaths: true
+ },
webpack: webpackConfig,
webpackMiddleware: { stats: 'errors-only' },
});
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 2ac779c8511..e63775e43ce 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -54,6 +54,7 @@ var config = {
exclude: /(node_modules|vendor\/assets)/,
loader: 'babel-loader',
options: {
+ plugins: IS_PRODUCTION ? [] : ['istanbul'],
presets: [
["es2015", {"modules": false}],
'stage-2'
@@ -82,6 +83,7 @@ var config = {
new CompressionPlugin({
asset: '[path].gz[query]',
}),
+ new webpack.IgnorePlugin(/moment/, /pikaday/),
],
resolve: {