1.2.0 • Published 1 year ago

target-cli v1.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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"
  }
}
1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago