-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
41 lines (37 loc) · 1.48 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
37
38
39
40
41
'use strict';
var grunt = require('grunt');
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
app: {
source: 'src/main/webapp',
dist: 'src/main/webapp'
},
uglify: {
dist: {
options: {
compress: true,
preserveComments: false,
report: 'min'
},
files: {
'<%= app.dist %>/dist/js/vendor-scripts.js': [
'app/bower_components/jquery/dist/jquery.js',
'app/bower_components/angular/angular.js',
'app/bower_components/angular-ui-router/release/angular-ui-router.js',
'app/bower_components/angular-animate/angular-animate.js',
'app/bower_components/angular-aria/angular-aria.js',
'app/bower_components/angular-material/angular-material.js',
'app/bower_components/angular-messages/angular-messages.js'
],
'<%= app.dist %>/dist/js/custom-scripts.js': [
'<%= app.source %>/js/app.js'
]
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-install-dependencies');
grunt.registerTask('default', ['uglify:dist']);
};