tartifacts-cli
v0.9.0
Published
The tool to create artifacts for your assemblies.
Downloads
51
Readme
tartifacts-cli
The tool to create artifacts for your assemblies.
Install
$ npm install --save-dev tartifacts-cli
Usage
$ tartifacts --help
Options
--follow-symlinks Follow symlinked files and directories
--dot-files Include dotfiles
--empty-dirs Include empty directories
--empty-files Include empty files
--watch Watch mode; signals to stop the process: SIGTERM, SIGINT
Options (config mode)
-c, --config Path to config with artifacts info
-r, --root Path to root directory for artifacts patterns
-d, --dest-dir Path to destination directory for artifacts from config
Options (single mode)
-p, --patterns Path to file with includes and excludes patterns of artifact
-i, --include Paths to inlcude files of artifact
-e, --exclude Paths to exclude files of artifact
-o, --output Path to destination artifact file or directory
Examples
$ tartifacts --config artifacts.json --dest-dir dist/
$ tartifacts --include "lib/**" --exclude "node_modules/" --output artifact.tar.gz
$ tartifacts --patterns ./patterns.txt --output=artifact.tar.gz
Patterns
You can write patterns to file.
Use !
prefix for exclude and #
for comments.
Example:
# include `sources`
sources/**
# exclude `sources/exlib`
!sources/exlib/*.{js,css}
# override previous exclude pattern,
# and include files with `es6.js` extension
sources/exlib/*.{es6.js}
Read more about patterns in glob package.
License
MIT © Andrew Abramov