Skip to content
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: --watch mode #35

Open
2 tasks done
JoshuaKGoldberg opened this issue Dec 10, 2024 · 1 comment
Open
2 tasks done

🚀 Feature: --watch mode #35

JoshuaKGoldberg opened this issue Dec 10, 2024 · 1 comment
Assignees
Labels
status: blocked Waiting for something else to be resolved type: feature New enhancement or request

Comments

@JoshuaKGoldberg
Copy link
Owner

Bug Report Checklist

Overview

Following #26, I'm very much looking forward to implementing a watch mode for create. The idea is described in https://create-josh.vercel.app/cli#-w----watch right now:

Whether to keep create running in a “watch” mode after its initial pass. When in watch mode, create will re-apply file creations whenever the “from” file or any of its imported entries change. This is only supported when the “from” is a relative path to a local ESM entry point on disk.

For example, using a sibling create-typescript-app directory’s package entry point to create a new repository under a child generated/ directory:

npx create --directory generated --from ../create-typescript-app --watch

Additional Info

💖

@JoshuaKGoldberg JoshuaKGoldberg added type: feature New enhancement or request status: blocked Waiting for something else to be resolved labels Dec 10, 2024
@JoshuaKGoldberg JoshuaKGoldberg added this to the Ready to Launch milestone Dec 10, 2024
@JoshuaKGoldberg JoshuaKGoldberg self-assigned this Dec 10, 2024
@JoshuaKGoldberg JoshuaKGoldberg added status: accepting prs Please, send a pull request to resolve this! 🙏 and removed status: blocked Waiting for something else to be resolved labels Dec 20, 2024
@JoshuaKGoldberg JoshuaKGoldberg removed this from the Blocks Launch milestone Dec 31, 2024
@JoshuaKGoldberg
Copy link
Owner Author

Well, I prototyped this out in #97. But it's more work than I'd hoped. Because Node doesn't export a way to clear the ESM import cache (https://github.com/nodejs/modules/issues/307), I don't believe this can realistically be done without manually massaging the process / process children / workers.

Removing from the Blocks Launch milestone. I want this to happen but it'll be a lot more work than I'd hoped.

@JoshuaKGoldberg JoshuaKGoldberg added status: blocked Waiting for something else to be resolved and removed status: accepting prs Please, send a pull request to resolve this! 🙏 labels Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: blocked Waiting for something else to be resolved type: feature New enhancement or request
Projects
None yet
Development

No branches or pull requests

1 participant