-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Contributing to the CLI
kmelmon edited this page Sep 24, 2019
·
34 revisions
The CLI is divided into two parts:
- Shared code: Some of the code is shared between 'current' and 'vnext'. This code is mostly responsible for installing RNW. It lives here:
[Root]\current\local-cli\rnpm\windows - vnext code: The rest of the CLI specific to vnext lives here:
[Root]\vnext\local-cli
- If you are making changes to the shared code, you can install from your local enlistment during the yarn add rnpm-plugin-windows step by supplying an @file suffix. For example, if your enlistment root was d:\rnw:
yarn add rnpm-plugin-windows@file:d:\rnw\current\local-cli\rnpm\windows - If you are making changes to the vnext part of the CLI, you can install RNW from your local enlistment by supplying the --windowsVersion parameter to the react-native windows command. For example:
react-native windows --windowsVersion file:d:\rnw\vnext