-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntFile.js
39 lines (34 loc) · 867 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
"use strict";
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
templates: [
'src/templates/**.html'
],
srcFiles: [
'src/*.js',
'src/directives/*.js',
'src/services/*.js',
'<%= ngtemplates.ngGridDatePicker.dest %>'
],
ngtemplates: {
ngGridDatePicker: {
cwd: 'src/templates',
src: '*.html',
dest: "build/<%= pkg.name %>.js"
}
},
concat: {
development: {
src: ['<%= srcFiles %>'],
dest: 'build/<%= pkg.name %>.js'
}
}
});
// Load the plugin
grunt.loadNpmTasks('grunt-angular-templates');
grunt.loadNpmTasks('grunt-contrib-concat');
// Default task
grunt.registerTask('default', ['ngtemplates', 'concat']);
};