forked from wuxuegang/maritimechartservice-sample-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntFile.js
45 lines (40 loc) · 960 Bytes
/
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
module.exports = function(grunt) {
var stemappDir = 'C:\\arcgis-web-appbuilder-1.1\\client\\stemapp';
var appDir = 'C:\\arcgis-web-appbuilder-1.1\\server\\apps\\2';
grunt.initConfig({
watch: {
main: {
files: ['**'],
tasks: ['sync'],
options: {
spawn: false
}
}
},
sync: {
stemApp: {
files: [{
cwd: 'src',
src: [
'widgets/**', 'libs/**'
],
dest: stemappDir
}],
verbose: true // Display log messages when copying files
},
app: {
files: [{
cwd: 'src',
src: [
'widgets/**', 'libs/**'
],
dest: appDir
}],
verbose: true // Display log messages when copying files
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-sync');
grunt.registerTask('default', ['sync', 'watch']);
};