Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
abe2369
Fix chai URL (#8895)
BMorearty Jun 26, 2020
2da5517
Explain how to uninstall create-react-app globally (#9244)
nickserv Jul 2, 2020
759696d
Upgrade dependencies (#9317)
ianschmitz Jul 16, 2020
8e720ae
Switch to the Workbox InjectManifest plugin (#9205)
jeffposnick Jul 22, 2020
d1f32c4
Upgrade refresh plugin (#9348)
ianschmitz Jul 22, 2020
2bef8a5
feat: Update ESLint dependencies (#9251)
MichaelDeBoey Jul 22, 2020
bdae9b6
Remove server worker registration from default templates (#9349)
iansu Jul 23, 2020
a01b1c5
Clarify wording in adding TypeScript to existing project (#9231)
merelinguist Jul 27, 2020
66bf7df
feat: better refresh plugin integration (#9375)
pmmmwh Jul 28, 2020
a79d8b8
feat: exit on outdated create-react-app version (#9359)
mrmckeb Jul 29, 2020
7ab0116
Prepare 4.0.0 alpha release
iansu Jul 30, 2020
58db16b
Updated README.md Templates to Follow ESLint Markdown Rules (#9241)
Aug 1, 2020
de27bcf
[Doc] fix React Testing Library example (#9245)
sakit0 Aug 1, 2020
1a6ef92
Update running-tests.md (#9380)
andycanderson Aug 1, 2020
aeaf575
Add Fast Refresh warning when using React < 16.10 (#9350)
iansu Aug 2, 2020
5bd6e73
Publish refreshOverlayInterop with react-dev-utils (#9390)
klinem Aug 2, 2020
2c2e224
fix: remove deprecated rule (#9401)
ljosberinn Aug 2, 2020
ebab256
clean formatMessage usage (#9059)
chenxsan Aug 5, 2020
3cf2b06
feat: Update testing-library dependencies to latest (#9252)
MichaelDeBoey Aug 5, 2020
f86cf44
fix: use default modules option from `preset-env` (#9374)
JLHwung Aug 5, 2020
42dcf79
Bump immer version (#8933)
staff0rd Aug 5, 2020
6cd3826
Upgrade whatwg-fetch (#9392)
Lapz Aug 5, 2020
5036825
Fix template name handling (#9412)
iansu Aug 5, 2020
3d74b79
Prepare 4.0.0 alpha release
iansu Aug 5, 2020
c8ea284
chore: update to jest@26.3 (#9461)
SimenB Aug 11, 2020
5e41ca0
Create SECURITY.md
gaearon Aug 11, 2020
5e703a5
Add 3.4.2 to changelog
gaearon Aug 11, 2020
8e761d1
Add 3.4.3 to the changelog
gaearon Aug 12, 2020
7763737
Fixes in the /packages/react-devs-utils/README.md file (#9471)
webdott Aug 17, 2020
edfc30a
Added CRA logo in README.md (#9363)
raihan71 Aug 24, 2020
cf74eb9
Update Vercel deployment documentation (#9560)
timothyis Aug 28, 2020
97695bc
Fix insensitive language in Docusaurus docs (#9618)
timothyis Sep 9, 2020
e258532
Remove ESLint extends and add Jest rules (#9587)
mrmckeb Sep 13, 2020
cef668a
fix: Fix azure-pipelines' endOfLine (#9258)
MichaelDeBoey Sep 14, 2020
2a8237c
Update template dependencies to latest version (#9526)
MichaelDeBoey Sep 14, 2020
6abc7a5
Update running-tests.md (#9073)
MichaelDeBoey Sep 14, 2020
22b61c9
feat: Update ESLint dependencies (#9434)
MichaelDeBoey Sep 14, 2020
ce1e2af
Emphasise that Next.js is capable of SSG (#9630)
liamness Sep 14, 2020
65d8eb2
docs: add alt tag to homepage logo (#9499)
tobiasbueschel Sep 14, 2020
552c7a9
fix: resolve CI build failure (#9640)
mrmckeb Sep 16, 2020
730438c
Use new JSX transform with React 17 (#9645)
iansu Sep 16, 2020
14b7868
Upgrade dependencies (#9639)
ianschmitz Sep 16, 2020
930b5db
Prepare 4.0.0 alpha release
iansu Sep 16, 2020
13e0d1c
Update postcss-safe-parser
iansu Sep 16, 2020
025f273
Prepare 4.0.0 alpha release
iansu Sep 16, 2020
7e4949a
Update CODEOWNERS
iansu Sep 30, 2020
d5c0fe2
fix: resolve ESLint config from appPath (#9683)
mrmckeb Sep 30, 2020
6a51dcd
Add AVIF image support (#9611)
hongbo-miao Oct 14, 2020
1f2d387
fix: resolve new JSX runtime issues (#9788)
mrmckeb Oct 15, 2020
6f3e32e
Upgrade Docusaurus to latest version (#9728)
lex111 Oct 16, 2020
d07b7d0
Replace deprecated eslint-loader with eslint-webpack-plugin (#9751)
tooppaaa Oct 20, 2020
b1f8536
Add 3.4.4 to the changelog
gaearon Oct 20, 2020
7965594
Bump resolve-url-loader version (#9841)
johannespfeiffer Oct 20, 2020
0a93e32
Fix refreshOverlayInterop module scope error (#9805)
ianschmitz Oct 21, 2020
ed919b1
Make eslint-plugin-jest an optional peerDependency (#9670)
MichaelDeBoey Oct 22, 2020
10fa972
feat(eslint-config-react-app): Add jest & testing-library rules (#8963)
MichaelDeBoey Oct 22, 2020
329f392
feat: Update ESLint dependencies (#9856)
MichaelDeBoey Oct 22, 2020
85ab02b
feat: remove unused React imports (#9853)
mrmckeb Oct 22, 2020
fe785b2
feat: Update all dependencies (#9857)
MichaelDeBoey Oct 22, 2020
e63de79
New JSX Transform opt out (#9861)
iansu Oct 23, 2020
d61347d
Use new JSX setting with TypeScript 4.1.0 (#9734)
iansu Oct 23, 2020
4bc639c
Upgrade to React 17 (#9863)
iansu Oct 23, 2020
f2aef41
Prepare 4.0.0 alpha release
iansu Oct 23, 2020
2b1161b
Pass JSX runtime setting to Babel preset in Jest config (#9865)
iansu Oct 23, 2020
014ca01
Prepare 4.0.0 release
iansu Oct 23, 2020
af616ab
Update CHANGELOG
iansu Oct 23, 2020
523b416
Add link to Open Collective (#9864)
iansu Oct 23, 2020
95265c3
Update CHANGELOG
iansu Oct 23, 2020
d23d615
Update react dom in error overlay
iansu Oct 23, 2020
88ca4f6
Prepare 4.0.0 release
iansu Oct 23, 2020
ed95893
Publish
iansu Oct 23, 2020
ceeb654
fix: slow recompile time (#9911)
FezVrasta Oct 26, 2020
c06f16c
chore: Update .prettierrc (#9860)
MichaelDeBoey Oct 26, 2020
b5fdadd
[ImgBot] Optimize images (#9516)
MichaelDeBoey Oct 26, 2020
7e48117
fix: page doesn't get refreshed when FAST_REFRESH=false (#9884)
n3tr Oct 26, 2020
027b03b
fix: `React is not defined` compilation error after ejected (#9885)
n3tr Oct 26, 2020
545d460
Fix react-jsx error (#9869)
benneq Oct 28, 2020
3a98ed1
Fix noFallthroughCasesInSwitch/jsx object is not extensible (#9921)
ryota-murakami Oct 30, 2020
aec42e2
Add logo license to README
iansu Nov 1, 2020
4e97dc7
Remove trailing space in reportWebVitals.ts (#10040)
sho-t Nov 10, 2020
aafe8af
docs: add React Testing Library as a library requiring jsdom (#10052)
anyulled Nov 10, 2020
5867170
Increase Workbox's maximumFileSizeToCacheInBytes (#10048)
jeffposnick Nov 10, 2020
8f03b91
Create FUNDING.yml
iansu Nov 11, 2020
8bf050a
replace inquirer with prompts (#10083)
EvanBacon Nov 17, 2020
90a0898
Prepare 4.0.1 release
iansu Nov 23, 2020
98a886d
Prepare 4.0.1 release
iansu Nov 23, 2020
de8b2b3
Publish
iansu Nov 23, 2020
9a79df2
chore: bump web-vital dependency version (#10143)
Nov 25, 2020
be6c193
chore: bump typescript version (#10141)
trainto Nov 25, 2020
9b08e3c
Add TypeScript 4.x as peerDependency to react-scripts(#9964)
sheepsteak Nov 26, 2020
91e28a4
remove chalk from formatWebpackMessages (#10198)
jasonwilliams Dec 4, 2020
723224f
Upgrade @svgr/webpack to fix build error (#10213)
jabranr Dec 8, 2020
8f2413e
Improve vendor chunk names in development (#9569)
jrr Dec 8, 2020
580ed5d
Update postcss packages (#10003)
raix Dec 8, 2020
54ad467
Recovered some integration tests (#10091)
maxsbelt Dec 8, 2020
6dce3f4
Upgrade sass-loader (#9988)
ehsankhfr Dec 8, 2020
e039ad3
Move ESLint cache file into node_modules (#9977)
ehsankhfr Dec 8, 2020
3968923
Revert "Update postcss packages" (#10216)
ianschmitz Dec 8, 2020
282c03f
Remove references to Node 8 (#10214)
ianschmitz Dec 14, 2020
a504e9d
fix(react-scripts): add missing peer dependency react and update reac…
merceyz Jan 13, 2021
0f6fc2b
Update using-the-public-folder.md (#10314)
Avivhdr Jan 14, 2021
c9a24db
docs: add missing override options for Jest config (#9473)
tobiasbueschel Feb 3, 2021
d229676
Fix CI tests (#10217)
ianschmitz Feb 3, 2021
6a39607
appTsConfig immutability handling by immer (#10027)
josezone Feb 3, 2021
8fa0a26
Add support for new BUILD_PATH advanced configuration variable (#8986)
ajhyndman Feb 3, 2021
b9963ab
Add opt-out for eslint-webpack-plugin (#10170)
mrmckeb Feb 3, 2021
32c06e6
Prepare 4.0.2 release
iansu Feb 3, 2021
9c75260
Publish
iansu Feb 3, 2021
3f5dea9
tests: update test case to match the description (#10384)
jamesgeorge007 Feb 3, 2021
9722ef1
Bump webpack-dev-server 3.11.0 -> 3.11.1 (#10312)
Awarua- Feb 18, 2021
18b5962
Upgrade eslint-webpack-plugin to fix opt-out flag (#10590)
mrmckeb Feb 22, 2021
6947896
update immer to 8.0.1 to address vulnerability (#10412)
wclem4 Feb 22, 2021
f710976
Prepare 4.0.3 release
iansu Feb 22, 2021
cce32fa
Update CHANGELOG
iansu Feb 22, 2021
f92c37a
Publish
iansu Feb 22, 2021
6ea4d71
Apply config change to prevent Webpack hijacking SystemJS functionality.
pixelami Apr 23, 2021
5cf3abe
Correct package name and URLs for Promethean fork of `react-scripts`
pixelami Apr 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages/ @ianschmitz @iansu @mrmckeb @petetnt
docusaurus/ @amyrlam @iansu
docusaurus/ @ianschmitz @iansu @mrmckeb
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open_collective: create-react-app
28 changes: 14 additions & 14 deletions .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ daysUntilClose: 5

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- "contributions: claimed"
- "contributions: up for grabs!"
- "good first issue"
- "issue: announcement"
- "issue: bug"
- "issue: needs investigation"
- "issue: proposal"
- "tag: breaking change"
- "tag: bug fix"
- "tag: documentation"
- "tag: enhancement"
- "tag: internal"
- "tag: new feature"
- "tag: underlying tools"
- 'contributions: claimed'
- 'contributions: up for grabs!'
- 'good first issue'
- 'issue: announcement'
- 'issue: bug'
- 'issue: needs investigation'
- 'issue: proposal'
- 'tag: breaking change'
- 'tag: bug fix'
- 'tag: documentation'
- 'tag: enhancement'
- 'tag: internal'
- 'tag: new feature'
- 'tag: underlying tools'

# Set to true to ignore issues in a project (defaults to false)
exemptProjects: true
Expand Down
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"arrowParens": "avoid",
"trailingComma": "es5",
"singleQuote": true,
"semi": true
}
1,324 changes: 1,324 additions & 0 deletions CHANGELOG-3.x.md

Large diffs are not rendered by default.

1,443 changes: 338 additions & 1,105 deletions CHANGELOG.md

Large diffs are not rendered by default.

16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Create React App [![Build Status](https://dev.azure.com/facebook/create-react-app/_apis/build/status/facebook.create-react-app?branchName=master)](https://dev.azure.com/facebook/create-react-app/_build/latest?definitionId=1&branchName=master) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-green.svg)](https://github.com/facebook/create-react-app/blob/master/CONTRIBUTING.md)

<img alt="Logo" align="right" src="https://create-react-app.dev/img/logo.svg" width="20%" />

Create React apps with no build configuration.

- [Creating an App](#creating-an-app) – How to create a new app.
Expand All @@ -17,7 +19,7 @@ cd my-app
npm start
```

If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` to ensure that npx always uses the latest version.
If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` or `yarn global remove create-react-app` to ensure that npx always uses the latest version.

_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_

Expand All @@ -37,7 +39,7 @@ Create a project, and you’re good to go.

## Creating an App

**You’ll need to have Node 8.16.0 or Node 10.16.0 or later version on your local development machine** (but it’s not required on the server). 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.
**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.

To create a new app, you may choose one of the following methods:

Expand Down Expand Up @@ -175,9 +177,9 @@ Here are a few common cases where you might want to try something else:

- If you need to **publish a React component**, [nwb](https://github.com/insin/nwb) can [also do this](https://github.com/insin/nwb#react-components-and-libraries), as well as [Neutrino's react-components preset](https://neutrino.js.org/packages/react-components/).

- If you want to do **server rendering** with React and Node.js, check out [Next.js](https://github.com/zeit/next.js/) or [Razzle](https://github.com/jaredpalmer/razzle). Create React App is agnostic of the backend, and only produces static HTML/JS/CSS bundles.
- If you want to do **server rendering** with React and Node.js, check out [Next.js](https://nextjs.org/) or [Razzle](https://github.com/jaredpalmer/razzle). Create React App is agnostic of the backend, and only produces static HTML/JS/CSS bundles.

- If your website is **mostly static** (for example, a portfolio or a blog), consider using [Gatsby](https://www.gatsbyjs.org/) instead. Unlike Create React App, it pre-renders the website into HTML at the build time.
- If your website is **mostly static** (for example, a portfolio or a blog), consider using [Gatsby](https://www.gatsbyjs.org/) or [Next.js](https://nextjs.org/). Unlike Create React App, Gatsby pre-renders the website into HTML at build time. Next.js supports both server rendering and pre-rendering.

- Finally, if you need **more customization**, check out [Neutrino](https://neutrino.js.org/) and its [React preset](https://neutrino.js.org/packages/react/).

Expand All @@ -194,6 +196,10 @@ Check out [Expo CLI](https://github.com/expo/expo-cli).

We'd love to have your helping hand on `create-react-app`! See [CONTRIBUTING.md](CONTRIBUTING.md) for more information on what we're looking for and how to get started.

## Supporting Create React App

Create React App is a community maintained project and all contributors are volunteers. If you'd like to support the future development of Create React App then please consider donating to our [Open Collective](https://opencollective.com/create-react-app).

## Credits

This project exists thanks to all the people who [contribute](CONTRIBUTING.md).<br>
Expand All @@ -211,4 +217,4 @@ We are grateful to the authors of existing related projects for their ideas and

## License

Create React App is open source software [licensed as MIT](https://github.com/facebook/create-react-app/blob/master/LICENSE).
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/).
7 changes: 7 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Reporting Security Issues

If you believe you have found a security vulnerability in Create React App, we encourage you to let us know right away. We will investigate all legitimate reports and do our best to quickly fix the problem.

Please refer to the following page for our responsible disclosure policy, reward guidelines, and those things that should not be reported:

https://www.facebook.com/whitehat
76 changes: 38 additions & 38 deletions azure-pipelines-test-job.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
#
# Azure Pipelines job for building and testing create-react-app on Linux, Windows, and macOS.
#
parameters:
name: ''
testScript: ''
configurations:
LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x }
LinuxNode12: { vmImage: 'ubuntu-16.04', nodeVersion: 12.x }
jobs:
- job: ${{ parameters.name }}
strategy:
matrix:
${{ insert }}: ${{ parameters.configurations }}
pool:
vmImage: $(vmImage)
steps:
- script: |
git config --global core.autocrlf false
git config --global user.name "Create React App"
git config --global user.email "cra@email.com"
displayName: 'Initialize Git config'
- checkout: self
path: create-react-app
- task: NodeTool@0
inputs:
versionSpec: $(nodeVersion)
displayName: 'Install Node.js'
- script: yarn --frozen-lockfile
displayName: 'Run yarn'
- bash: ${{ parameters.testScript }}
displayName: 'Run tests'
#
# Azure Pipelines job for building and testing create-react-app on Linux, Windows, and macOS.
#

parameters:
name: ''
testScript: ''
configurations:
LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x }
LinuxNode12: { vmImage: 'ubuntu-16.04', nodeVersion: 12.x }

jobs:
- job: ${{ parameters.name }}
strategy:
matrix:
${{ insert }}: ${{ parameters.configurations }}
pool:
vmImage: $(vmImage)
steps:
- script: |
git config --global core.autocrlf false
git config --global user.name "Create React App"
git config --global user.email "cra@email.com"
displayName: 'Initialize Git config'

- checkout: self
path: create-react-app

- task: NodeTool@0
inputs:
versionSpec: $(nodeVersion)
displayName: 'Install Node.js'

- script: yarn --frozen-lockfile
displayName: 'Run yarn'

- bash: ${{ parameters.testScript }}
displayName: 'Run tests'
154 changes: 77 additions & 77 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,77 +1,77 @@
#
# Azure Pipelines configuration for building and testing create-react-app on Linux, Windows, and macOS.
#
trigger:
- master
variables:
CI: true
# Overrides the Yarn and NPM cache directories so they are on the same drive as the source. This helps improve build performance on Windows hosted agents.
YARN_CACHE_FOLDER: $(Build.SourcesDirectory)/../yarn-cache
NPM_CONFIG_CACHE: $(Build.SourcesDirectory)/../npm-cache
# Sets TEMP to be on the same drive as the cloned source on Windows. This avoids test scripts that "cd" into a directory under TEMP from failing because this directory is on a different drive from the current directory.
VSTS_OVERWRITE_TEMP: True
CRA_INTERNAL_TEST: true
# ******************************************************************************
# Simple test suite
# ******************************************************************************
jobs:
- template: azure-pipelines-test-job.yml
parameters:
name: Simple
testScript: tasks/e2e-simple.sh
# ******************************************************************************
# Installs test suite
# ******************************************************************************
- template: azure-pipelines-test-job.yml
parameters:
name: Installs
testScript: tasks/e2e-installs.sh
# ******************************************************************************
# Kitchensink test suite
# ******************************************************************************
- template: azure-pipelines-test-job.yml
parameters:
name: Kitchensink
testScript: tasks/e2e-kitchensink.sh
# ******************************************************************************
# Kitchensink Eject test suite
# ******************************************************************************
- template: azure-pipelines-test-job.yml
parameters:
name: KitchensinkEject
testScript: tasks/e2e-kitchensink-eject.sh
# ******************************************************************************
# Behavior test suite
# ******************************************************************************
- template: azure-pipelines-test-job.yml
parameters:
name: Behavior
testScript: tasks/e2e-behavior.sh
configurations:
LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x }
LinuxNode12: { vmImage: 'ubuntu-16.04', nodeVersion: 12.x }
WindowsNode10: { vmImage: 'windows-2019', nodeVersion: 10.x }
WindowsNode12: { vmImage: 'windows-2019', nodeVersion: 12.x }
MacNode10: { vmImage: 'macOS-10.15', nodeVersion: 10.x }
MacNode12: { vmImage: 'macOS-10.15', nodeVersion: 12.x }
# ******************************************************************************
# Old Node test suite
# ******************************************************************************
- job: OldNode
pool:
vmImage: ubuntu-latest
steps:
- task: NodeTool@0
inputs:
versionSpec: 8.x
displayName: 'Install Node.js 8.x'
- bash: tasks/e2e-old-node.sh
displayName: 'Run tests'
#
# Azure Pipelines configuration for building and testing create-react-app on Linux, Windows, and macOS.
#

trigger:
- master

variables:
CI: true
# Overrides the Yarn and NPM cache directories so they are on the same drive as the source. This helps improve build performance on Windows hosted agents.
YARN_CACHE_FOLDER: $(Build.SourcesDirectory)/../yarn-cache
NPM_CONFIG_CACHE: $(Build.SourcesDirectory)/../npm-cache
# Sets TEMP to be on the same drive as the cloned source on Windows. This avoids test scripts that "cd" into a directory under TEMP from failing because this directory is on a different drive from the current directory.
VSTS_OVERWRITE_TEMP: True
CRA_INTERNAL_TEST: true

# ******************************************************************************
# Simple test suite
# ******************************************************************************
jobs:
- template: azure-pipelines-test-job.yml
parameters:
name: Simple
testScript: tasks/e2e-simple.sh

# ******************************************************************************
# Installs test suite
# ******************************************************************************
- template: azure-pipelines-test-job.yml
parameters:
name: Installs
testScript: tasks/e2e-installs.sh

# ******************************************************************************
# Kitchensink test suite
# ******************************************************************************
- template: azure-pipelines-test-job.yml
parameters:
name: Kitchensink
testScript: tasks/e2e-kitchensink.sh

# ******************************************************************************
# Kitchensink Eject test suite
# ******************************************************************************
- template: azure-pipelines-test-job.yml
parameters:
name: KitchensinkEject
testScript: tasks/e2e-kitchensink-eject.sh

# ******************************************************************************
# Behavior test suite
# ******************************************************************************
- template: azure-pipelines-test-job.yml
parameters:
name: Behavior
testScript: tasks/e2e-behavior.sh
configurations:
LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x }
LinuxNode12: { vmImage: 'ubuntu-16.04', nodeVersion: 12.x }
WindowsNode10: { vmImage: 'windows-2019', nodeVersion: 10.x }
WindowsNode12: { vmImage: 'windows-2019', nodeVersion: 12.x }
MacNode10: { vmImage: 'macOS-10.15', nodeVersion: 10.x }
MacNode12: { vmImage: 'macOS-10.15', nodeVersion: 12.x }

# ******************************************************************************
# Old Node test suite
# ******************************************************************************
- job: OldNode
pool:
vmImage: ubuntu-latest
steps:
- task: NodeTool@0
inputs:
versionSpec: 8.x
displayName: 'Install Node.js 8.x'
- bash: tasks/e2e-old-node.sh
displayName: 'Run tests'
6 changes: 3 additions & 3 deletions docusaurus/docs/adding-typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ npx create-react-app my-app --template typescript
yarn create react-app my-app --template typescript
```

> If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` to ensure that `npx` always uses the latest version.
> If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` or `yarn global remove create-react-app` to ensure that `npx` always uses the latest version.
>
> Global installs of `create-react-app` are no longer supported.

To add [TypeScript](https://www.typescriptlang.org/) to a Create React App project, first install it:
To add [TypeScript](https://www.typescriptlang.org/) to an existing Create React App project, first install it:

```sh
npm install --save typescript @types/node @types/react @types/react-dom @types/jest
Expand All @@ -47,7 +47,7 @@ You are not required to make a [`tsconfig.json` file](https://www.typescriptlang

## Troubleshooting

If your project is not created with TypeScript enabled, npx may be using a cached version of `create-react-app`. Remove previously installed versions with `npm uninstall -g create-react-app` (see [#6119](https://github.com/facebook/create-react-app/issues/6119#issuecomment-451614035)).
If your project is not created with TypeScript enabled, npx may be using a cached version of `create-react-app`. Remove previously installed versions with `npm uninstall -g create-react-app` or `yarn global remove create-react-app` (see [#6119](https://github.com/facebook/create-react-app/issues/6119#issuecomment-451614035)).

If you are currently using [create-react-app-typescript](https://github.com/wmonk/create-react-app-typescript/), see [this blog post](https://vincenttunru.com/migrate-create-react-app-typescript-to-create-react-app/) for instructions on how to migrate to Create React App.

Expand Down
Loading