@brikcss/watcher-cli

CLI utility to watch files and do stuff when they change.

Usage no npm install needed!

<script type="module">
  import brikcssWatcherCli from 'https://cdn.skypack.dev/@brikcss/watcher-cli';
</script>

README

Watcher CLI

CLI utility to watch files and do stuff when they change. A tiny wrapper around chokidar.

NPM version NPM downloads per month Travis branch Commitizen friendly semantic release code style: prettier

Install

npm install -D @brikcss/watcher-cli

Usage

  • To watch files and run a shell command:

    watch <source files> --exec="<command to execute>"
    
  • To watch files and run a script:

    watch <source files> --script="<path to script>"
    
  • To watch files and run chokidar with a config file:

    watch <source files> --config=<path to config>
    

Environment support

Node CLI UMD Browser
𐄂 𐄂 𐄂