New archive task for Grunt
This commit is contained in:
parent
8bf85bdab2
commit
a31c1776a4
20
Gruntfile.js
20
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'
|
||||
]);
|
||||
|
||||
grunt.registerTask('archive', [
|
||||
'copy',
|
||||
'replace',
|
||||
'compress',
|
||||
'clean'
|
||||
]);
|
||||
|
||||
};
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue