-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
53 lines (51 loc) · 1.6 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
42
43
44
45
46
47
48
49
50
51
52
53
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
vendor: {
src: [
'bower_components/intro.js/minified/intro.min.js',
'bower_components/underscore/underscore-min.js',
'bower_components/moment/min/moment.min.js',
'bower_components/spin.js/spin.js',
'bower_components/angular/angular.min.js',
'bower_components/angular-route/angular-route.min.js',
'bower_components/elasticsearch/elasticsearch.angular.min.js',
'bower_components/angular-bootstrap/ui-bootstrap.min.js',
'bower_components/angular-scroll-glue/src/scrollglue.js',
'bower_components/angular-loading-bar/build/loading-bar.min.js',
'bower_components/angular-spinner/angular-spinner.min.js'
],
dest: 'build/vendor.min.js'
},
elv: {
src: [
'js/*.js'
],
dest: 'build/<%= pkg.name %>.js'
}
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
files: {
'build/<%= pkg.name %>.js': ['js/*.js']
}
}
},
watch: {
scripts: {
files: ['**/*.js', '!build/*.js',
'!bower_components/**/*.js',
'!node_modules/**/*.js'],
tasks: ['concat']
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['concat', 'uglify']);
};