From 785199d7cfd94d3ab3008eaee711247839ffe185 Mon Sep 17 00:00:00 2001 From: Tom Fulton Date: Fri, 31 Jan 2014 16:05:33 -0700 Subject: [PATCH] Ensure we build/clean before creating packages --- Gruntfile.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index c2bb320..f030c7d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -155,6 +155,7 @@ module.exports = function(grunt) { clean: { build: ['<%= dest %>'], package_temp: ['pkg/tmp'], + package_artifacts: ['pkg/*.zip', 'pkg/*.nupkg'], }, msbuild: { @@ -189,9 +190,9 @@ module.exports = function(grunt) { grunt.loadTasks('tasks'); - grunt.registerTask('package', ['package:nuget', 'package:umbraco']); - grunt.registerTask('package:nuget', ['copy:nuget_prepare', 'template:nuget_manifest', 'nugetpack', 'clean:package_temp']); - grunt.registerTask('package:umbraco', ['copy:umbracopackage', 'umbracoPackage', 'clean:package_temp']); + grunt.registerTask('package', ['default', 'package:nuget', 'package:umbraco']); + grunt.registerTask('package:nuget', ['clean:package_artifacts', 'copy:nuget_prepare', 'template:nuget_manifest', 'nugetpack', 'clean:package_temp']); + grunt.registerTask('package:umbraco', ['clean:package_artifacts', 'copy:umbracopackage', 'umbracoPackage', 'clean:package_temp']); grunt.registerTask('touchwebconfigifenabled', function() { if (grunt.option("touch")) grunt.task.run("touch:webconfig") }); grunt.registerTask('deploy', ['default', 'copy:deploy', 'touchwebconfigifenabled']); grunt.registerTask('css:build', ['less']);