forked from angular-ui/ui-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwatch.js
54 lines (43 loc) · 1.3 KB
/
watch.js
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
var util = require('../lib/grunt/utils.js');
module.exports = function( grunt, options ){
var config = {
// list of files to watch, and tasks to run if those files change
gruntfile: {
files: ['<%= jshint.gruntfile.src %>', 'grunt/*.js'],
tasks: ['jshint:gruntfile', 'ngdocs']
},
ngtemplates: {
// files: ['src/templates/**/*.html', 'src/features/*/templates/**/*.html'],
files: '<%= ngtemplates.uigrid.src %>',
tasks: ['ngtemplates']
},
rebuild: {
files: util.testFiles.unit,
tasks: ['jshint:src_test', 'jscs', 'karmangular:run', 'concat', 'uglify', 'ngdocs'],
},
protractor: {
files: ['.tmp/doc-scenarios/**/*.spec.js', 'test/e2e/**/*.spec.js'],
tasks: ['protractor:auto']
},
less: {
files: 'src/**/*.less',
tasks: ['less', 'ngdocs', 'concat:customizer_less']
},
docs: {
files: ['misc/tutorial/**/*.ngdoc', 'misc/api/**/*.ngdoc', 'misc/doc/**'],
tasks: 'ngdocs'
},
copy: {
files: ['misc/site/**'],
tasks: 'copy:site'
},
livereload: {
options: { livereload: true },
files: ['dist/**/*', 'misc/demo/**/*.html', 'docs/**/*'],
}
};
if (grunt.option('fast') || grunt.option('e2e') === false){
config.protractor.tasks = [];
}
return config;
};