-
Notifications
You must be signed in to change notification settings - Fork 91
/
gruntfile.js
43 lines (41 loc) · 1.5 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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
copy: {
libs: {
files: [
{ expand: true, cwd: 'libs/', src: ['**/*.*'], dest: 'dist/libs/' }
]
},
fonts: {
files: [
{ expand: true, cwd: 'src/themes/proton/fonts', src: ['**/*.*'], dest: 'dist/themes/proton/fonts' }
]
}
},
less: {
production: {
options: {
cleancss: true,
compress: true
},
files: {
'dist/themes/default/style.min.css': 'src/themes/default/style.less',
'dist/themes/proton/style.min.css': 'src/themes/proton/style.less'
}
},
development: {
files: {
'src/themes/default/style.css': 'src/themes/default/style.less',
'dist/themes/default/style.css': 'src/themes/default/style.less',
'src/themes/proton/style.css': 'src/themes/proton/style.less',
'dist/themes/proton/style.css': 'src/themes/proton/style.less'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-less');
// Default task, generate theme sprite images and CSS
grunt.registerTask('default', ['copy:libs', 'copy:fonts', 'less']);
};