-
Notifications
You must be signed in to change notification settings - Fork 906
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'CLI/main' into feat/android-applicationId
- Loading branch information
Showing
117 changed files
with
3,659 additions
and
3,616 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
<!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. --> | ||
|
||
Summary: | ||
--------- | ||
|
||
<!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. | ||
Help us understand your motivation by explaining why you decided to make this change: --> | ||
<!-- Help us understand your motivation by explaining why you decided to make this change: --> | ||
|
||
|
||
Test Plan: | ||
---------- | ||
|
||
<!-- Write your test plan here (**REQUIRED**). If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos! Increase test coverage whenever possible. --> | ||
|
||
Checklist | ||
---------- | ||
|
||
- [ ] Documentation is up to date to reflect these changes. | ||
- [ ] Follows commit message convention described in [CONTRIBUTING.md](https://github.com/react-native-community/cli/blob/main/CONTRIBUTING.md#commit-message-convention) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,9 @@ jobs: | |
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: yarn | ||
|
@@ -27,11 +27,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [16, 18] | ||
node-version: [18] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: yarn | ||
|
@@ -48,7 +48,7 @@ jobs: | |
os: [ubuntu-latest, macos-latest, windows-2019] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
|
@@ -70,7 +70,7 @@ jobs: | |
uses: microsoft/[email protected] | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: yarn | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,27 +4,27 @@ There are couple of ways to initialize new React Native projects. | |
|
||
### For `[email protected]` or greater | ||
|
||
#### Using `npx` utility: | ||
#### Using `npx` utility | ||
|
||
```sh | ||
npx react-native init ProjectName | ||
npx react-native@latest init ProjectName | ||
``` | ||
|
||
> Note: If you have both `yarn` and `npm` installed on your machine, React Native CLI will always try to use `yarn`, so even if you use `npx` utility, only `react-native` executable will be installed using `npm` and the rest of the work will be delegated to `yarn`. You can force usage of `npm` adding `--npm` flag to the command. | ||
> Note: for Yarn users, `yarn dlx` command similar to `npx` will be featured in Yarn 2.0: <https://github.com/yarnpkg/berry/pull/40> so we’ll be able to use it in a similar fashion. | ||
#### Installing `react-native` and invoking `init` command: | ||
#### Installing `react-native` and invoking `init` command | ||
|
||
```sh | ||
yarn init && yarn add react-native && yarn react-native init ProjectName | ||
``` | ||
|
||
#### Initializing project with custom version of `react-native`: | ||
#### Initializing project with custom version of `react-native` | ||
|
||
```sh | ||
# This will use the latest init command but will install react-native@VERSION and use its template | ||
npx react-native init ProjectName --version ${VERSION} | ||
npx react-native@latest init ProjectName --version ${VERSION} | ||
|
||
# This will use init command from react-native@VERSION | ||
npx react-native@${VERSION} init ProjectName | ||
|
@@ -47,7 +47,7 @@ For all available options, please check [Yarn documentation](https://classic.yar | |
|
||
```sh | ||
# This will initialize new project using template from `react-native-template-typescript` package | ||
npx react-native init ProjectName --template ${TEMPLATE_NAME} | ||
npx react-native@latest init ProjectName --template ${TEMPLATE_NAME} | ||
|
||
# This will initialize new project using init command from react-native@VERSION but will use a custom template | ||
npx react-native@${VERSION} init ProjectName --template ${TEMPLATE_NAME} | ||
|
@@ -56,7 +56,7 @@ npx react-native@${VERSION} init ProjectName --template ${TEMPLATE_NAME} | |
You can force usage of `npm` if you have both `yarn` and `npm` installed on your machine: | ||
|
||
```sh | ||
npx react-native init ProjectName --npm | ||
npx react-native@latest init ProjectName --npm | ||
``` | ||
|
||
### For older `react-native` versions | ||
|
@@ -65,7 +65,7 @@ Using legacy `react-native-cli` package: | |
|
||
```sh | ||
yarn global add react-native-cli | ||
react-native init ProjectName | ||
npx react-native@latest init ProjectName | ||
``` | ||
|
||
> Note: It is not recommended, but you can also use legacy `react-native-cli` package to initialize projects using latest `react-native` versions. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"version": "12.0.0-alpha.4", | ||
"version": "12.0.0-alpha.11", | ||
"npmClient": "yarn", | ||
"useWorkspaces": true, | ||
"exact": true | ||
"exact": true, | ||
"$schema": "node_modules/lerna/schemas/lerna-schema.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.