-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
81 lines (77 loc) · 2.83 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
module.exports = function (grunt) {
grunt.initConfig({
uglify: {
js: {
files: {
'assets/build.js': ['assets/build.js']
}
},
css: {
files: {
'assets/build.js': ['assets/build.js']
}
},
},
concat: {
js: {
src: [
'bower_components/jquery/dist/jquery.min.js',
'bower_components/bootstrap/dist/js/bootstrap.min.js',
'bower_components/angular/angular.min.js',
// 'bower_components/noty/js/noty/packaged/jquery.noty.packaged.min.js',
// 'bower_components/moment/min/moment.min.js',
// 'bower_components/angular-animate/angular-animate.min.js',
// 'bower_components/angular-sanitize/angular-sanitize.min.js',
// 'bower_components/angular-route/angular-route.min.js',
// 'bower_components/angular-moment/angular-moment.min.js',
// 'bower_components/ngstorage/ngStorage.min.js',
// 'bower_components/angular-bootstrap/ui-bootstrap.min.js',
'bower_components/angular-confirm/dist/angular-confirm.min.js',
'bower_components/Waves/dist/waves.min.js',
// 'bower_components/script.js/dist/script.min.js',
'assets/js/script.js',
],
dest: 'assets/build.js',
},
css: {
src: [
'bower_components/bootstrap/dist/css/bootstrap.min.css',
'assets/css/material-design-iconic-font.min.css',
'assets/css/app.css',
'assets/css/styles.css'
],
dest: 'assets/build.css'
}
},
watch: {
js: {
files: ['assets/js/*.js'],
tasks: ['concat:js'],
},
css: {
files: ['assets/css/*.less'],
tasks: ['less:css', 'concat:css']
}
},
less: {
css: {
files: {
'assets/css/styles.css': 'assets/css/styles.less'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.registerTask('build', ['concat:js', 'less:css', 'concat:css']);
grunt.registerTask('build-release', [
'concat:js',
'uglify:js',
'less:css',
'concat:css',
'uglify:css'
]);
grunt.registerTask('default', ['watch:js', 'watch:css']);
};