Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
feat: merge cra v4.0.0 (#8)
Browse files Browse the repository at this point in the history
* Update template tests (facebook#8705)

* Bump TypeScript template to 3.8 (facebook#8713)

* Add .cjs and .mjs files support to test runner (facebook#8768)

* Use simplified import of @testing-library/jest-dom (facebook#8763)

* Include absoluteRuntime in babel preset docs (facebook#5847)

* Specify what files are served form a bare local copy (facebook#8749)

* fix: handle templates without main package field (facebook#8734)

* Add experimental react-refresh support (facebook#8582)

Co-authored-by: Ian Schmitz <[email protected]>

* Add setupTests.js to the list of generated files (facebook#8791)

* Simplify wording in setting-up-your-editor.md (facebook#8684)

* Update url to see prettier in action (facebook#8610)

* Bump acorn from 6.4.0 to 6.4.1 in /docusaurus/website (facebook#8656)

Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](acornjs/acorn@6.4.0...6.4.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Don't use webpack multi entry unnecessarily (facebook#8834)

Passing an array with a single entry is not equivalent. This causes Webpack
to generate another wrapper module around the entry. This is just
unnecessary overhead and bytes.

* Widen eslint-config-react-app peer dependency versions (facebook#8892)

See facebook#7790 for a previous similar PR.

* Revert "Replace favicon in templates (facebook#8194)" (facebook#8925)

This reverts commit c03bb36.

* Minor/patch dependency upgrades (facebook#8947)

* Upgrade to Jest 25 (facebook#8362)

Co-authored-by: Ian Schmitz <[email protected]>

* Drop Node 8 support (facebook#8948)

* Bump React Hooks ESLint plugin to 4.0.0 (facebook#8939)

* Update build script deployment URL (facebook#8651)

* Do not check for interactive session to shut down dev server (facebook#8845)

* Support source maps for scss in dev environments (facebook#8638)

* Skip stdin resuming to support lerna parallel (facebook#8700)

* Set resetMocks to true by default in jest config (facebook#7899)

* Add import/no-anonymous-default-export lint rule (facebook#8926)

* Upgrade testing-library packages (facebook#8406)

Co-authored-by: Ian Schmitz <[email protected]>

* Bump style-loader to 1.2.1 (facebook#8891)

* Support devDependencies in templates (facebook#8838)

* fix react-refresh babel plugin not applied (facebook#8952)

* Add a VSCode tip in the CSS reset section (facebook#8246)

* Add back in --stats output from webpack. (facebook#8790)

* Fix --use-pnp for Yarn 2 (facebook#8460)

* Replace period in CSS Module classnames (facebook#8492)

* Move shortlinks to cra.link (facebook#8957)

* Remove outdated comment (facebook#8858)

* bump webpack-dev-server to 3.11.0 (facebook#8975)

Co-authored-by: Marc Hassan <[email protected]>

* Dependency major version upgrades (facebook#8950)

* Update packages (facebook#9081)

* Fix dotenv file loading order (facebook#9037)

* Fix dotenv file loading order

* tests: fix failing env tests

* tests: fix more failing tests

Co-authored-by: Brody McKee <[email protected]>

* feat: remove typescript flag and NODE_PATH support (facebook#8934)

* Update question issue template

* Update getting-started.md to match templates (facebook#9089)

* Upgrade to Jest 26 (facebook#8955)

* Update Jest to 26

* Upgrade to Jest 26.0.1

* Use jest-circus test runner by default

* Try resolving test runner to fix behavior tests

* Run TypeScript verification in new context

* Delete globalThis if polyfilled

* feat(react-scripts): allow testMatch for jest config (facebook#9114)

resolves facebook#8637

* Add support for absolute paths when using url() in CSS (facebook#7937)

* Support scss absolute path resolution for url()

Adding resolve-url-loader broke all apps using scss with centralized assets folder and all url(./assets/*.png) broke (facebook#7023).
This change allows apps to use url(/assets/*.png) and it would map to src/assets/*.png

* test: Add global scss assets test

* Upgrade dependencies (facebook#9132)

* Fix typo in docs (facebook#9135)

* Add performance relayer + documentation (web-vitals) (facebook#9116)

Co-authored-by: Brody McKee <[email protected]>
Co-authored-by: Ian Schmitz <[email protected]>

* Update deployment docs for Azure Static Web Apps (facebook#9042)

Co-authored-by: Minh Nguyen <[email protected]>

* Replace Spectrum links with GitHub Discussions (facebook#9102)

* Use process.execPath to spawn node subprocess (facebook#8694)

* Upgrade dependencies (facebook#9196)

* Bump version of Verdaccio (facebook#7787)

* Support ESLint 7.x (facebook#8978)

* Fix chai URL (facebook#8895)

The root domain, chaijs.com, does not serve a valid certificate
and gives a browser warning.

* Explain how to uninstall create-react-app globally (facebook#9244)

* Explain how to uninstall create-react-app globally

* Add uninstallation intructions for yarn

* Upgrade dependencies (facebook#9317)

* Switch to the Workbox InjectManifest plugin (facebook#9205)

Co-authored-by: Ian Schmitz <[email protected]>

* Upgrade refresh plugin (facebook#9348)

* feat: Update ESLint dependencies (facebook#9251)

Co-authored-by: Ian Schmitz <[email protected]>

* Remove server worker registration from default templates (facebook#9349)

* Clarify wording in adding TypeScript to existing project (facebook#9231)

* feat: better refresh plugin integration (facebook#9375)

* feat: exit on outdated create-react-app version (facebook#9359)

* Prepare 4.0.0 alpha release

* Updated README.md Templates to Follow ESLint Markdown Rules (facebook#9241)

* [Doc] fix React Testing Library example (facebook#9245)

* Update running-tests.md (facebook#9380)

* Add Fast Refresh warning when using React < 16.10 (facebook#9350)

* Publish refreshOverlayInterop with react-dev-utils (facebook#9390)

* fix: remove deprecated rule (facebook#9401)

* clean formatMessage usage (facebook#9059)

* feat: Update testing-library dependencies to latest (facebook#9252)

* fix: use default modules option from `preset-env` (facebook#9374)

* Bump immer version (facebook#8933)

Co-authored-by: Ian Schmitz <[email protected]>
Co-authored-by: Ian Sutherland <[email protected]>

* Upgrade whatwg-fetch (facebook#9392)

Co-authored-by: Ian Schmitz <[email protected]>

* Fix template name handling (facebook#9412)

* Prepare 4.0.0 alpha release

* chore: update to [email protected] (facebook#9461)

* Create SECURITY.md

* Add 3.4.2 to changelog

* Add 3.4.3 to the changelog

* Fixes in the /packages/react-devs-utils/README.md file (facebook#9471)

* Added CRA logo in README.md (facebook#9363)

* Added React logo in README.md

* Added React logo in README file that makes looks nicer now.

* Added CRA Logo in README.md that looks nicer

* Replacing React Logo with CRA Logo instead

Co-authored-by: Eddie Monge Jr <[email protected]>

* Update README.md

Co-authored-by: Eddie Monge Jr <[email protected]>
Co-authored-by: Dan Abramov <[email protected]>

* Update Vercel deployment documentation (facebook#9560)

* Fix insensitive language in Docusaurus docs (facebook#9618)

* Remove ESLint extends and add Jest rules (facebook#9587)

* fix: Fix azure-pipelines' endOfLine (facebook#9258)

* Update template dependencies to latest version (facebook#9526)

Co-authored-by: Ian Schmitz <[email protected]>

* Update running-tests.md (facebook#9073)

* feat: Update ESLint dependencies (facebook#9434)

* Emphasise that Next.js is capable of SSG (facebook#9630)

* docs: add alt tag to homepage logo (facebook#9499)

* fix: resolve CI build failure (facebook#9640)

* Use new JSX transform with React 17 (facebook#9645)

* Upgrade dependencies (facebook#9639)

* Prepare 4.0.0 alpha release

* Update postcss-safe-parser

* Prepare 4.0.0 alpha release

* Update CODEOWNERS

* fix: resolve ESLint config from appPath (facebook#9683)

* Add AVIF image support (facebook#9611)

Co-authored-by: Ian Schmitz <[email protected]>

* fix: resolve new JSX runtime issues (facebook#9788)

* Upgrade Docusaurus to latest version (facebook#9728)

* Replace deprecated eslint-loader with eslint-webpack-plugin (facebook#9751)

* Replace deprecated eslint-loader by eslint-webpack-plugin

* Update eslintFormatter for eslint-webpack-plugin

* fix: always enable jsx-uses-react

Co-authored-by: Brody McKee <[email protected]>

* Add 3.4.4 to the changelog

* Bump resolve-url-loader version (facebook#9841)

* Bump resolve-url-loader version

* Unpin resolve-url-loader

* Fix refreshOverlayInterop module scope error (facebook#9805)

* Make eslint-plugin-jest an optional peerDependency (facebook#9670)

* feat(eslint-config-react-app): Add jest & testing-library rules (facebook#8963)

* feat: Update ESLint dependencies (facebook#9856)

* feat: remove unused React imports (facebook#9853)

* feat: Update all dependencies (facebook#9857)

Co-authored-by: Ian Schmitz <[email protected]>

* New JSX Transform opt out (facebook#9861)

* Use new JSX setting with TypeScript 4.1.0 (facebook#9734)

* Upgrade to React 17 (facebook#9863)

* Prepare 4.0.0 alpha release

* Pass JSX runtime setting to Babel preset in Jest config (facebook#9865)

* Prepare 4.0.0 release

* Update CHANGELOG

* Add link to Open Collective (facebook#9864)

* Update CHANGELOG

* Update react dom in error overlay

* Prepare 4.0.0 release

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* undo antd-package removel

Co-authored-by: Michaël De Boey <[email protected]>
Co-authored-by: Braedon Gough <[email protected]>
Co-authored-by: Andrey Sitnik <[email protected]>
Co-authored-by: Kirill Korolyov <[email protected]>
Co-authored-by: Iddan Aaronsohn <[email protected]>
Co-authored-by: Clément Hallet <[email protected]>
Co-authored-by: Brody McKee <[email protected]>
Co-authored-by: Adam Charron <[email protected]>
Co-authored-by: Ian Schmitz <[email protected]>
Co-authored-by: Mostafa Nawara <[email protected]>
Co-authored-by: Cory House <[email protected]>
Co-authored-by: Michael Schmidt-Voigt <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Markbåge <[email protected]>
Co-authored-by: Minh Nguyen <[email protected]>
Co-authored-by: Dan Abramov <[email protected]>
Co-authored-by: Kenneth Skovhus <[email protected]>
Co-authored-by: Sten Arthur Laane <[email protected]>
Co-authored-by: Jeremy Wadsack <[email protected]>
Co-authored-by: Matt Korostoff <[email protected]>
Co-authored-by: Hieu Do <[email protected]>
Co-authored-by: Alex Krolick <[email protected]>
Co-authored-by: Shakib Hossain <[email protected]>
Co-authored-by: Ernesto García <[email protected]>
Co-authored-by: Eugene Chybisov <[email protected]>
Co-authored-by: Tan Li Hau <[email protected]>
Co-authored-by: Maaz Syed Adeeb <[email protected]>
Co-authored-by: Sam Saccone <[email protected]>
Co-authored-by: Nick McCurdy <[email protected]>
Co-authored-by: Evan Kennedy <[email protected]>
Co-authored-by: Ian Sutherland <[email protected]>
Co-authored-by: Chetanya Kandhari <[email protected]>
Co-authored-by: Marc Hassan <[email protected]>
Co-authored-by: Marc Hassan <[email protected]>
Co-authored-by: Joe Haddad <[email protected]>
Co-authored-by: Brody McKee <[email protected]>
Co-authored-by: Josemaria Nriagu <[email protected]>
Co-authored-by: Jeroen Claassens <[email protected]>
Co-authored-by: atlanteh <[email protected]>
Co-authored-by: Jakob Krigovsky <[email protected]>
Co-authored-by: Houssein Djirdeh <[email protected]>
Co-authored-by: Burke Holland <[email protected]>
Co-authored-by: Anuraag Agrawal <[email protected]>
Co-authored-by: Brian Morearty <[email protected]>
Co-authored-by: Jeffrey Posnick <[email protected]>
Co-authored-by: Dylan Brookes <[email protected]>
Co-authored-by: Michael Mok <[email protected]>
Co-authored-by: Rafael Quijada <[email protected]>
Co-authored-by: Sakito Mukai <[email protected]>
Co-authored-by: Andy C <[email protected]>
Co-authored-by: Kline Moralee <[email protected]>
Co-authored-by: Gerrit Alex <[email protected]>
Co-authored-by: Sam Chen <[email protected]>
Co-authored-by: Huáng Jùnliàng <[email protected]>
Co-authored-by: Stafford Williams <[email protected]>
Co-authored-by: Lenard Pratt <[email protected]>
Co-authored-by: Simen Bekkhus <[email protected]>
Co-authored-by: Webdot_30 <[email protected]>
Co-authored-by: Raihan Nismara <[email protected]>
Co-authored-by: Eddie Monge Jr <[email protected]>
Co-authored-by: Timothy <[email protected]>
Co-authored-by: Liam Duffy <[email protected]>
Co-authored-by: Tobias Büschel <[email protected]>
Co-authored-by: Hongbo Miao <[email protected]>
Co-authored-by: Alexey Pyltsyn <[email protected]>
Co-authored-by: Clément DUNGLER <[email protected]>
Co-authored-by: Johannes Pfeiffer <[email protected]>
Co-authored-by: Sai <[email protected]>
  • Loading branch information
Show file tree
Hide file tree
Showing 164 changed files with 12,210 additions and 9,775 deletions.
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
Validating CODEOWNERS rules …
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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ about: Get help with Create React App
labels: 'needs triage'
---

If you have a general question about Create React App or about building an app with Create React App we encourage you to post on our Spectrum community instead of this issue tracker. The maintainers and other community members can provide help and answer your questions there: https://spectrum.chat/create-react-app
If you have a general question about Create React App or about building an app with Create React App we encourage you to post in GitHub Discussions instead of this issue tracker. The maintainers and other community members can provide help and answer your questions there: https://github.com/facebook/create-react-app/discussions

If you're looking for general information on using React, the React docs have a list of resources: https://reactjs.org/community/support.html

Expand Down
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: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"arrowParens": "avoid",
"trailingComma": "es5",
"singleQuote": true,
"semi": true
Expand Down
833 changes: 447 additions & 386 deletions CHANGELOG-0.x.md

Large diffs are not rendered by default.

1,324 changes: 1,324 additions & 0 deletions CHANGELOG-3.x.md

Large diffs are not rendered by default.

1,442 changes: 248 additions & 1,194 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ All functionality must be retained (and configuration given to the user) if they

2. Run `yarn` in the root `create-react-app` folder.

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.
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`.

If you want to try out the end-to-end flow with the global CLI, you can do this too:

Expand Down
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
78 changes: 38 additions & 40 deletions azure-pipelines-test-job.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,38 @@
#
# Azure Pipelines job for building and testing create-react-app on Linux, Windows, and macOS.
#

parameters:
name: ''
testScript: ''
configurations:
LinuxNode8: { vmImage: 'ubuntu-16.04', nodeVersion: 8.x }
LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x }
# WindowsNode8: { vmImage: 'vs2017-win2016', nodeVersion: 8.x }
# WindowsNode10: { vmImage: 'vs2017-win2016', nodeVersion: 10.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 "[email protected]"
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 "[email protected]"
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'
169 changes: 77 additions & 92 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,92 +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
# Override Verdaccio package to use. This is temporary and is needed to avoid socket timeouts on hosted Windows agent (on Azure). This also changes Verdaccio to return a 503 (service unavailable) instead of a 404 (not found) when the connection to the uplink timesout.
VERDACCIO_PACKAGE: https://github.com/willsmythe/verdaccio/releases/download/create-react-app/verdaccio-4.0.0-alpha.8.tgz
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:
LinuxNode8: { vmImage: 'ubuntu-18.04', nodeVersion: 8.x }
LinuxNode10: { vmImage: 'ubuntu-18.04', nodeVersion: 10.x }
# WindowsNode8: { vmImage: 'vs2017-win2016', nodeVersion: 8.x }
# WindowsNode10: { vmImage: 'vs2017-win2016', nodeVersion: 10.x }
MacNode8: { vmImage: 'macOS-10.15', nodeVersion: 8.x }
MacNode10: { vmImage: 'macOS-10.15', nodeVersion: 10.x }

# ******************************************************************************
# Old Node test suite
# ******************************************************************************
- job: OldNode
pool:
vmImage: ubuntu-16.04
steps:
- task: NodeTool@0
inputs:
versionSpec: 6.x
displayName: 'Install Node.js 6.x'
- bash: tasks/e2e-old-node.sh
displayName: 'Run tests'
# ******************************************************************************
# Unsupported Node with TypeScript flag
# ******************************************************************************
- job: UnsupportedNodeWithTypeScript
pool:
vmImage: ubuntu-16.04
steps:
- task: NodeTool@0
inputs:
versionSpec: 8.9.x
displayName: 'Install Node.js 8.9.x'
- bash: tasks/e2e-typescript-unsupported-node.sh
displayName: 'Run unsupported TypeScript test'
#
# 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'
2 changes: 2 additions & 0 deletions docusaurus/docs/adding-css-reset.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ To start using it, add `@import-normalize;` anywhere in your CSS file(s). You on
/* rest of app styles */
```

> **Tip**: If you see an "_Unknown at rule @import-normalize css(unknownAtRules)_" warning in VSCode, change the `css.lint.unknownAtRules` setting to `ignore`.
You can control which parts of [normalize.css] to use via your project's [browserslist].

Results when [browserslist] is `last 3 versions`:
Expand Down
4 changes: 2 additions & 2 deletions docusaurus/docs/adding-custom-environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ REACT_APP_NOT_SECRET_CODE=abcdef

Files on the left have more priority than files on the right:

- `npm start`: `.env.development.local`, `.env.development`, `.env.local`, `.env`
- `npm run build`: `.env.production.local`, `.env.production`, `.env.local`, `.env`
- `npm start`: `.env.development.local`, `.env.local`, `.env.development`, `.env`
- `npm run build`: `.env.production.local`, `.env.local`, `.env.production`, `.env`
- `npm test`: `.env.test.local`, `.env.test`, `.env` (note `.env.local` is missing)

These variables will act as the defaults if the machine does not explicitly set them.
Expand Down
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

0 comments on commit 0bcf864

Please sign in to comment.