How to handle different CLI versions
See original GitHub issueIntroduction
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
- Maintain two separate branches (e.g.
masterandmaster-cli-v2) and release the CLI v2 compatible template with thenexttag. - Integrate a detection in the post install script and handle the differences there. This would allow us to have only one branch but it will make things a bit messy.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:11 (4 by maintainers)
Top Results From Across the Web
angular-cli different versions in the same computer
Install specific Angular CLI. new/angular-repo/path$ npm install @angular/cli@7.2.4 · To install all dependencies run following command: new/ ...
Read more >Maintain different versions of Angular CLI on the Same Machine
Make sure while installation you are not using -g at the end of the installation command. .Here is the installing command. npm install...
Read more >How To Install Multiple Versions Of Angular On The Same ...
STEP 3 - Open Command Prompt and set the working directory to “Angular12.1”. Install Multiple Angular Versions. STEP 4 - Now install angular ......
Read more >How to run multiple Node and Angular versions simultaneously
1. Install both Node versions using nvm: · 2. Go to the directory of project XPTO and set nvm to use the correct...
Read more >How to Manage Multiple Runtime Versions With a Single ...
How to Manage Multiple Runtime Versions With a Single Tooling. A quick walkthrough on asdf CLI. This article was published on Jul 07,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@emin93 we should publish a new package so the default version is for new CLI
As soon as this PR (https://github.com/react-native-community/react-native-template-typescript/pull/60) gets merged, we can close this issue.