Compile LESS files with grunt

This commit is contained in:
Rowan Manning
2013-11-05 11:23:19 +00:00
parent 0cf37c8c52
commit 4f46621aaf
4 changed files with 23 additions and 10 deletions

View File

@@ -16,14 +16,27 @@ module.exports = function (grunt) {
node: true,
quotmark: 'single'
}
},
less: {
all: {
options: {
cleancss: true
},
files: {
'public/css/main.css': 'public/less/main.less'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.registerTask('lint', ['jshint']);
grunt.registerTask('default', ['lint']);
grunt.registerTask('ci', ['lint']);
grunt.registerTask('compile', ['less']);
grunt.registerTask('default', ['compile', 'lint']);
grunt.registerTask('ci', ['compile', 'lint']);
};