Commit 80ec46a0 authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

add grunt clean

parent 624d1e83
module.exports = function(grunt) {
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: ["./service/src/main/resources/assets_build/"],
cssmin: {
task: {
src: [
......@@ -54,7 +55,6 @@ module.exports = function(grunt) {
}
}
},
//todo: add clean?
uglify: {
task: {
src: [
......@@ -87,13 +87,12 @@ module.exports = function(grunt) {
}
});
//todo: add clean
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-htmlmin');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.registerTask('default', ['jshint', 'copy', 'htmlmin', 'cssmin', 'uglify']);
grunt.registerTask('default', ['clean', 'jshint', 'copy', 'htmlmin', 'cssmin', 'uglify']);
};
\ No newline at end of file
......@@ -4,6 +4,7 @@
"version": "0.0.1",
"devDependencies": {
"grunt": "0.4.5",
"grunt-contrib-clean": "^1.0.0",
"grunt-contrib-concat": "^1.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-cssmin": "*",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment