Caret/Gruntfile.js

40 lines
866 B
JavaScript
Raw Normal View History

2013-08-22 06:35:47 +00:00
module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-contrib-less");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-contrib-compress");
2013-08-22 06:35:47 +00:00
grunt.initConfig({
less: {
all: {
files: {
"css/editor.css": "css/seed.less"
2013-08-22 06:35:47 +00:00
}
}
},
watch: {
css: {
files: ["css/*.less"],
tasks: ["less"]
},
options: {
spawn: false
}
},
compress: {
2013-09-10 16:19:14 +00:00
pack: {
options: {
archive: "build/caret.zip",
pretty: true
},
files: {
"/": ["config/**", "js/**", "css/*.css", "*.html", "manifest.json", "require.js", "background.js", "*.png"]
}
}
2013-08-22 06:35:47 +00:00
}
});
grunt.registerTask("default", ["less", "watch"]);
grunt.registerTask("package", ["less:all", "compress:package"]);
2013-08-22 06:35:47 +00:00
};