bob-watch

[![npm](https://img.shields.io/npm/v/bob-watch)](https://npm.im/bob-watch)

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
bob-watch
21110.1.210 months agoa year agoMinified + gzip package size for bob-watch in KB

Readme

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