Ensure we build/clean before creating packages

This commit is contained in:
Tom Fulton
2014-01-31 16:05:33 -07:00
parent 926e12fa8f
commit 785199d7cf
+4 -3
View File
@@ -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']);