Skip to content

Commit 37a7d33

Browse files
committed
Merge pull request angular-ui#95 from drew-intuit/master
Add a watch grunt task to use karma's autoWatch
2 parents dba325b + c1bf6f6 commit 37a7d33

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Gruntfile.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,17 @@ module.exports = function (grunt) {
2323
},
2424
karma: {
2525
options: {
26-
configFile: 'test/karma.conf.js'
26+
configFile: 'test/karma.conf.js',
27+
browsers: ['Firefox', 'PhantomJS']
2728
},
2829
unit: {
29-
singleRun: true,
30-
browsers: ['Firefox', 'PhantomJS']
30+
singleRun: true
31+
},
32+
watch: {
33+
autoWatch: true
3134
},
3235
server: {
33-
background: true,
34-
browsers: ['Firefox', 'PhantomJS']
36+
background: true
3537
}
3638
},
3739
jshint: {
@@ -48,6 +50,7 @@ module.exports = function (grunt) {
4850

4951
// Register tasks
5052
grunt.registerTask('default', ['jshint', 'karma:unit']);
53+
grunt.registerTask('watch', ['jshint', 'karma:watch']);
5154

5255
grunt.initConfig(initConfig);
5356
};

0 commit comments

Comments
 (0)