Pack files or folders.
This is a fbi task. If you haven't installed fbi yet, use the following command to install.
$ npm i -g fbi
oryarn global add fbi
fbi v3.0+
node v7.6+
- pack files/folders with archiver
- support
.zip
(default),.tar
,.tar.gz
formats - support
input
,output
options
Install
$ fbi add https://github.com/fbi-templates/fbi-task-pack.git
Run
$ cd path/to/any/directory
$ fbi pack
-i/-input
: Pattern to be matched (absoulute or relative path) docs- optional: true
- defaults: current directory
- example:
$ fbi pack -i=example/sub-folder
-o/-ouput
: file path to output (absoulute or relative path)- optional: true
- defaults: input's name
- example:
$ fbi pack -o=a.zip
-f/-format
: archive format- optional: true
- defaults: zip (can be 'zip', 'tar', 'gz')
- example:
$ fbi pack -f=tar
-ignore
: A pattern or an array of glob patterns to exclude matches- optional: true
- defaults:
.DS_Store,*/.DS_Store,**/*/.DS_Store,**/.git/**,**/.svn/**
- example:
$ fbi pack -ignore=**/x/**,a.txt