From 90a3cf0ed2cb9345041e89201d2a87f81c14669b Mon Sep 17 00:00:00 2001 From: Laura Luiz Date: Fri, 17 Jun 2016 11:18:41 +0200 Subject: [PATCH] Fix removed built package --- Gruntfile.js | 5 ++--- package.json | 2 +- tasks/options/clean.js | 6 +++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index c6a72de09..3b616ead8 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -23,9 +23,9 @@ module.exports = function(grunt) { grunt.registerTask('build-templates', ['clean:templates', 'internal-build-templates']); grunt.registerTask('build-release', ['build', 'assetFingerprint']); - grunt.registerTask('build-composer', ['build-release', 'copy:composer']); + grunt.registerTask('build-composer', ['build-release', 'copy:composer', 'clean:output']); - grunt.registerTask('build-webjar', ['build-release', 'maven:webjars']); + grunt.registerTask('build-webjar', ['build-release', 'maven:webjars', 'clean:output']); grunt.registerTask('install-webjar', ['build-release', 'maven:install', 'clean']); grunt.registerTask('release-webjar', ['build-release', 'maven:release', 'clean']); @@ -34,7 +34,6 @@ module.exports = function(grunt) { grunt.registerTask('internal-build-images', ['copy:images', 'imagemin']); grunt.registerTask('internal-build-assets', ['copy:assets', 'sass', 'postcss', 'uglify']); grunt.registerTask('internal-build-templates', ['copy:templates', 'copy:others', 'json-refs', 'generate-html']); - }; function loadConfig(path) { diff --git a/package.json b/package.json index 0416da51d..cd8424604 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "commercetools-sunrise-theme", - "version": "0.59.0-SNAPSHOT", + "version": "0.58.1-SNAPSHOT", "description": "Theme for commercetools Sunrise online shop", "repository": { "type": "git", diff --git a/tasks/options/clean.js b/tasks/options/clean.js index 10e6894f7..338a0e4b0 100644 --- a/tasks/options/clean.js +++ b/tasks/options/clean.js @@ -3,8 +3,7 @@ module.exports = { // 'grunt-contrib-clean': remove files output: [ - 'output/', - 'composer/' + 'output/' ], images: [ @@ -25,7 +24,8 @@ module.exports = { ], dist: [ - '*.jar' + '*.jar', + 'composer/' ] }