You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you previously had issues with an `Invalid Host Header` error, [follow these new instructions](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#invalid-host-header-errors-after-configuring-proxy) to fix it.
1368
+
If you previously had issues with an `Invalid Host Header` error, [follow these new instructions](https://github.com/facebook/create-react-app/blob/main/packages/react-scripts/template/README.md#invalid-host-header-errors-after-configuring-proxy) to fix it.
1369
1369
1370
1370
## 1.0.1 (May 19, 2017)
1371
1371
@@ -1547,7 +1547,7 @@ You can automatically convert your project to fix them by running the [correspon
1547
1547
1548
1548
#### How do I make my tests work with Jest 20?
1549
1549
1550
-
Please refer to the [Jest 19](https://facebook.github.io/jest/blog/2017/02/21/jest-19-immersive-watch-mode-test-platform-improvements.html#breaking-changes) and [Jest 20](http://facebook.github.io/jest/blog/2017/05/06/jest-20-delightful-testing-multi-project-runner.html#breaking-changes) breaking changes for migration instructions.
1550
+
Please refer to the [Jest 19](https://facebook.github.io/jest/blog/2017/02/21/jest-19-immersive-watch-mode-test-platform-improvements.html#breaking-changes) and [Jest 20](https://facebook.github.io/jest/blog/2017/05/06/jest-20-delightful-testing-multi-project-runner.html#breaking-changes) breaking changes for migration instructions.
1551
1551
1552
1552
If you use snapshots, you will likely need to update them once because of the change in format.
1553
1553
@@ -1572,7 +1572,7 @@ If you still have the problem please file an issue.
1572
1572
1573
1573
Unhandled Promise rejections will now crash tests. You can fix them by explicitly catching the errors you don???t care about.
1574
1574
1575
-
#### How to turn my app into a [Progressive Web App](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#making-a-progressive-web-app)?
1575
+
#### How to turn my app into a [Progressive Web App](https://github.com/facebook/create-react-app/blob/main/packages/react-scripts/template/README.md#making-a-progressive-web-app)?
1576
1576
1577
1577
After the regular update procedure above, add these line to `<head>` in `public/index.html`:
1578
1578
@@ -1588,9 +1588,7 @@ After the regular update procedure above, add these line to `<head>` in `public/
1588
1588
Add `<noscript>` to `<body>` in `public/index.html`:
1589
1589
1590
1590
```html
1591
-
<noscript>
1592
-
You need to enable JavaScript to run this app.
1593
-
</noscript>
1591
+
<noscript> You need to enable JavaScript to run this app. </noscript>
1594
1592
```
1595
1593
1596
1594
Then create a file called `public/manifest.json` that looks like this:
Copy file name to clipboardExpand all lines: CHANGELOG-3.x.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -330,7 +330,7 @@ v3.3.0 is a minor release that adds new features, including custom templates and
330
330
331
331
You can now create a new app using custom templates.
332
332
333
-
We've published our existing templates as [`cra-template`](https://github.com/facebook/create-react-app/tree/master/packages/cra-template) and [`cra-template-typescript`](https://github.com/facebook/create-react-app/tree/master/packages/cra-template-typescript), but we expect to see many great templates from the community over the coming weeks.
333
+
We've published our existing templates as [`cra-template`](https://github.com/facebook/create-react-app/tree/main/packages/cra-template) and [`cra-template-typescript`](https://github.com/facebook/create-react-app/tree/main/packages/cra-template-typescript), but we expect to see many great templates from the community over the coming weeks.
334
334
335
335
The below command shows how you can create a new app with `cra-template-typescript`.
This package is the heart of the project, which contains the scripts for setting up the development server, building production builds, configuring all software used, etc.<br>
89
95
All functionality must be retained (and configuration given to the user) if they choose to eject.
90
96
91
97
## Setting Up a Local Copy
92
98
99
+
You will need `npm@7` and `yarn@1` in order to bootstrap and test a local copy of this repo.
100
+
93
101
1. Clone the repo with `git clone https://github.com/facebook/create-react-app`
94
102
95
-
2. Run `yarn` in the root `create-react-app` folder.
103
+
2. Run `npm install` in the root `create-react-app` folder.
96
104
97
-
Once it is done, you can modify any file locally and run `yarn start`, `yarn test` or `yarn build` like you can in a generated project. It will serve the application from the files located in `packages/cra-template/template`.
105
+
Once it is done, you can modify any file locally and run `npm start`, `npm test` or `npm run build` like you can in a generated project. It will serve the application from the files located in `packages/cra-template/template`.
98
106
99
107
If you want to try out the end-to-end flow with the global CLI, you can do this too:
100
108
101
109
```sh
102
-
yarn create-react-app my-app
110
+
npx create-react-app my-app
103
111
cd my-app
104
112
```
105
113
106
-
and then run `yarn start` or `yarn build`.
114
+
and then run `npm start` or `npm run build`.
107
115
108
116
## Contributing to E2E (end to end) tests
109
117
110
-
**TL;DR** use the command `yarn e2e:docker` to run unit and e2e tests.
118
+
**TL;DR** use the command `npm run e2e:docker` to run unit and e2e tests.
111
119
112
120
More detailed information are in the dedicated [README](/test/README.md).
113
121
@@ -143,11 +151,11 @@ By default git would use `CRLF` line endings which would cause the scripts to fa
143
151
2. Close the milestone and create a new one for the next release.
144
152
3. In most releases, only `react-scripts` needs to be released. If you don’t have any changes to the `packages/create-react-app` folder, you don’t need to bump its version or publish it (the publish script will publish only changed packages).
145
153
4. Note that files in `packages/create-react-app` should be modified with extreme caution. Since it’s a global CLI, any version of `create-react-app` (global CLI) including very old ones should work with the latest version of `react-scripts`.
146
-
5.Run `yarn compile:lockfile`. The command will generate an updated lockfile in `packages/create-react-app` that should be committed.
154
+
5.Pull the latest changes from GitHub, run `npm ci`.
147
155
6. Create a change log entry for the release:
148
156
149
157
- You'll need an [access token for the GitHub API](https://help.github.com/articles/creating-an-access-token-for-command-line-use/). Save it to this environment variable: `export GITHUB_AUTH="..."`
150
-
- Run `yarn changelog`. The command will find all the labeled pull requests merged since the last release and group them by the label and affected packages, and create a change log entry with all the changes and links to PRs and their authors. Copy and paste it to `CHANGELOG.md`.
158
+
- Run `npm run changelog`. The command will find all the labeled pull requests merged since the last release and group them by the label and affected packages, and create a change log entry with all the changes and links to PRs and their authors. Copy and paste it to `CHANGELOG.md`.
151
159
- Add a four-space indented paragraph after each non-trivial list item, explaining what changed and why. For each breaking change also write who it affects and instructions for migrating existing code.
152
160
- Maybe add some newlines here and there. Preview the result on GitHub to get a feel for it. Changelog generator output is a bit too terse for my taste, so try to make it visually pleasing and well grouped.
153
161
@@ -161,9 +169,10 @@ Make sure to test the released version! If you want to be extra careful, you can
161
169
## Releasing the Docs
162
170
163
171
1. Go to the `docusaurus/website` directory
164
-
2. Run `yarn build`
165
-
3. You'll need an [access token for the GitHub API](https://help.github.com/articles/creating-an-access-token-for-command-line-use/). Save it to this environment variable: `export GITHUB_AUTH="..."`
166
-
4. Run `GIT_USER=<GITHUB_USERNAME> CURRENT_BRANCH=master USE_SSH=true yarn deploy`
172
+
2. Run `npm ci`
173
+
3. Run `npm run build`
174
+
4. You'll need an [access token for the GitHub API](https://help.github.com/articles/creating-an-access-token-for-command-line-use/). Save it to this environment variable: `export GITHUB_AUTH="..."`
175
+
5. Run `GIT_USER=<GITHUB_USERNAME> CURRENT_BRANCH=main USE_SSH=true npm run deploy`
@@ -39,7 +39,7 @@ Create a project, and you’re good to go.
39
39
40
40
## Creating an App
41
41
42
-
**You’ll need to have Node 10.16.0 or later version on your local development machine** (but it’s not required on the server). We recommend using the latest LTS version. You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to switch Node versions between different projects.
42
+
**You’ll need to have Node 14.0.0 or later version on your local development machine** (but it’s not required on the server). We recommend using the latest LTS version. You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to switch Node versions between different projects.
43
43
44
44
To create a new app, you may choose one of the following methods:
45
45
@@ -217,4 +217,4 @@ We are grateful to the authors of existing related projects for their ideas and
217
217
218
218
## License
219
219
220
-
Create React App is open source software [licensed as MIT](https://github.com/facebook/create-react-app/blob/master/LICENSE). The Create React App logo is licensed under a [Creative Commons Attribution 4.0 International license](https://creativecommons.org/licenses/by/4.0/).
220
+
Create React App is open source software [licensed as MIT](https://github.com/facebook/create-react-app/blob/main/LICENSE). The Create React App logo is licensed under a [Creative Commons Attribution 4.0 International license](https://creativecommons.org/licenses/by/4.0/).
0 commit comments