mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(karma): re-run karma on source changes as well
This commit is contained in:
@ -687,7 +687,7 @@ gulp.task('karma', ['tests'], function() {
|
|||||||
return karma.start({ configFile: __dirname + '/scripts/karma/karma.conf.js' })
|
return karma.start({ configFile: __dirname + '/scripts/karma/karma.conf.js' })
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('karma-watch', ['tests'], function() {
|
gulp.task('karma-watch', ['tests', 'watch'], function() {
|
||||||
var karma = require('karma').server;
|
var karma = require('karma').server;
|
||||||
return karma.start({ configFile: __dirname + '/scripts/karma/karma-watch.conf.js' })
|
return karma.start({ configFile: __dirname + '/scripts/karma/karma-watch.conf.js' })
|
||||||
});
|
});
|
||||||
|
@ -22,6 +22,7 @@ module.exports = function(config) {
|
|||||||
'dist/bundles/ionic.system.js',
|
'dist/bundles/ionic.system.js',
|
||||||
//'node_modules/angular2/bundles/test_lib.js',
|
//'node_modules/angular2/bundles/test_lib.js',
|
||||||
{ pattern: 'dist/tests/**/*.spec.js', included: false },
|
{ pattern: 'dist/tests/**/*.spec.js', included: false },
|
||||||
|
{ pattern: 'dist/**/*.js', included: false, served: false },
|
||||||
'scripts/karma/test-main.js'
|
'scripts/karma/test-main.js'
|
||||||
],
|
],
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user