2014-01-30 16:11:02 +00:00
|
|
|
module.exports = function(grunt){
|
|
|
|
|
|
|
|
grunt.initConfig({
|
2014-01-30 16:34:23 +00:00
|
|
|
// Compile specified less files
|
|
|
|
less: {
|
|
|
|
compile: {
|
|
|
|
options: {
|
|
|
|
// These paths are searched for @imports
|
|
|
|
paths: ["assets/css"]
|
|
|
|
},
|
|
|
|
files: {
|
|
|
|
"assets/css/woocommerce.css": "assets/css/woocommerce.less"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2014-01-30 16:11:02 +00:00
|
|
|
});
|
|
|
|
|
2014-01-30 16:34:23 +00:00
|
|
|
// Load NPM tasks to be used here
|
|
|
|
grunt.loadNpmTasks("grunt-contrib-less");
|
|
|
|
|
|
|
|
// Register tasks
|
|
|
|
grunt.registerTask( 'default', []);
|
|
|
|
grunt.registerTask( 'dev', ["less:compile"]);
|
2014-01-30 16:11:02 +00:00
|
|
|
|
|
|
|
};
|