chokidar-app

File changes watcher & post processor

Usage no npm install needed!

<script type="module">
  import chokidarApp from 'https://cdn.skypack.dev/chokidar-app';
</script>

README

Chokidar App

A utility package to listen for file changes & then run desired set of 2 commands one after the other.

Installation

Preferabaly, install this package globally

npm install -g chokidar-app
yarn global add chokidar-app --prefix /usr/local

API

Post installation, you can start this file watcher using

start-ca [c1] pb

It accepts 2 params

  • c1 - Optional

    1st command to run post file changes.

    Default: make build

  • pb

    2nd command to run after 1st command is successful.

Usage

  • start-ca --pb='cp -R lib ../np/node_modules/frost/'
  • start-ca --c1='make test' --pb='cp -R lib ../np/node_modules/frost/'