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: Support for reusable template application, i.e. "components" #39

Open
2 tasks done
JoshuaKGoldberg opened this issue Dec 11, 2024 · 0 comments
Open
2 tasks done
Assignees
Labels
status: blocked Waiting for something else to be resolved type: feature New enhancement or request

Comments

@JoshuaKGoldberg
Copy link
Owner

JoshuaKGoldberg commented Dec 11, 2024

Bug Report Checklist

Overview

Many other template projects support a use case of reusable chores within a repository. A couple of quick examples:

  • In backend code, creating a new server handler like src/handlers/${name}.ts + a test in src/handlers/{name}.test.ts + a line in src/handlers.ts like addHandler({name});.
  • In frontend code, creating a new component in src/components/{name}.tsx + a test in src/components/{name}.test.tsx. Maybe also a line in src/components/index.ts of export * from './src/components/{name}.js';.

This is a deceptively hard problem to solve well. If it was just creating files like src/components/{name}.tsx then it would be somewhat as straightforward as reusing the existing Creation ideas from the rest of the engine. But also touching files like src/components/index.ts makes it much more tricky... 🤔

Additional Info

I'm not going to put effort into this for a while. milestone/2 Blocks Launch will happen first. Heck, I might not even tackle this until after milestone/3 Broad Launch Marking as blocked for now.

💖

@JoshuaKGoldberg JoshuaKGoldberg added type: feature New enhancement or request status: blocked Waiting for something else to be resolved labels Dec 11, 2024
@JoshuaKGoldberg JoshuaKGoldberg self-assigned this Dec 19, 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