bob-watch
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

bob-watch

npm

Execute commands on start and after every file change in specified directories/files patterns, powered by Chokidar.

The previously specified commands processes are killed before the commands are re-executed, specially useful for APIs.

Install

pnpm add -D bob-watch
yarn add -D bob-watch
npm install -D bob-watch

Usage

Usage: bob-watch [options]

Options:
  -V, --version                output the version number
  -c, --command <commands...>  Commands to be executed on start and on every change
  -w, --watch <patterns...>    Patterns of directories or files to be watched
  -i, --ignore <patterns...>   Ignore watch patterns
  --quiet                      Prevent non-error logs (default: false)
  -h, --help                   display help for command

Example

{
  "scripts": {
    "dev": "bob-watch -w src -c \"bob-tsm src/index.ts\""
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i bob-watch

Weekly Downloads

188

Version

0.1.2

License

MIT

Unpacked Size

145 kB

Total Files

14

Last publish

Collaborators

  • pablosz