-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
48 lines (44 loc) · 1.13 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
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
cssmin: {
dist: {
src: 'public/stylesheets/style.css',
dest: 'public/stylesheets/style.min.css',
}
},
bowercopy: {
dist: {
options: {
destPrefix: 'public/vendor'
},
files: {
'bootstrap/': 'bootstrap/',
'jquery/jquery.min.js': 'jquery/dist/jquery.min.js',
'd3/d3.min.js': 'd3/d3.min.js',
'AdminLTE/AdminLTE.min.css': 'AdminLTE/dist/css/AdminLTE.min.css',
'AdminLTE/': 'AdminLTE/dist/js/',
'font-awesome/': 'font-awesome/'
}
}
},
watch: {
scripts: {
files: ['public/stylesheets/style.css'],
tasks: ['cssmin'],
options: {
spawn: false, //faster, but prone to errors
debounceDelay: 250 //delay for automated tasks
},
},
livereload: {
options: { livereload: true },
files: ['public/**/*', 'views/**/*']
}
}
});
grunt.registerTask('default', ['cssmin', 'bowercopy', 'watch']);
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-bowercopy');
};