forked from amageed/angular-resetfield
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
31 lines (28 loc) · 714 Bytes
/
Copy pathGruntfile.js
File metadata and controls
31 lines (28 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
'use strict'
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-karma');
grunt.initConfig({
karma: {
options: {
frameworks: ['jasmine'],
files: [
'bower_components/angular/angular.js',
'bower_components/angular-mocks/angular-mocks.js',
'src/resetField.js',
'src/resetField.spec.js'
]
},
unit: {
autoWatch: true,
browsers: ['Chrome', 'Firefox']
},
continuous: {
singleRun: true,
browsers: ['PhantomJS']
}
}
});
grunt.registerTask('default', ['karma:continuous']);
grunt.registerTask('test', ['default']);
grunt.registerTask('unit', ['karma:unit']);
}