mirror of
https://github.com/pebble-dev/clay.git
synced 2026-09-05 16:47:37 -04:00
Fix sourcemaps on karma for debug
This commit is contained in:
+2
-1
@@ -8,7 +8,8 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test-travis": "./node_modules/.bin/karma start ./test/karma.conf.js --single-run --browsers chromeTravisCI && ./node_modules/.bin/eslint ./",
|
"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 ./",
|
"lint": "./node_modules/.bin/eslint ./",
|
||||||
"build": "gulp"
|
"build": "gulp"
|
||||||
},
|
},
|
||||||
|
|||||||
+8
-2
@@ -22,7 +22,11 @@ module.exports = function(config) {
|
|||||||
'deamdify',
|
'deamdify',
|
||||||
[
|
[
|
||||||
'browserify-istanbul',
|
'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
|
// test results reporter to use
|
||||||
// possible values: 'dots', 'progress'
|
// possible values: 'dots', 'progress'
|
||||||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
// 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
|
// optionally, configure the reporter
|
||||||
coverageReporter: {
|
coverageReporter: {
|
||||||
|
|||||||
Reference in New Issue
Block a user