-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
49 lines (44 loc) · 1.3 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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src: ['build/_bower.js','src/*.js'],
dest: 'dist/<%= pkg.name %>.min.js'
}
},
copy: {
main: {
files: [
{cwd:'src/', src: ['*.js'], dest: 'dist/', flatten: true, expand: true},
{cwd:'src/', src: ['*.html'], dest: 'dist/', flatten: true, expand: true},
{cwd:'build/', src: ['/_bower.js'], dest: 'dist/', flatten: true, expand: true}
]
}
},
bower_concat: {
all: {
dest: 'dist/_bower.js',
cssDest: 'dist/edi-lint.css',
dependencies: {
angular: 'jquery',
angular_material: ['angular','angular-animate','angular-aria']
}
}
},
watch: {
files: ['src/**/*','bower_components/**/*'],
tasks: ['default']
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-bower-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
// Default task(s).
grunt.registerTask('default', ['bower_concat','copy']);
};