-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Run once, then exit #118
Comments
This sounds interesting, could be done. We might be able to use this with chokidar by closing the watcher on |
For this I'd think a new self-contained flag, maybe |
I'd prefer something a little more obvious like |
Yeah, i was just thinking about this feature too -- luckily
The alternative solution using while changed=$(onchange --once *.dot) ; do < dot -Tpng | imgcat ; done |
@forivall Can you help me understand your example a little more? It sounds like a different request from the |
onchange
is very close to being usable as a general-purpose file runner across glob matches in a way I haven't seen with other npm tools.Here's a quick example of the kind of thing I'm looking at, using https://github.com/drwpow/openapi-typescript to use a schema at
docs/whatever.yml
to generatesrc/generated/whatever.ts
:If there was a flag to only run that once (without actually watching for further changes), I could use the same functionality in build steps without needing to break out any other script stuff.
The text was updated successfully, but these errors were encountered: