forked from PallaviBhoite-zz/angular-training
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
29 lines (29 loc) · 901 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
js: {
src: [
'./app/app.js',
'./app/components/version/*.js',
'./app/view1/*.js',
'./app/view2/*.js'
],
dest: './app/dest/app.js'
}
},
uglify: {
js: {
src: ['./app/dest/app.js'],
dest: './app/dest/min/app.min.js'
}
}
//grunt task configuration will go here
});
//load grunt task
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-ng-annotate');
//register grunt default task
grunt.registerTask('default', ['ngAnnotate', 'concat', 'uglify']);
};