question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to handle different CLI versions

See original GitHub 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

  • Maintain two separate branches (e.g. master and master-cli-v2) and release the CLI v2 compatible template with the next tag.
  • 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
radko93commented, Sep 10, 2019

@emin93 we should publish a new package so the default version is for new CLI

0reactions
emin93commented, Sep 11, 2019

As soon as this PR (https://github.com/react-native-community/react-native-template-typescript/pull/60) gets merged, we can close this issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found