Caret/Gruntfile.js
Thomas Wilburn 83807d4ee2 Fixes #15
2013-09-06 09:33:05 -07:00

40 lines
No EOL
869 B
JavaScript

module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-contrib-less");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-contrib-compress");
grunt.initConfig({
less: {
all: {
files: {
"css/editor.css": "css/seed.less"
}
}
},
watch: {
css: {
files: ["css/*.less"],
tasks: ["less"]
},
options: {
spawn: false
}
},
compress: {
package: {
options: {
archive: "build/caret.zip",
pretty: true
},
files: {
"/": ["config/**", "js/**", "css/*.css", "*.html", "manifest.json", "require.js", "background.js", "*.png"]
}
}
}
});
grunt.registerTask("default", ["less", "watch"]);
grunt.registerTask("package", ["less:all", "compress:package"]);
};