44 lines
1.5 KiB
JavaScript
Raw Normal View History

2020-05-19 11:43:42 +03:00
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']);
};