Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: facebook/create-react-app
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f92c37a6e6636ed1650ffd976c6881f59b1be803
Choose a base ref
...
head repository: facebook/create-react-app
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 221e511730ca51c036c6954a9d2ee7659ff860f9
Choose a head ref
Loading
Showing with 47,042 additions and 22,936 deletions.
  1. +2 −1 .eslintrc.json
  2. +2 −2 .github/CODEOWNERS
  3. +1 −1 .github/ISSUE_TEMPLATE/bug_report.md
  4. +9 −3 .github/workflows/build.yml
  5. +32 −0 .github/workflows/integration.yml
  6. +9 −3 .github/workflows/lint.yml
  7. +0 −1 .gitignore
  8. +19 −19 CHANGELOG-0.x.md
  9. +4 −6 CHANGELOG-1.x.md
  10. +5 −5 CHANGELOG-2.x.md
  11. +1 −1 CHANGELOG-3.x.md
  12. +23 −15 CONTRIBUTING.md
  13. +3 −3 README.md
  14. +7 −4 azure-pipelines-test-job.yml
  15. +16 −16 azure-pipelines.yml
  16. +23 −18 docusaurus/docs/adding-a-sass-stylesheet.md
  17. +6 −6 docusaurus/docs/adding-bootstrap.md
  18. +1 −1 docusaurus/docs/adding-css-reset.md
  19. +2 −2 docusaurus/docs/advanced-configuration.md
  20. +1 −1 docusaurus/docs/code-splitting.md
  21. +3 −3 docusaurus/docs/custom-templates.md
  22. +3 −3 docusaurus/docs/deployment.md
  23. +1 −1 docusaurus/docs/documentation-intro.md
  24. +1 −1 docusaurus/docs/fetching-data-with-ajax-requests.md
  25. +6 −3 docusaurus/docs/getting-started.md
  26. +2 −2 docusaurus/docs/importing-a-component.md
  27. +6 −6 docusaurus/docs/making-a-progressive-web-app.md
  28. +2 −2 docusaurus/docs/running-tests.md
  29. +3 −3 docusaurus/docs/supported-browsers-features.md
  30. +5 −4 docusaurus/docs/updating-to-new-releases.md
  31. +1 −1 docusaurus/docs/using-the-public-folder.md
  32. +4 −4 docusaurus/website/README.md
  33. +1 −1 docusaurus/website/docusaurus.config.js
  34. +0 −10,309 docusaurus/website/yarn.lock
  35. +1 −1 netlify.toml
  36. +45,872 −0 package-lock.json
  37. +22 −22 package.json
  38. +3 −3 packages/babel-plugin-named-asset-import/package.json
  39. +1 −1 packages/babel-preset-react-app/README.md
  40. +18 −0 packages/babel-preset-react-app/create.js
  41. +17 −16 packages/babel-preset-react-app/package.json
  42. +1 −1 packages/confusing-browser-globals/README.md
  43. +2 −2 packages/confusing-browser-globals/package.json
  44. +2 −2 packages/cra-template-typescript/package.json
  45. +9 −9 packages/cra-template-typescript/template.json
  46. +2 −2 packages/cra-template/package.json
  47. +4 −4 packages/cra-template/template.json
  48. +7 −7 packages/cra-template/template/README.md
  49. +9 −9 packages/create-react-app/__tests__/getTemplateInstallPackage.test.js
  50. +18 −39 packages/create-react-app/createReactApp.js
  51. +5 −5 packages/create-react-app/index.js
  52. +16 −17 packages/create-react-app/package.json
  53. +0 −11,172 packages/create-react-app/yarn.lock.cached
  54. +4 −10 packages/eslint-config-react-app/README.md
  55. +7 −4 packages/eslint-config-react-app/base.js
  56. +1 −1 packages/eslint-config-react-app/index.js
  57. +18 −2 packages/eslint-config-react-app/jest.js
  58. +17 −22 packages/eslint-config-react-app/package.json
  59. +5 −5 packages/react-app-polyfill/package.json
  60. +25 −0 packages/react-dev-utils/ForkTsCheckerWarningWebpackPlugin.js
  61. +1 −3 packages/react-dev-utils/ModuleNotFoundPlugin.js
  62. +6 −0 packages/react-dev-utils/ModuleScopePlugin.js
  63. +2 −29 packages/react-dev-utils/README.md
  64. +0 −33 packages/react-dev-utils/WatchMissingNodeModulesPlugin.js
  65. +7 −64 packages/react-dev-utils/WebpackDevServerUtils.js
  66. +4 −4 packages/react-dev-utils/__tests__/getCSSModuleLocalIdent.test.js
  67. +3 −1 packages/react-dev-utils/evalSourceMapMiddleware.js
  68. +16 −4 packages/react-dev-utils/formatWebpackMessages.js
  69. +2 −1 packages/react-dev-utils/getProcessForPort.js
  70. +29 −29 packages/react-dev-utils/package.json
  71. +0 −45 packages/react-dev-utils/typescriptFormatter.js
  72. +20 −6 packages/react-dev-utils/webpackHotDevClient.js
  73. +25 −33 packages/react-error-overlay/package.json
  74. +2 −0 packages/react-error-overlay/src/__tests__/get-source-map.js
  75. +2 −4 packages/react-error-overlay/src/utils/generateAnsiHTML.js
  76. +4 −4 packages/react-error-overlay/webpack.config.js
  77. +0 −2 packages/react-scripts/config/env.js
  78. +1 −1 packages/react-scripts/config/jest/babelTransform.js
  79. +6 −0 packages/react-scripts/config/paths.js
  80. +0 −43 packages/react-scripts/config/pnpTs.js
  81. +185 −189 packages/react-scripts/config/webpack.config.js
  82. +9 −0 packages/react-scripts/config/webpack/persistentCache/createEnvironmentHash.js
  83. +65 −68 packages/react-scripts/config/webpackDevServer.config.js
  84. +2 −2 packages/react-scripts/fixtures/kitchensink/template.json
  85. +2 −2 packages/react-scripts/fixtures/kitchensink/template/README.md
  86. +5 −4 packages/react-scripts/fixtures/kitchensink/template/integration/webpack.test.js
  87. +3 −1 packages/react-scripts/fixtures/kitchensink/template/jest.transform.js
  88. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/JsonInclusion.js
  89. +51 −62 packages/react-scripts/package.json
  90. +12 −15 packages/react-scripts/scripts/build.js
  91. +2 −2 packages/react-scripts/scripts/eject.js
  92. +10 −12 packages/react-scripts/scripts/init.js
  93. +7 −27 packages/react-scripts/scripts/start.js
  94. +0 −9 packages/react-scripts/scripts/test.js
  95. +0 −1 packages/react-scripts/scripts/utils/createJestConfig.js
  96. +0 −163 packages/react-scripts/scripts/utils/verifyPackageTree.js
  97. +1 −1 packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js
  98. +1 −1 packages/react-scripts/template-typescript/README.md
  99. +1 −1 packages/react-scripts/template/README.md
  100. +0 −49 tasks/compile-lockfile.js
  101. +1 −5 tasks/cra.js
  102. +0 −8 tasks/e2e-behavior.sh
  103. +21 −31 tasks/e2e-installs.sh
  104. +4 −22 tasks/e2e-kitchensink-eject.sh
  105. +4 −15 tasks/e2e-kitchensink.sh
  106. +21 −44 tasks/e2e-simple.sh
  107. +15 −13 tasks/local-test.sh
  108. +2 −8 tasks/publish.sh
  109. +6 −6 tasks/screencast-start.js
  110. +1 −1 test/README.md
  111. +12 −35 test/fixtures/__shared__/util/scripts.js
  112. +5 −16 test/fixtures/__shared__/util/setup.js
  113. 0 test/fixtures/boostrap-sass/.disable-pnp
  114. +2 −2 test/fixtures/boostrap-sass/package.json
  115. +3 −3 test/fixtures/builds-with-multiple-runtimes/package.json
  116. 0 test/fixtures/global-scss-asset-resolution/.disable-pnp
  117. +1 −1 test/fixtures/global-scss-asset-resolution/package.json
  118. 0 test/fixtures/jsconfig/.disable-pnp
  119. +2 −2 test/fixtures/mjs-support/package.json
  120. 0 test/fixtures/typescript-advanced/.disable-pnp
  121. 0 test/fixtures/typescript-typecheck/.disable-pnp
  122. 0 test/fixtures/typescript/.disable-pnp
  123. 0 test/fixtures/webpack-message-formatting/.disable-pnp
  124. +1 −1 test/fixtures/webpack-message-formatting/index.test.js
  125. +162 −0 test/integration/create-react-app/index.test.js
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -4,7 +4,8 @@
"browser": true,
"commonjs": true,
"node": true,
"es6": true
"es6": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 2018
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages/ @ianschmitz @iansu @mrmckeb @petetnt
docusaurus/ @ianschmitz @iansu @mrmckeb
packages/ @iansu @mrmckeb
docusaurus/ @iansu @mrmckeb
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ labels: 'issue: bug report, needs triage'
* yarn.lock
Then you need to decide which package manager you prefer to use.
We support both npm (https://npmjs.com) and yarn (http://yarnpkg.com/).
We support both npm (https://npmjs.com) and yarn (https://yarnpkg.com/).
However, **they can't be used together in one project** so you need to pick one.
If you decided to use npm, run this in your project directory:
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -6,8 +6,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'npm'
- name: Install npm@8
run: npm i -g npm@8
- name: Install
run: yarn --no-progress --non-interactive --no-lockfile
run: npm ci --prefer-offline
- name: Build
run: yarn build
run: npm run build
32 changes: 32 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Integration Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
job:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
node: ['14', '16']
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install npm@8
run: npm i -g npm@8
- name: Install yarn
run: npm i -g yarn
- name: Install packages
run: npm ci --prefer-offline
- name: Run integration tests
run: npm run test:integration
12 changes: 9 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -6,8 +6,14 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'npm'
- name: Install npm@8
run: npm i -g npm@8
- name: Install
run: yarn --no-progress --non-interactive --no-lockfile
run: npm ci --prefer-offline
- name: Alex
run: yarn alex
run: npm run alex
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -12,4 +12,3 @@ yarn-debug.log*
yarn-error.log*
/.changelog
.npm/
yarn.lock
Loading