forked from sijis/whiskerboard
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
41 lines (37 loc) · 1013 Bytes
/
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
module.exports = function(grunt) {
grunt.initConfig({
less: {
main: {
files: {
'application_styles/main.css':'application_styles/main.less'
}
},
bootstrap: {
files: {
'board/static/css/lib/bootstrap.css':'bower_components/bootstrap/less/bootstrap.less'
}
}
},
copy: {
bootstrapVars: {
src: 'application_styles/variables.less',
dest: 'bower_components/bootstrap/less/variables.less'
},
bootstrapJS: {
src: 'bower_components/bootstrap/dist/js/bootstrap.min.js',
dest: 'board/static/js/libs/bootstrap.min.js'
}
},
autoprefixer: {
dist: {
files: {
'board/static/css/main.css':'application_styles/main.css'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-autoprefixer');
grunt.registerTask('default',['copy','less','autoprefixer']);
};