ZIP compress files with Fly.
npm install --save-dev fly-zip
This will produces a ZIP at releases/Archive.zip
, containing all contents within the dist
directory.
exports.zip = function * (fly) {
yield fly.source('dist/**/*').zip({
dest: 'releases',
file: 'Archive.zip'
});
};
Type: string
Default: '.'
The directory where the ZIP should be placed. Defaults to Fly's root directory, where flyfile.js
is located.
Type: string
Default: 'archive.zip'
The name of your ZIP file. It must include .zip
.
MIT © Luke Edwards