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

Add ability to extend template inside template.config.js file #2451

Open
szymonrybczak opened this issue Jul 9, 2024 · 0 comments
Open

Add ability to extend template inside template.config.js file #2451

szymonrybczak opened this issue Jul 9, 2024 · 0 comments

Comments

@szymonrybczak
Copy link
Collaborator

Describe the Feature

The problem with maintaining template is that it needs to update with every new React Native version, whereas templates could implement their whole custom stuff inside postInitScript and maintainers could avoid extra work with upgrading template.

Template creator could just specify that the template extends default @react-native-community/template and CLI during init will instead of using template files from sourceDir property would copy the one that it extends.

The end results for app user would be the same, but the amount of work that needs to be done from the template maintainers is a lot smaller. It'd probably one time thing.

Possible Implementations

Inside template.config.js add extends property which accept template source (in the same format as --template option) and use it for init.

@szymonrybczak szymonrybczak changed the title Create extends property to template.config.js Add ability to extend template inside template.config.js file Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant