2014-07-28 16:08:29 +02:00
|
|
|
// jshint node:true
|
|
|
|
module.exports = function(grunt) {
|
|
|
|
|
|
|
|
// Load plugins here
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-less');
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-clean');
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-connect');
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
|
|
grunt.loadNpmTasks('grunt-recess');
|
|
|
|
|
|
|
|
// Configuration goes here
|
|
|
|
grunt.initConfig({
|
|
|
|
|
|
|
|
less: {
|
|
|
|
development:{
|
|
|
|
files: {
|
|
|
|
"source/stylesheets/main.css": "source/stylesheets/main.less"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
watch: {
|
|
|
|
less: {
|
|
|
|
files: 'source/stylesheets/*.less',
|
|
|
|
tasks: ['less']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
2014-08-07 09:19:56 +02:00
|
|
|
// CSS Compilation task
|
2014-07-28 16:08:29 +02:00
|
|
|
grunt.registerTask('default', ['watch']);
|
|
|
|
|
|
|
|
};
|