Skip to content

Instantly share code, notes, and snippets.

@bergantine
Last active August 29, 2015 13:56
Show Gist options
  • Save bergantine/9172763 to your computer and use it in GitHub Desktop.
Save bergantine/9172763 to your computer and use it in GitHub Desktop.
package.json for Grunt-cli
module.exports = function(grunt) {
grunt.registerTask('watch', [ 'watch' ]);
grunt.initConfig({
less: {
style: {
files: {
"css/screen.css": "less/screen.less"
}
}
},
watch: {
css: {
files: ['less/*.less'],
tasks: ['less:style'],
options: {
livereload: true,
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
};
{
"name": "my-project",
"version": "0.0.1",
"dependencies": {
"grunt-cli": "latest",
"grunt-contrib-less": "latest",
"grunt-contrib-watch": "latest"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment