Extremely fast file change detector and task orchestrator for Node.js.
<!--- Provide a general summary of the request in the Title above --> ## Desired Behavior <!--- Tell us what should happen and/or provide example code that shows the desired usage --> I am a new user and am now a huge fan of this tool (I'm a long time nodemon user)! Thanks so much! I started an issue for one thing, but as I've been using the tool there are several other things... so I thought I'd list them in one place for triage. Please let me know if you'd like me to break this into smaller pieces. - You should support all [node LTS versions](https://nodejs.dev/en/about/releases/). I know 14 and 16 will be dead later this year, but if you install turbowatch on 14 or 16 today it says that that version is not supported. This isn't a very good first taste for new users. FWIW - I'm on node 16.19.0 and it seems to be working just fine! - Export `ProcessPromise`, et al. I am needing to save a reference to one of the processes that I spawn, and I need the types. - Add an `onStart` callback, or explain that `onChange` is called during startup with an empty files array. - Show some use cases for using multiple triggers. I don't understand the need for an array. - Using `project: __dirname` is very slow on a small monorepo, even if I have an expression to ignore node_modules. It takes roughly ~6s to start. If I watch a single folder, it takes ~40ms. I usually only need to watch 4-5 folders at a time. It would be nice if I could pass an array of these folders to the `project` instead of passing the repo root __dirname. - Coming from nodemon, maybe consider a simplistic API for easy use cases and easy adoption, keeping the existing [more verbose] API for more advanced scenarios. The expression syntax is kinda weird. ```js // Example simple syntax watch({ project: [dirA, dirB], // multiple directories ext: ['ts', 'js'], ignore: ['node_modules', 'dist'] }); // Existing syntax: watch({ project: __dirname, triggers: [ { expression: [ 'allof', ['not', ['dirname', 'node_modules']], ['not', ['dirname', 'dist']], ['anyof', ['dirname', dirA], ['dirname', dirB]], ['anyof', ['match', '*.ts', 'basename'], ['match', '*.js', 'basename']], ], }, ], }); ``` ## Motivation <!--- Tell us what the status quo is, and why it should change --> I just want to make this tool cool as ever. These are merely suggestions, coming from a long-time nodemon user and a turborepo user who desperately wants a watch script.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by DesignByOnyx and has received 2 comments.