clear the console and run flow on file changes
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src fix: lint error Mar 17, 2018
.eslintrc initial commit Oct 2, 2016
.flowconfig initial commit Oct 2, 2016
.gitignore initial commit Oct 2, 2016
.npmignore initial commit Oct 2, 2016
.travis.yml initial commit Oct 2, 2016
LICENSE.md initial commit Oct 2, 2016
README.md docs(README): update default arguments Feb 27, 2018
package.json chore: bump version Mar 17, 2018
yarn.lock fix: use cross-spawn Jan 26, 2018

README.md

flow-watch

A simple file watcher that clears the console and runs flow on each change. Currently tested on OS X -- I don't know if it works on Linux or Windows. Works with flow on your path or flow-bin installed as a peer dependency.

Usage

npm install --save-dev flow-watch

Add a script to your package.json:

{
  "scripts": {
    "flow:watch": "flow-watch"
  }
}

Configuration

flow-watch uses nodemon and accepts any command-line options that nodemon does. If you provide no arguments, it uses the following defaults:

--ignore node_modules/ --watch *.js --watch *.jsx --watch *.js.flow --watch .flowconfig