-
Notifications
You must be signed in to change notification settings - Fork 507
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
Add support for remote custom templates #502
Conversation
This looks good. Let’s fix tests and merge |
Needs docs too |
8072d04
to
d3d2cae
Compare
@jaredpalmer where do you want the docs? I didn't find docs about the existing |
This would be very much appreciated! @jaredpalmer ? |
what is missing for this PR to be dipped? tsdx is really interesting, but this feature is interesting for my usage context. |
I haven't reviewed this myself as I'd need to take a good bit of time to understand the use-case of how this is beneficial beyond what you can do with template repos and haven't had that time. Off the top of my head:
|
At my company, we need a tool similar to tsdx and we are thinking about it, but we need to use a custom template. So this resource is essential for us. Currently, we using a Create React Library fork, but it's no legal to maintain. |
Couldn't you do the same thing with a template repo? Either via GitHub's templates or via copy+paste. I do that myself with my repos, which are a good bit different from TSDX's templates. |
Had looked into this before, but did some more digging to try to see what CRA's rationale was for this feature. Unfortunately I couldn't see a clear one:
|
Proposal for #441
Add support for custom remote templates:
Note: the repository must follow a specific structure
template
directory, containing the template files.template.json
file, with the following structure:Template structure & approach inspired from CRA.