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']);