1.2.0 • Published 1 year ago
target-cli v1.2.0
target-cli
Small CLI tool that only compares file modification datetimes.
Install
npm i -D target-cli
Usage
Usage: target [options] <destination> <sources...>
Return true if any of the destination have been modified more recently than the sources.
Arguments:
destination destination file
sources source file(s)
Options:
-V, --version output the version number
-h, --help display help for command
Examples
convert-command
is executed only when srcfile
is newer than dstfile
or dstfile
is not exists.
{
"scripts": {
"convert": "target dstfile srcfile || convert-command srcfile dstfile"
}
}