New archive task for Grunt

This commit is contained in:
Vadim Makeev 2014-05-27 13:02:58 +02:00
parent 8bf85bdab2
commit a31c1776a4
2 changed files with 22 additions and 1 deletions

View File

@ -82,6 +82,19 @@ module.exports = function(grunt) {
}, },
src: ['**'] src: ['**']
}, },
compress: {
shower: {
options: {
archive: 'archive.zip'
},
files: [{
expand: true,
cwd: 'temp/pres/',
src: '**',
dest: '.'
}]
}
},
clean: ['temp'] clean: ['temp']
}); });
@ -92,4 +105,11 @@ module.exports = function(grunt) {
'clean' 'clean'
]); ]);
grunt.registerTask('archive', [
'copy',
'replace',
'compress',
'clean'
]);
}; };

View File

@ -34,6 +34,7 @@
"grunt": "^0.4.4", "grunt": "^0.4.4",
"grunt-bump": "0.0.13", "grunt-bump": "0.0.13",
"grunt-contrib-clean": "^0.5.0", "grunt-contrib-clean": "^0.5.0",
"grunt-contrib-compress": "^0.9.1",
"grunt-contrib-copy": "^0.5.0", "grunt-contrib-copy": "^0.5.0",
"grunt-gh-pages": "^0.9.1", "grunt-gh-pages": "^0.9.1",
"grunt-text-replace": "^0.3.11", "grunt-text-replace": "^0.3.11",