0.0.9 • Published 6 years ago

run-if-changed v0.0.9

Weekly downloads
317
License
MIT
Repository
gitlab
Last release
6 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

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

8 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago