Skip to content

Instantly share code, notes, and snippets.

@partageit
Created June 5, 2014 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save partageit/cd921f56f9c5976600a6 to your computer and use it in GitHub Desktop.
Save partageit/cd921f56f9c5976600a6 to your computer and use it in GitHub Desktop.
Partage-it.com : Less et yo angular - Gruntfile.js
// New task:
[...]
karma: {
[...]
},
less: {
server: {
files: {
"<%= yeoman.app %>/styles/style.css": "<%= yeoman.app %>/less/*.less"
}
}
}
// Live reload handling:
watch: {
[...]
less: {
files: ['<%= yeoman.app %>/less/{,*/}*.less'],
tasks: ['less']
},
[...]
}
// Common tasks handling:
grunt.registerTask('serve', function (target) {
[...]
grunt.task.run([
'clean:server',
'less',
[...]
]);
});
grunt.registerTask('test', [
'clean:server',
'less',
[...]
]);
grunt.registerTask('build', [
'clean:dist',
'less',
[...]
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment