0.1.0 • Published 10 years ago
justo-plugin-zip v0.1.0
Task to zip.
Proudly made with ♥ in Valencia, Spain, EU.
Install
npm install justo-plugin-zipUse
const zip = require("justo-plugin-zip");To zip, the task must be called as follows:
zip(opts, config : object)Configuration object:
base(string). The root path. This is not included in the output.src(string or string[]). Files to zip. The paths are relative tobaseif indicated.ignore(string or string[]). Entries to exclude.files(object). Files to zip:base(string).src(string or string[]).ignore(string or string[]).
dst(string). Output file.
Example:
const zip = require("justo-plugin-zip");
//app/index.html and app/about.html -> build/app.zip
zip("Zip project", {
base: "app/",
src: ["index.html", "about.html"],
dst: "build/app.zip"
});
//app/* -> build/app.zip
zip("Zip project", {
base: "app/",
dst: "build/app.zip"
});0.1.0
10 years ago