-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgruntfile.js
61 lines (57 loc) · 1.79 KB
/
gruntfile.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
55
56
57
58
59
60
61
module.exports = function (grunt) {
grunt.initConfig({
watchChokidar: {
"compile.less": {
files: [
'source/app/client/less/**/*.less',
'source/app/client/less/**/*.*.less'
],
tasks: ['compile:less'],
options: {
event: ['unlink', 'change', 'add'],
spawn: false
}
},
"compile.config": {
files: [
'out/app/config/**/*.yml',
'out/app/client/config/**/*.yml',
'out/app/server/config/**/*.yml'
],
tasks: ['compile:config'],
options: {
event: ['unlink', 'change', 'add'],
spawn: false
}
},
"compile.schema": {
files: [
'source/app/client/ts/models/**/*.ts',
'source/app/server/models/**/*.ts'
],
tasks: ['compile:schema'],
options: {
event: ['unlink', 'change', 'add'],
spawn: false
}
},
"cleanup.ts": {
files: [
'source/**/*.ts',
'source/**/*.*.ts'
],
tasks: ['cleanup:ts'],
options: {
event: ['unlink'],
spawn: false
}
}
}
});
// Load the watcher task
grunt.loadNpmTasks('grunt-contrib-watch-chokidar');
// generic loading custom tasks
grunt.loadTasks("out/tasks");
// default task
grunt.registerTask("default", ["watchChokidar"]);
};