diff --git a/Gruntfile.js b/Gruntfile.js index 4dae1f4..8acd709 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -82,6 +82,19 @@ module.exports = function(grunt) { }, src: ['**'] }, + compress: { + shower: { + options: { + archive: 'archive.zip' + }, + files: [{ + expand: true, + cwd: 'temp/pres/', + src: '**', + dest: '.' + }] + } + }, clean: ['temp'] }); @@ -92,4 +105,11 @@ module.exports = function(grunt) { 'clean' ]); -}; \ No newline at end of file + grunt.registerTask('archive', [ + 'copy', + 'replace', + 'compress', + 'clean' + ]); + +}; diff --git a/package.json b/package.json index 51c0c5f..a1ce2f9 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "grunt": "^0.4.4", "grunt-bump": "0.0.13", "grunt-contrib-clean": "^0.5.0", + "grunt-contrib-compress": "^0.9.1", "grunt-contrib-copy": "^0.5.0", "grunt-gh-pages": "^0.9.1", "grunt-text-replace": "^0.3.11",