Fix sourcemaps on karma for debug

This commit is contained in:
Keegan
2016-02-01 14:55:26 -08:00
parent 04f2f9dabd
commit 7e3dbfa148
2 changed files with 10 additions and 3 deletions
+2 -1
View File
@@ -8,7 +8,8 @@
},
"scripts": {
"test-travis": "./node_modules/.bin/karma start ./test/karma.conf.js --single-run --browsers chromeTravisCI && ./node_modules/.bin/eslint ./",
"test": "./node_modules/.bin/karma start ./test/karma.conf.js --no-single-run",
"test-debug": "export DEBUG=true; ./node_modules/.bin/karma start ./test/karma.conf.js --no-single-run",
"test": "./node_modules/.bin/karma start ./test/karma.conf.js --single-run",
"lint": "./node_modules/.bin/eslint ./",
"build": "gulp"
},
+8 -2
View File
@@ -22,7 +22,11 @@ module.exports = function(config) {
'deamdify',
[
'browserify-istanbul',
{ ignore: ['**/test/**', '**/src/scripts/vendor/**'] }
{
ignore: process.env.DEBUG ?
['**/**'] :
['**/test/**', '**/src/scripts/vendor/**']
}
]
]
},
@@ -46,7 +50,9 @@ module.exports = function(config) {
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['mocha', 'coverage', 'threshold'],
reporters: process.env.DEBUG ?
['mocha'] :
['mocha', 'coverage', 'threshold'],
// optionally, configure the reporter
coverageReporter: {