-
Notifications
You must be signed in to change notification settings - Fork 4
/
Gruntfile.js
36 lines (31 loc) · 1.15 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
/* This default Gruntfile only watches for changes to the src/main/resources files and
* copies them to the target/openidm_project folder. This makes it easier to develop your project
* in your source working copy without having to manually rebuild the target after each change.
*
* If you need more sophisticated build processes (such as UI minification, for example) then you
* can add that logic to this file with additional grunt plugins (be sure to update package.json)
*/
module.exports = function(grunt) {
grunt.initConfig({
sync: {
custom: {
files: [{
cwd : 'src/main/resources',
src : ['**/*'],
dest : 'target/openidm_project',
flatten : false,
expand : true
}]
}
},
watch: {
copyIDM: {
files: ['src/main/resources/**'],
tasks: [ 'sync' ]
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-sync');
grunt.registerTask('default', ['sync', 'watch']);
};