-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
39 lines (38 loc) · 946 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bower: {
install: {
options: {
targetDir: './app/bower',
install: true,
verbose: false,
cleanTargetDir: false,
cleanBowerDir: false
}
}
},
ngtemplates: {
templates: {
cwd: './app/source/templates',
src: ['**/*.html'],
dest: './app/source/templates/templates.js',
options: {
base: '.',
module: 'EventService',
prefix: 'templates/'
}
}
},
watch: {
dev: {
files: ['app/source/templates/**/*.html'],
tasks: ['ngtemplates']
}
}
});
grunt.loadNpmTasks('grunt-bower-task');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-angular-templates');
grunt.registerTask('default', ['bower', 'ngtemplates']);
};