smoke-run

Run shell commands on file system events.

Usage no npm install needed!

<script type="module">
  import smokeRun from 'https://cdn.skypack.dev/smoke-run';
</script>

README

Smoke-Run

Runs shell commands on file system watch events.

NPM package

$ npm install smoke-run -g
# re-run index.js on file change

$ smoke-run ./index.js -x "node ./src/index.js"

Overview

Smoke-Run is a development tool used to run and re-run shell commands on file system watch events. Useful for compile on save development workflows.

Usage

Smoke-Run accepts a glob as its first argument followed by a seperator -x then the shell command to run.

$ smoke-run <glob> -x <command>

Examples: smoke-run index.js    -x "node index.js"
          smoke-run **          -x "node index.js"
          smoke-run **.js       -x "node index.js"
          smoke-run {**,.}/*.js -x "node index.js"

Tasks

npm run clean       # cleans this project
npm run pack        # builds npm pack file.
npm run install_cli # packs and installs the cli locally.