run-if-changed
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

run-if-changed

Build Status npm version

npm

Executes a command when one or more files are changed.

Installing

npm install -g run-if-changed

Using

Standard usage:

run-if-changed -f **/* -c \"npm run buid\"

Different checksum file

run-if-changed -f package.json -c \"npm install\" --checksumfile=.packagejson.checksum

Options

run-if-changed -f globPattern -c command [--checksumfile=.file.checksum] [--include=*.js] [--exclude=*.backup] [--outputfile=output.bin]
  • globPattern: glob pattern to look for files.
  • command: command to execute.
  • --output: directory where output files will be written. (If empty, it will be in-place)
  • --basedir: directory that is used as root for globPattern.
  • --outputfile: if this file doesn't exist, the command is run.

Test

npm test

Develop

npm run dev:watch

Update version

  • commit changes (don't update version in package.json)

  • update CHANGELOG.md and commit

    npm version major|minor|patch npm publish git push

Tslint

rules

License

Copyright (c) 2016 Wouter Mooij.

Licensed under the MIT License.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.9
    260
    • latest

Version History

Package Sidebar

Install

npm i run-if-changed

Weekly Downloads

277

Version

0.0.9

License

MIT

Unpacked Size

200 kB

Total Files

48

Last publish

Collaborators

  • wwwouter