-
Notifications
You must be signed in to change notification settings - Fork 395
How to handle different CLI versions #39
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
Comments
Both templates can live next to each other and published together:
I don't think extra branching is necessary. You'll need, however, to release a major version with every RN upgrade, because in new init the template is responsible for everything inside ( |
While I agree that we can solve it by having everything in the same branch, I have some "concerns" / "things we should keep in mind" with it:
(v1 and v2 relate to the CLI versions and not the template) Let me know if I misunderstood something. |
In v2 you can use |
Yes, but in v1 we use npm postinstall which will also execute in v2, correct? |
Ah yea, that's true |
As the shorthand syntax will be removed in the upcoming CLI version (react-native-community/cli#483 (comment)), I'd vote for releasing a new package under a new shorter name for the new CLI. The template works completely different and is independent from the one for the old CLI, so this would make even more sense. So there is no need for using /edit |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@emin93 we should publish a new package so the default version is for new CLI |
@radko93 Yes, let's do that 👍 |
As soon as this PR (#60) gets merged, we can close this issue. |
Introduction
The new RN CLI will have an updated template feature which is incompatible with the current one. As the current CLI won't go anywhere soon, we have to support both versions for a while.
I created a new branch (
cli-v2
) with the changes for the new CLI.Question
How should we handle the support for both versions?
Proposals
master
andmaster-cli-v2
) and release the CLI v2 compatible template with thenext
tag.The text was updated successfully, but these errors were encountered: