-
Notifications
You must be signed in to change notification settings - Fork 0
/
GruntFile.js
37 lines (33 loc) · 967 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
/*
* Grunt file for overide projects with projects !
* Useful for develop and override projects without touching sources
* Eg, need to modify a legacy project which not provides modules or extensions
*
*/
module.exports = function (grunt) {
// Grunt configuration goes into initConfig
grunt.initConfig({
conf: grunt.file.readJSON('conf.json'),
copy: {
main: {
cwd: '<%= conf.override %>',
src: ['**'],
dest: '<%= conf.project %>',
expand: true
}
}
,
watch: {
copy: {
files: ['<%= conf.override %>/**'],
tasks: ['copy']
}
}
})
;
// Next one would load plugins
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-watch');
// Here is where we would define our task
grunt.registerTask('build', ['copy']);
};