Skip to content

Instantly share code, notes, and snippets.

@hikarock
Created June 1, 2013 13:25
Show Gist options
  • Save hikarock/5690366 to your computer and use it in GitHub Desktop.
Save hikarock/5690366 to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
uglify: {
dist: {
src: ["public/js/remp.js"],
dest: "public/js/remp.min.js"
}
},
less: {
dist: {
options: {
yuicompress: true
},
files: [{
expand: true,
cwd: "less/views",
src: ["*.less"],
dest: "public/css/views",
ext: ".css"
}]
}
},
watch: {
less: {
files: [
"less/views/*.less"
],
tasks: [
"less"
]
}
}
});
grunt.registerTask("default", ["uglify", "less"]);
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-contrib-less");
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment