Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into build-path-variable
- Loading branch information
Showing
132 changed files
with
11,079 additions
and
8,965 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
Validating CODEOWNERS rules …
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,2 +1,2 @@ | ||
packages/ @ianschmitz @iansu @mrmckeb @petetnt | ||
docusaurus/ @amyrlam @iansu | ||
docusaurus/ @ianschmitz @iansu @mrmckeb |
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,5 +1,5 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"arrowParens": "avoid", | ||
"singleQuote": true, | ||
"semi": true | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -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 |
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,40 +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 } | ||
# WindowsNode10: { vmImage: 'windows-latest', nodeVersion: 10.x } | ||
# WindowsNode12: { vmImage: 'windows-latest', 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' |
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,79 +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: | ||
LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x } | ||
LinuxNode12: { vmImage: 'ubuntu-16.04', nodeVersion: 12.x } | ||
# WindowsNode10: { vmImage: 'windows-latest', nodeVersion: 10.x } | ||
# WindowsNode12: { vmImage: 'windows-latest', nodeVersion: 12.x } | ||
MacNode10: { vmImage: 'macOS-latest', nodeVersion: 10.x } | ||
MacNode12: { vmImage: 'macOS-latest', 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' |
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
Oops, something went wrong.