Commit a31c1776 authored by Vadim Makeev's avatar Vadim Makeev

New archive task for Grunt

parent 8bf85bda
...@@ -82,6 +82,19 @@ module.exports = function(grunt) { ...@@ -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) { ...@@ -92,4 +105,11 @@ module.exports = function(grunt) {
'clean' 'clean'
]); ]);
}; grunt.registerTask('archive', [
\ No newline at end of file 'copy',
'replace',
'compress',
'clean'
]);
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment