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({ grunt.initConfig({
pkg: grunt.file.readJSON('package.json'), pkg: grunt.file.readJSON('package.json'),
clean: ["./service/src/main/resources/assets_build/"],
cssmin: { cssmin: {
task: { task: {
src: [ src: [
...@@ -54,7 +55,6 @@ module.exports = function(grunt) { ...@@ -54,7 +55,6 @@ module.exports = function(grunt) {
} }
} }
}, },
//todo: add clean?
uglify: { uglify: {
task: { task: {
src: [ src: [
...@@ -87,13 +87,12 @@ module.exports = function(grunt) { ...@@ -87,13 +87,12 @@ module.exports = function(grunt) {
} }
}); });
grunt.loadNpmTasks('grunt-contrib-clean');
//todo: add clean
grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-htmlmin'); grunt.loadNpmTasks('grunt-contrib-htmlmin');
grunt.loadNpmTasks('grunt-contrib-copy'); 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 @@ ...@@ -4,6 +4,7 @@
"version": "0.0.1", "version": "0.0.1",
"devDependencies": { "devDependencies": {
"grunt": "0.4.5", "grunt": "0.4.5",
"grunt-contrib-clean": "^1.0.0",
"grunt-contrib-concat": "^1.0.0", "grunt-contrib-concat": "^1.0.0",
"grunt-contrib-copy": "^1.0.0", "grunt-contrib-copy": "^1.0.0",
"grunt-contrib-cssmin": "*", "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