0.0.9 • Published 5 years ago

run-if-changed v0.0.9

Weekly downloads
317
License
MIT
Repository
gitlab
Last release
5 years ago

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.

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago