{"id":15653010,"url":"https://github.com/jedwards1211/flow-watch","last_synced_at":"2025-04-15T01:44:11.570Z","repository":{"id":11472643,"uuid":"69780970","full_name":"jedwards1211/flow-watch","owner":"jedwards1211","description":"clear the console and run flow on file changes","archived":false,"fork":false,"pushed_at":"2022-02-11T01:11:22.000Z","size":504,"stargazers_count":29,"open_issues_count":14,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T18:18:38.800Z","etag":null,"topics":["file-watcher","flow","flow-watch","rerun","watch"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jedwards1211.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-02T05:35:28.000Z","updated_at":"2025-04-01T13:06:23.000Z","dependencies_parsed_at":"2022-07-22T20:32:37.530Z","dependency_job_id":null,"html_url":"https://github.com/jedwards1211/flow-watch","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedwards1211%2Fflow-watch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedwards1211%2Fflow-watch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedwards1211%2Fflow-watch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedwards1211%2Fflow-watch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jedwards1211","download_url":"https://codeload.github.com/jedwards1211/flow-watch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991526,"owners_count":21194893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file-watcher","flow","flow-watch","rerun","watch"],"created_at":"2024-10-03T12:44:28.564Z","updated_at":"2025-04-15T01:44:11.543Z","avatar_url":"https://github.com/jedwards1211.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flow-watch\n\nA simple file watcher that clears the console and runs flow on each change.  Currently tested on OS X -- I don't know\nif it works on Linux or Windows.  Works with `flow` on your path or `flow-bin` installed as a peer dependency.\n\n## Usage\n\n```\nnpm install --save-dev flow-watch\n```\n\nThen run the `flow-watch` command.\n\n`flow-watch` passes known `nodemon` options to `nodemon`, and all other options\nto `flow`.\n\n## You may not need this?\n\n`nodemon` [has a documented way to clear the console on restart](https://github.com/remy/nodemon/blob/master/faq.md#how-to-clear-the-console-on-restart), so you may want to use `nodemon`/`flow` directly\nin a package script instead of using `flow-watch`.\n\nTo use `nodemon` and `flow`, you can add this to your `package.json` (tested with `nodemon@2.0.7`):\n\n```json\n{\n  \"scripts\": {\n    \"flow:watch\": \"nodemon -x 'flow || exit 1'\"\n  },\n  \"nodemonConfig\": {\n    \"events\": {\n      \"start\": \"cls || clear\"\n    }\n  }\n}\n```\n\n## Configuration\n\n`flow-watch` uses [`nodemon`](https://github.com/remy/nodemon) and accepts any command-line options that `nodemon` does.\nIf you provide no arguments, it uses the following defaults:\n```\n--ignore node_modules/ --watch *.js --watch *.jsx --watch *.js.flow --watch .flowconfig\n```\n\nBy 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:\n\n```json\n{\n  \"scripts\": {\n    \"flow:watch\": \"FLOW_WATCH_NO_CLEAR_CONSOLE=1 flow-watch -q\"\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedwards1211%2Fflow-watch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjedwards1211%2Fflow-watch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedwards1211%2Fflow-watch/lists"}