All Projects → jedwards1211 → flow-watch

jedwards1211 / flow-watch

Licence: MIT license
clear the console and run flow on file changes

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to flow-watch

cheap-watch
If it works, why use something else? // Mirror of https://git.chor.date/Conduitry/cheap-watch
Stars: ✭ 64 (+113.33%)
Mutual labels:  watch, file-watcher
Jive.jl
some useful steps in tests 👣
Stars: ✭ 41 (+36.67%)
Mutual labels:  watch
My Ttgo Watch
Firmware for a ttgo-watch2020-v1 smartwatch based on ESP32 from LilyGo.
Stars: ✭ 192 (+540%)
Mutual labels:  watch
spotter
A command line tool for watching files and running shell commands when they change
Stars: ✭ 26 (-13.33%)
Mutual labels:  watch
Node Inotify
Inotify bindings for Node.JS
Stars: ✭ 237 (+690%)
Mutual labels:  watch
gowatch
watch go files for developer, support run test case and auto reload server application
Stars: ✭ 18 (-40%)
Mutual labels:  watch
Beefun Pro
Github client for iOS in Swift.
Stars: ✭ 172 (+473.33%)
Mutual labels:  watch
kube-watch
Simple tool to get webhooks on Kubernetes cluster events
Stars: ✭ 21 (-30%)
Mutual labels:  watch
redparty
Host Youtube watch party with friends. Sync videos and chat in real-time
Stars: ✭ 70 (+133.33%)
Mutual labels:  watch
clipboard-watch
This is height performance clipboard watcher, support windows,osx
Stars: ✭ 21 (-30%)
Mutual labels:  watch
PowerShell-Watch
A PowerShell Watch-Command cmdlet for repeatedly running a command or block of code until a change in the output occurs.
Stars: ✭ 49 (+63.33%)
Mutual labels:  watch
Every Single Day I Tldr
A daily digest of the articles or videos I've found interesting, that I want to share with you.
Stars: ✭ 249 (+730%)
Mutual labels:  watch
AnimeDLR
AnimeDLR
Stars: ✭ 47 (+56.67%)
Mutual labels:  watch
Redux Subscriber
Subscribe to changes in any part of redux state
Stars: ✭ 205 (+583.33%)
Mutual labels:  watch
gow
Missing watch mode for Go commands. Watch Go files and execute a command like "go run" or "go test"
Stars: ✭ 343 (+1043.33%)
Mutual labels:  watch
Newpipe
A libre lightweight streaming front-end for Android.
Stars: ✭ 15,786 (+52520%)
Mutual labels:  watch
ytmous
Anonymous Youtube Proxy
Stars: ✭ 60 (+100%)
Mutual labels:  watch
eucWatch
EUC Watch. Dash for Electric Unicycles on NRF52xx based wearables. Supports Kingsong ( All models ), Inmotion ( All ), Ninebot ( All ) , Begode ( Gotway, All ) and Leaperkim (All)
Stars: ✭ 44 (+46.67%)
Mutual labels:  watch
pwatch
Process watcher(pwatch)
Stars: ✭ 33 (+10%)
Mutual labels:  watch
hammer
Build Tool for Browser and Node Applications
Stars: ✭ 226 (+653.33%)
Mutual labels:  watch

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

Then run the flow-watch command.

flow-watch passes known nodemon options to nodemon, and all other options to flow.

You may not need this?

nodemon has a documented way to clear the console on restart, so you may want to use nodemon/flow directly in a package script instead of using flow-watch.

To use nodemon and flow, you can add this to your package.json (tested with [email protected]):

{
  "scripts": {
    "flow:watch": "nodemon -x 'flow || exit 1'"
  },
  "nodemonConfig": {
    "events": {
      "start": "cls || clear"
    }
  }
}

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

By default, the watcher will clear the console between each change. If you wish to override this behavior, use the FLOW_WATCH_NO_CLEAR_CONSOLE env variable. If you choose that approach, you may also want to silent the [nodemon] messages in the console, which you can do with the --quiet flag (or -q). Putting it all together:

{
  "scripts": {
    "flow:watch": "FLOW_WATCH_NO_CLEAR_CONSOLE=1 flow-watch -q"
  }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].