From 71e6f9264d93a2d0f6f953d1d937f417df20b423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Mo=C4=8Dko=C5=99?= Date: Sun, 5 Jan 2020 11:56:38 +0100 Subject: [PATCH] Feat/cra update (#163) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Publish - babel-plugin-named-asset-import@0.3.4 - babel-preset-react-app@9.0.2 - confusing-browser-globals@1.0.9 - create-react-app@3.1.2 - eslint-config-react-app@5.0.2 - react-app-polyfill@1.0.3 - react-dev-utils@9.0.4 - react-error-overlay@6.0.2 - react-scripts@3.1.2 * Update runtime chunk name separator in docs (#7705) * Remove 'shortcut' link type before 'icon' (#7707) * Guard polyfills against window possibly being undefined (#7205) * Enable .eslintignore with extend flag (#7562) * Add "entrypoints" key to asset manifest (#7721) * Update adding flow documentation (#7731) * set output.globalObject to 'this' (#7742) Closes #7741 * Update logic and log errors for EXTEND_ESLINT (#7530) * update list of supported jest config overrides (#7601) * Upgrade Webpack version (#7740) * Close br tags in template README files (#7668) * Fix variable name casing in fileTransform (#7752) * Documentation typo fix (#7757) * Fix linting error when using rest props (#7754) * Add TSC_COMPILE_ON_ERROR setting (#6931) * Remove switch case (#7729) * docs: note that v2 to v3 migration may require deletion of node_modules (#7302) * Stop hiding the column number of ESLint errors (#6980) * Support setting baseUrl to root directory (#7755) * Use installing package manager in README (#7687) * Support production profiling with React Developer Tools (#7737) * Added the alias for profiling and output change to keep the classNames and functionNames for human readbility * defined isEnvProductionProfile with other isEnv checks * moved the keep_classnames and keep_fnames to terserOptions scope * resolve merge conflict for yarn.lock.cache * revert yarn.lock.cache to master yarn.lock.cache - git checkout origin/master -- packages/create-react-app/yarn.lock.cached * Comment and Boolean Check - I clarified the comment and specified the use case - Changed the environment check to check for the specific true rather than the assumed primitive value as before. * Replaced env with flag - Per suggestion --profile flag used instead of env variable PROFILE_APP * documentation in available scripts section with suggested information * resolved a local git issue. Fixed documentation error. * moved documentation to suggested file - Added a brief summary of profiling in available scripts section. The summary references the production-build document. Which is the file I moved the new documentation into under a new Header for production support. * Update production-build.md Co-authored-by: Ian Sutherland * Prepare 3.2.0 release * Publish - create-react-app@3.2.0 - react-app-polyfill@1.0.4 - react-dev-utils@9.1.0 - react-error-overlay@6.0.3 - react-scripts@3.2.0 * Temporarily disable Windows in CI (#7773) * Add babel runtime version to transform-runtime plugin to reduce… (#7726) * Add Babel sourcemap to resolve VSCode debugging issues (#7022) * Fix process type in TypeScript template (#7796) * Account for browserslist environment variables (#7764) * Clarify dynamic import stage in docs (#7813) * Update adding-typescript.md (#7815) * Document how to use the .env file to enforce HTTPS (#7821) * Fix absolute paths issue in Jest (#7822) * Document correct default behavior for HOST var (#7823) * Fix grammar error in troubleshooting.md (#7824) * Upgrade to docusaurus 2 (#7785) * chore: upgrade to docusaurus 2 * address review * Update doc publishing instructions * Revert logo in templates (#7830) * feat: add additional Jest keys to whitelist (#7832) * Link to React documentation for code splitting (#7686) The official documentation offers a simpler way of achieving route based code splitting. * Add a note about .eslingignore files being respected (#7809) * added check for typescript template and unsupported node version (#7839) * added check for typescript template and unsupported node version * addressed code review feedback regarding syntax and spelling mistakes * Update getting-started.md (#7841) Update the initial project structure generated by create-react-app. * Link to ASP.NET Core docs (#7840) * Update readme gif links (#7849) * Update adding-bootstrap.md (#7853) typo fix * Move unused eslint webpack import into @remove-on-eject block (#7856) * 📖 DOC: Improvement (#7819) * Upgrade terser & enable parallel minification in wsl (#7857) * Add a GitHub Action that runs the build script (#7861) * Edit InterpolateHtmlPlugin hook (#6448) (#6449) * Fix notations of loopback addresses (#7474) * Add Service-Worker header to checkValidServiceWorker (#6753) * Add header to checkValidServiceWorker (ts) * Add header to checkValidServiceWorker * Add additional information for postcss errors (#6282) (#6352) * Add additional information for postcss errors * Add additional information for postcss errors (simplify) * Remove chunkname from postCSS compile error * Remove line number from postCSS compile error * Fix eslint complaints in build.js (#7870) * Add Alex to lint documentation (#7852) * Add Alex to lint documentation * Attempt to trigger GitHub Action * Configure Alex and update docs * More docs updates * Bump docusaurus 🦖 (#7874) * Dark scheme overlay (#7052) * Bump react (#7875) * Bump styling related loaders (#7876) * Remove alex precommit check (#7878) * Add template support (#7716) * Add template support * Update templates version check * Update TypeScript template README * Prepare 3.3.0 beta * If template name already starts with cra-template leave it alone (#7880) * Update prerelease publishing instructions * Upgrade packages and tweak config to adapt to new config format (#7814) Rebased again now with smaller changes in this one which will make it easier to revert in case of eventual regressions. * refactor: remove double coerce (#7882) * Add yarn.lock to .gitignore (#7789) * chore: Fix broken link for CRA deployment (#7897) * chore: Fix broken link for e2e README (#7896) * Add @testing-library to the default templates (#7881) * Add numeric separator support (#7817) * Update open (#7910) * Mark TypeScript as an optional peer dependency (#7860) * Add restoreMocks to supported jest config keys (#7921) * fix seperators typo (#7932) Its the little things that makes the big difference! 😁 Thanks * No spinning React logo if `prefers-reduced-motion` (#7931) * Made PRs welcome badge point to contributors guide (#7792) * Make JavaScript and TypeScript templates consistent (#7944) * Fix CI (#7951) * Add optional chaining and nullish coalescing operators support (#7438) * Add tests for optional chaining and null coalescing (#7952) * Upgrade jest-watch-typeahead (#7956) * Fix light background in docusaurus night mode (#7936) * Fix light background in docusaurus night mode Closes #7930 * Rename lightBackground to gettingStartedSection * Add placeholders where old template READMEs used to be (#7972) * Temporarily disable GitHub Actions (#7978) * Prepare 3.3.0 beta * Bump dependencies (#7986) * Support scoped templates (#7991) * Add contributors section to readme (#7995) * added e2e test for checking typescript template with unsupported node (#7844) * Unpin dependencies in react-app-polyfill (#7999) * Add scripts support to templates (#7989) * Override no-unused-expressions with the typescript-eslint version (#8003) Fixes issues with optional chaining * Prefix apple-touch-icon links with PUBLIC_URL. (#8005) * Bump webpack-dev-server (#7988) * Bump dependencies (#8024) * Re-enable GitHub Actions (#8029) * Update CHANGELOG * Update CODEOWNERS * Remove no-unexpected-multiline rule (#8039) * Add TypeScript peer dependency to react-scripts (#8038) * Update template docs (#8050) * Update template docs * Update custom-templates.md * Update custom-templates.md Co-authored-by: Ian Sutherland * Prepare 3.3.0 release * Update CHANGELOG * Publish - babel-plugin-named-asset-import@0.3.5 - babel-preset-react-app@9.1.0 - cra-template-typescript@1.0.0 - cra-template@1.0.0 - create-react-app@3.3.0 - eslint-config-react-app@5.1.0 - react-app-polyfill@1.0.5 - react-dev-utils@10.0.0 - react-error-overlay@6.0.4 - react-scripts@3.3.0 * webpackHotDev now uses wss when https is used (#8079) * Add custom-templates to docs sidebar (#8077) * Fix typo in CHANGELOG.md (#8080) * fix Manifest entries * update react-scripts dependencies * add typesript-eslint to eslint-config peer depndencies Co-authored-by: Ian Sutherland Co-authored-by: Samuel Meuli Co-authored-by: Lewis Llobera Co-authored-by: Jake Moxey Co-authored-by: Iguchi Tomokatsu Co-authored-by: Federico Zivolo <5382443+FezVrasta@users.noreply.github.com> Co-authored-by: Kent C. Dodds Co-authored-by: Laurin Quast Co-authored-by: neilbryson Co-authored-by: Reece Dunham Co-authored-by: Rakan Nimer Co-authored-by: Tomer Cohen Co-authored-by: Alexandr Tovmach Co-authored-by: Kyle Bebak Co-authored-by: André Lins Co-authored-by: Kim Persson Co-authored-by: Justin Grant Co-authored-by: Robert van Steen Co-authored-by: Ashrith Reddy Co-authored-by: Jacob M-G Evans <27247160+JacobMGEvans@users.noreply.github.com> Co-authored-by: Ian Schmitz Co-authored-by: Damian Senn Co-authored-by: Róbert FUSZENECKER Co-authored-by: May Co-authored-by: Orta Co-authored-by: Tomáš Hübelbauer Co-authored-by: Jesse Jackson Co-authored-by: Jake Boone Co-authored-by: Endi Co-authored-by: Brody McKee Co-authored-by: Hugo David-Boyet Co-authored-by: Sean Lafferty Co-authored-by: Ali Waseem Co-authored-by: reactjser <54932880+reactjser@users.noreply.github.com> Co-authored-by: Daniel Lo Nigro Co-authored-by: Chun <11034578+cchanxzy@users.noreply.github.com> Co-authored-by: Xuhao Co-authored-by: Sean Baines Co-authored-by: Abdul Wahab ⚡️ Co-authored-by: Guillaume Hertault Co-authored-by: Wataru Ashihara Co-authored-by: darthmaim Co-authored-by: Joshua Robinson <1865690+buildbreakdo@users.noreply.github.com> Co-authored-by: Andreas Cederström Co-authored-by: Fabiano Brito Co-authored-by: Kanitkorn Sujautra Co-authored-by: Havit Rovik Co-authored-by: Tharun Rajendran Co-authored-by: Dylan Staley <88163+dstaley@users.noreply.github.com> Co-authored-by: Donavon West Co-authored-by: James George Co-authored-by: RJ <22164266+suprj@users.noreply.github.com> Co-authored-by: Renato Augusto Gama dos Santos Co-authored-by: Mateusz Burzyński Co-authored-by: Alex Guerra Co-authored-by: Klas Björkqvist Co-authored-by: Max Davidson Co-authored-by: Ben Blank Co-authored-by: Mike Caulley Co-authored-by: Trontor --- .alexignore | 4 + .alexrc | 18 + .github/CODEOWNERS | 2 +- .github/workflows/build.yml | 13 + .github/workflows/lint.yml | 13 + .gitignore | 1 + CHANGELOG-1.x.md | 12 +- azure-pipelines-test-job.yml | 54 +- azure-pipelines.yml | 120 +- docusaurus/docs/adding-bootstrap.md | 5 +- .../adding-custom-environment-variables.md | 7 +- docusaurus/docs/adding-flow.md | 2 +- .../docs/adding-images-fonts-and-files.md | 9 +- docusaurus/docs/adding-relay.md | 2 +- docusaurus/docs/adding-typescript.md | 28 +- docusaurus/docs/advanced-configuration.md | 3 +- docusaurus/docs/alternatives-to-ejecting.md | 2 +- docusaurus/docs/available-scripts.md | 2 +- docusaurus/docs/can-i-use-decorators.md | 6 +- docusaurus/docs/code-splitting.md | 2 +- docusaurus/docs/custom-templates.md | 75 + docusaurus/docs/debugging-tests.md | 9 +- docusaurus/docs/deployment.md | 26 +- .../developing-components-in-isolation.md | 4 +- .../docs/fetching-data-with-ajax-requests.md | 2 +- docusaurus/docs/getting-started.md | 43 +- docusaurus/docs/importing-a-component.md | 3 +- docusaurus/docs/installing-a-dependency.md | 2 +- .../docs/integrating-with-an-api-backend.md | 5 + .../docs/making-a-progressive-web-app.md | 4 +- docusaurus/docs/post-processing-css.md | 3 +- docusaurus/docs/production-build.md | 8 +- .../proxying-api-requests-in-development.md | 17 +- docusaurus/docs/running-tests.md | 37 +- docusaurus/docs/setting-up-your-editor.md | 9 +- .../docs/supported-browsers-features.md | 4 +- docusaurus/docs/title-and-meta-tags.md | 12 +- docusaurus/docs/troubleshooting.md | 8 +- docusaurus/docs/using-global-variables.md | 2 +- docusaurus/docs/using-https-in-development.md | 11 + docusaurus/docs/using-the-public-folder.md | 4 +- docusaurus/website/.gitignore | 20 + docusaurus/website/README.md | 137 +- docusaurus/website/core/Footer.js | 123 - docusaurus/website/docusaurus.config.js | 118 + docusaurus/website/i18n/en.json | 178 - docusaurus/website/package.json | 31 +- docusaurus/website/pages/en/index.js | 187 - docusaurus/website/sidebars.json | 1 + docusaurus/website/siteConfig.js | 98 - docusaurus/website/src/css/custom.css | 9 + docusaurus/website/src/pages/index.js | 139 + .../website/src/pages/styles.module.css | 49 + docusaurus/website/static/CNAME | 1 + docusaurus/website/static/css/custom.css | 56 - docusaurus/website/yarn.lock | 8847 +++++++++++------ netlify.toml | 2 +- package.json | 42 +- .../package.json | 4 +- packages/babel-preset-react-app/create.js | 10 + packages/babel-preset-react-app/package.json | 37 +- .../confusing-browser-globals/package.json | 2 +- packages/cra-template-typescript/README.md | 20 + packages/cra-template-typescript/package.json | 28 + .../cra-template-typescript/template.json | 12 + .../template/README.md | 44 + .../template}/gitignore | 0 .../template/public/favicon.ico | Bin 0 -> 3870 bytes .../template/public/index.html | 4 +- .../template/public/logo192.png | Bin 0 -> 5347 bytes .../template/public/logo512.png | Bin 0 -> 9664 bytes .../template}/public/manifest.json | 0 .../template}/public/robots.txt | 0 .../template}/src/App.css | 18 +- .../template/src/App.test.tsx | 9 + .../template}/src/App.tsx | 0 .../template}/src/index.css | 0 .../template}/src/index.tsx | 0 .../template/src}/logo.svg | 0 .../template}/src/serviceWorker.ts | 8 +- .../template/src/setupTests.ts | 5 + packages/cra-template/README.md | 10 + packages/cra-template/package.json | 27 + packages/cra-template/template.json | 7 + packages/cra-template/template/README.md | 68 + .../template/gitignore | 0 .../cra-template/template/public/favicon.ico | Bin 0 -> 3870 bytes .../template}/public/index.html | 4 +- .../cra-template/template/public/logo192.png | Bin 0 -> 5347 bytes .../cra-template/template/public/logo512.png | Bin 0 -> 9664 bytes .../template/public/manifest.json | 0 .../template/public/robots.txt | 0 .../template/src/App.css | 18 +- .../template/src/App.js | 0 .../cra-template/template/src/App.test.js | 9 + packages/cra-template/template/src/index.css | 13 + .../template/src/index.js | 0 packages/cra-template/template/src/logo.svg | 7 + .../template/src/serviceWorker.js | 6 +- .../cra-template/template/src/setupTests.js | 5 + packages/create-react-app/createReactApp.js | 260 +- packages/create-react-app/package.json | 21 +- packages/create-react-app/yarn.lock.cached | 2891 +++--- packages/eslint-config-lighter/package.json | 2 + packages/eslint-config-react-app/index.js | 10 +- packages/eslint-config-react-app/package.json | 4 +- packages/react-app-polyfill/ie11.js | 2 +- packages/react-app-polyfill/ie9.js | 3 +- packages/react-app-polyfill/package.json | 14 +- .../react-dev-utils/InlineChunkHtmlPlugin.js | 4 +- .../react-dev-utils/InterpolateHtmlPlugin.js | 2 +- packages/react-dev-utils/README.md | 8 +- .../react-dev-utils/WebpackDevServerUtils.js | 19 +- packages/react-dev-utils/browsersHelper.js | 2 +- .../react-dev-utils/formatWebpackMessages.js | 3 - packages/react-dev-utils/openBrowser.js | 2 +- packages/react-dev-utils/package.json | 50 +- .../printHostingInstructions.js | 2 +- .../react-dev-utils/webpackHotDevClient.js | 5 +- packages/react-error-overlay/package.json | 42 +- .../src/components/CloseButton.js | 21 +- .../src/components/CodeBlock.js | 31 +- .../src/components/Collapsible.js | 83 +- .../src/components/ErrorOverlay.js | 73 +- .../src/components/Footer.js | 14 +- .../src/components/Header.js | 14 +- .../src/components/NavigationBar.js | 24 +- .../src/containers/CompileErrorContainer.js | 42 +- .../src/containers/StackFrame.js | 223 +- .../src/containers/StackFrameCodeBlock.js | 10 +- .../src/effects/unhandledError.js | 1 + .../react-error-overlay/src/iframeScript.js | 30 +- packages/react-error-overlay/src/styles.js | 137 +- .../react-error-overlay/src/utils/dom/css.js | 11 +- .../src/utils/generateAnsiHTML.js | 73 +- .../src/utils/getSourceMap.js | 1 + .../src/utils/getStackFrames.js | 1 + .../react-error-overlay/src/utils/parser.js | 24 +- .../bin/lighter-react-scripts.js | 65 +- .../config/jest/fileTransform.js | 4 +- packages/react-scripts/config/modules.js | 55 +- packages/react-scripts/config/paths.js | 23 +- .../react-scripts/config/webpack.config.js | 90 +- .../config/webpackDevServer.config.js | 8 +- .../react-scripts/fixtures/kitchensink/.env | 7 - .../fixtures/kitchensink/package.json | 5 + .../src/features/webpack/assets/svg.css | 3 - ...mplate.dependencies.json => template.json} | 0 .../fixtures/kitchensink/template/.env | 7 + .../{ => template}/.env.development | 0 .../kitchensink/{ => template}/.env.local | 0 .../{ => template}/.env.production | 0 .../kitchensink/{ => template}/.flowconfig | 0 .../kitchensink/{ => template}/README.md | 14 +- .../kitchensink/{ => template}/gitignore | 0 .../{ => template}/integration/config.test.js | 0 .../{ => template}/integration/env.test.js | 2 +- .../{ => template}/integration/initDOM.js | 37 +- .../{ => template}/integration/syntax.test.js | 0 .../integration/webpack.test.js | 0 .../{ => template}/jest.integration.config.js | 0 .../{ => template}/jest.transform.js | 0 .../kitchensink/{ => template}/jsconfig.json | 0 .../{ => template}/public/favicon.ico | Bin .../{ => template}/public/index.html | 2 +- .../kitchensink/{ => template}/src/App.js | 10 + .../{ => template}/src/absoluteLoad.js | 0 .../src/features/config/BaseUrl.js | 0 .../src/features/config/BaseUrl.test.js | 0 .../src/features/env/ExpandEnvVariables.js | 0 .../features/env/ExpandEnvVariables.test.js | 0 .../src/features/env/FileEnvVariables.js | 0 .../src/features/env/FileEnvVariables.test.js | 0 .../src/features/env/PublicUrl.js | 0 .../src/features/env/PublicUrl.test.js | 0 .../src/features/env/ShellEnvVariables.js | 0 .../features/env/ShellEnvVariables.test.js | 0 .../src/features/syntax/ArrayDestructuring.js | 0 .../syntax/ArrayDestructuring.test.js | 0 .../src/features/syntax/ArraySpread.js | 0 .../src/features/syntax/ArraySpread.test.js | 0 .../src/features/syntax/AsyncAwait.js | 0 .../src/features/syntax/AsyncAwait.test.js | 0 .../src/features/syntax/ClassProperties.js | 0 .../features/syntax/ClassProperties.test.js | 0 .../src/features/syntax/ComputedProperties.js | 0 .../syntax/ComputedProperties.test.js | 0 .../features/syntax/CustomInterpolation.js | 0 .../syntax/CustomInterpolation.test.js | 0 .../src/features/syntax/DefaultParameters.js | 0 .../features/syntax/DefaultParameters.test.js | 0 .../features/syntax/DestructuringAndAwait.js | 0 .../syntax/DestructuringAndAwait.test.js | 0 .../src/features/syntax/Generators.js | 0 .../src/features/syntax/Generators.test.js | 0 .../src/features/syntax/NullishCoalescing.js | 48 + .../features/syntax/NullishCoalescing.test.js | 19 + .../features/syntax/ObjectDestructuring.js | 0 .../syntax/ObjectDestructuring.test.js | 0 .../src/features/syntax/ObjectSpread.js | 0 .../src/features/syntax/ObjectSpread.test.js | 0 .../src/features/syntax/OptionalChaining.js | 48 + .../features/syntax/OptionalChaining.test.js | 19 + .../src/features/syntax/Promises.js | 0 .../src/features/syntax/Promises.test.js | 0 .../src/features/syntax/RestAndDefault.js | 0 .../features/syntax/RestAndDefault.test.js | 0 .../src/features/syntax/RestParameters.js | 0 .../features/syntax/RestParameters.test.js | 0 .../features/syntax/TemplateInterpolation.js | 0 .../syntax/TemplateInterpolation.test.js | 0 .../src/features/webpack/CssInclusion.js | 0 .../src/features/webpack/CssInclusion.test.js | 0 .../features/webpack/CssModulesInclusion.js | 0 .../webpack/CssModulesInclusion.test.js | 0 .../src/features/webpack/DynamicImport.js | 0 .../features/webpack/DynamicImport.test.js | 0 .../src/features/webpack/ImageInclusion.js | 0 .../features/webpack/ImageInclusion.test.js | 0 .../src/features/webpack/JsonInclusion.js | 0 .../features/webpack/JsonInclusion.test.js | 0 .../src/features/webpack/LinkedModules.js | 0 .../features/webpack/LinkedModules.test.js | 0 .../src/features/webpack/NoExtInclusion.js | 0 .../features/webpack/NoExtInclusion.test.js | 0 .../src/features/webpack/SassInclusion.js | 0 .../features/webpack/SassInclusion.test.js | 0 .../features/webpack/SassModulesInclusion.js | 0 .../webpack/SassModulesInclusion.test.js | 0 .../src/features/webpack/ScssInclusion.js | 0 .../features/webpack/ScssInclusion.test.js | 0 .../features/webpack/ScssModulesInclusion.js | 0 .../webpack/ScssModulesInclusion.test.js | 0 .../src/features/webpack/SvgComponent.js | 0 .../src/features/webpack/SvgComponent.test.js | 0 .../src/features/webpack/SvgInCss.js | 0 .../src/features/webpack/SvgInCss.test.js | 0 .../src/features/webpack/SvgInclusion.js | 0 .../src/features/webpack/SvgInclusion.test.js | 0 .../features/webpack/UnknownExtInclusion.js | 0 .../webpack/UnknownExtInclusion.test.js | 0 .../webpack/assets/aFileWithExt.unknown | 0 .../features/webpack/assets/aFileWithoutExt | 0 .../src/features/webpack/assets/abstract.json | 0 .../features/webpack/assets/index.module.css | 0 .../features/webpack/assets/index.module.sass | 0 .../features/webpack/assets/index.module.scss | 0 .../src/features/webpack/assets/logo.svg | 7 + .../webpack/assets/sass-styles.module.sass | 0 .../features/webpack/assets/sass-styles.sass | 0 .../webpack/assets/scss-styles.module.scss | 0 .../features/webpack/assets/scss-styles.scss | 0 .../src/features/webpack/assets/style.css | 0 .../features/webpack/assets/style.module.css | 0 .../src/features/webpack/assets/svg.css | 3 + .../features/webpack/assets/tiniest-cat.jpg | Bin .../kitchensink/{ => template}/src/index.js | 0 .../{ => template}/src/subfolder/lol.js | 0 packages/react-scripts/package-lock.json | 4183 ++++---- packages/react-scripts/package.json | 80 +- packages/react-scripts/scripts/build.js | 28 +- packages/react-scripts/scripts/init.js | 127 +- packages/react-scripts/scripts/start.js | 2 + .../scripts/utils/createJestConfig.js | 6 +- .../template-typescript/README.md | 45 +- .../template-typescript/public/favicon.ico | Bin 22382 -> 0 bytes .../template-typescript/public/logo192.png | Bin 8581 -> 0 bytes .../template-typescript/public/logo512.png | Bin 22920 -> 0 bytes .../template-typescript/src/App.test.tsx | 9 - .../template-typescript/src/logo.svg | 1 - packages/react-scripts/template/README.md | 2427 +---- .../react-scripts/template/public/favicon.ico | Bin 22382 -> 0 bytes .../react-scripts/template/public/logo192.png | Bin 8581 -> 0 bytes .../react-scripts/template/public/logo512.png | Bin 22920 -> 0 bytes .../react-scripts/template/src/App.test.js | 9 - packages/react-scripts/template/src/index.css | 13 - packages/react-scripts/template/src/logo.svg | 1 - tasks/e2e-installs.sh | 13 +- tasks/e2e-kitchensink-eject.sh | 6 +- tasks/e2e-kitchensink.sh | 6 +- tasks/e2e-simple.sh | 2 +- tasks/e2e-typescript-unsupported-node.sh | 61 + tasks/local-test.sh | 4 +- tasks/publish.sh | 2 +- .../fixtures/typescript-advanced/package.json | 2 +- test/fixtures/typescript-advanced/src/App.tsx | 11 +- .../typescript-typecheck/package.json | 2 +- test/fixtures/typescript/package.json | 2 +- .../__snapshots__/index.test.js.snap | 4 +- 289 files changed, 12248 insertions(+), 10439 deletions(-) create mode 100644 .alexignore create mode 100644 .alexrc create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/lint.yml create mode 100644 docusaurus/docs/custom-templates.md create mode 100644 docusaurus/website/.gitignore delete mode 100644 docusaurus/website/core/Footer.js create mode 100644 docusaurus/website/docusaurus.config.js delete mode 100644 docusaurus/website/i18n/en.json delete mode 100755 docusaurus/website/pages/en/index.js delete mode 100644 docusaurus/website/siteConfig.js create mode 100644 docusaurus/website/src/css/custom.css create mode 100644 docusaurus/website/src/pages/index.js create mode 100644 docusaurus/website/src/pages/styles.module.css create mode 100644 docusaurus/website/static/CNAME delete mode 100644 docusaurus/website/static/css/custom.css create mode 100644 packages/cra-template-typescript/README.md create mode 100644 packages/cra-template-typescript/package.json create mode 100644 packages/cra-template-typescript/template.json create mode 100644 packages/cra-template-typescript/template/README.md rename packages/{react-scripts/template-typescript => cra-template-typescript/template}/gitignore (100%) create mode 100644 packages/cra-template-typescript/template/public/favicon.ico rename packages/{react-scripts => cra-template-typescript}/template/public/index.html (92%) create mode 100644 packages/cra-template-typescript/template/public/logo192.png create mode 100644 packages/cra-template-typescript/template/public/logo512.png rename packages/{react-scripts/template-typescript => cra-template-typescript/template}/public/manifest.json (100%) rename packages/{react-scripts/template-typescript => cra-template-typescript/template}/public/robots.txt (100%) rename packages/{react-scripts/template-typescript => cra-template-typescript/template}/src/App.css (51%) create mode 100644 packages/cra-template-typescript/template/src/App.test.tsx rename packages/{react-scripts/template-typescript => cra-template-typescript/template}/src/App.tsx (100%) rename packages/{react-scripts/template-typescript => cra-template-typescript/template}/src/index.css (100%) rename packages/{react-scripts/template-typescript => cra-template-typescript/template}/src/index.tsx (100%) rename packages/{react-scripts/fixtures/kitchensink/src/features/webpack/assets => cra-template-typescript/template/src}/logo.svg (100%) rename packages/{react-scripts/template-typescript => cra-template-typescript/template}/src/serviceWorker.ts (97%) create mode 100644 packages/cra-template-typescript/template/src/setupTests.ts create mode 100644 packages/cra-template/README.md create mode 100644 packages/cra-template/package.json create mode 100644 packages/cra-template/template.json create mode 100644 packages/cra-template/template/README.md rename packages/{react-scripts => cra-template}/template/gitignore (100%) create mode 100644 packages/cra-template/template/public/favicon.ico rename packages/{react-scripts/template-typescript => cra-template/template}/public/index.html (92%) create mode 100644 packages/cra-template/template/public/logo192.png create mode 100644 packages/cra-template/template/public/logo512.png rename packages/{react-scripts => cra-template}/template/public/manifest.json (100%) rename packages/{react-scripts => cra-template}/template/public/robots.txt (100%) rename packages/{react-scripts => cra-template}/template/src/App.css (51%) rename packages/{react-scripts => cra-template}/template/src/App.js (100%) create mode 100644 packages/cra-template/template/src/App.test.js create mode 100644 packages/cra-template/template/src/index.css rename packages/{react-scripts => cra-template}/template/src/index.js (100%) create mode 100644 packages/cra-template/template/src/logo.svg rename packages/{react-scripts => cra-template}/template/src/serviceWorker.js (97%) create mode 100644 packages/cra-template/template/src/setupTests.js delete mode 100644 packages/react-scripts/fixtures/kitchensink/.env create mode 100644 packages/react-scripts/fixtures/kitchensink/package.json delete mode 100644 packages/react-scripts/fixtures/kitchensink/src/features/webpack/assets/svg.css rename packages/react-scripts/fixtures/kitchensink/{.template.dependencies.json => template.json} (100%) create mode 100644 packages/react-scripts/fixtures/kitchensink/template/.env rename packages/react-scripts/fixtures/kitchensink/{ => template}/.env.development (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/.env.local (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/.env.production (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/.flowconfig (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/README.md (78%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/gitignore (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/integration/config.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/integration/env.test.js (97%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/integration/initDOM.js (79%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/integration/syntax.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/integration/webpack.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/jest.integration.config.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/jest.transform.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/jsconfig.json (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/public/favicon.ico (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/public/index.html (78%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/App.js (95%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/absoluteLoad.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/config/BaseUrl.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/config/BaseUrl.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/env/ExpandEnvVariables.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/env/ExpandEnvVariables.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/env/FileEnvVariables.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/env/FileEnvVariables.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/env/PublicUrl.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/env/PublicUrl.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/env/ShellEnvVariables.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/env/ShellEnvVariables.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/ArrayDestructuring.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/ArrayDestructuring.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/ArraySpread.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/ArraySpread.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/AsyncAwait.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/AsyncAwait.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/ClassProperties.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/ClassProperties.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/ComputedProperties.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/ComputedProperties.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/CustomInterpolation.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/CustomInterpolation.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/DefaultParameters.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/DefaultParameters.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/DestructuringAndAwait.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/DestructuringAndAwait.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/Generators.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/Generators.test.js (100%) create mode 100644 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/NullishCoalescing.js create mode 100644 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/NullishCoalescing.test.js rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/ObjectDestructuring.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/ObjectDestructuring.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/ObjectSpread.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/ObjectSpread.test.js (100%) create mode 100644 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/OptionalChaining.js create mode 100644 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/OptionalChaining.test.js rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/Promises.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/Promises.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/RestAndDefault.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/RestAndDefault.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/RestParameters.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/RestParameters.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/TemplateInterpolation.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/syntax/TemplateInterpolation.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/CssInclusion.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/CssInclusion.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/CssModulesInclusion.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/CssModulesInclusion.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/DynamicImport.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/DynamicImport.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/ImageInclusion.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/ImageInclusion.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/JsonInclusion.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/JsonInclusion.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/LinkedModules.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/LinkedModules.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/NoExtInclusion.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/NoExtInclusion.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/SassInclusion.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/SassInclusion.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/SassModulesInclusion.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/SassModulesInclusion.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/ScssInclusion.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/ScssInclusion.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/ScssModulesInclusion.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/ScssModulesInclusion.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/SvgComponent.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/SvgComponent.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/SvgInCss.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/SvgInCss.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/SvgInclusion.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/SvgInclusion.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/UnknownExtInclusion.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/UnknownExtInclusion.test.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/assets/aFileWithExt.unknown (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/assets/aFileWithoutExt (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/assets/abstract.json (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/assets/index.module.css (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/assets/index.module.sass (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/assets/index.module.scss (100%) create mode 100644 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/assets/logo.svg rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/assets/sass-styles.module.sass (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/assets/sass-styles.sass (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/assets/scss-styles.module.scss (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/assets/scss-styles.scss (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/assets/style.css (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/assets/style.module.css (100%) create mode 100644 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/assets/svg.css rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/features/webpack/assets/tiniest-cat.jpg (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/index.js (100%) rename packages/react-scripts/fixtures/kitchensink/{ => template}/src/subfolder/lol.js (100%) delete mode 100644 packages/react-scripts/template-typescript/public/favicon.ico delete mode 100644 packages/react-scripts/template-typescript/public/logo192.png delete mode 100644 packages/react-scripts/template-typescript/public/logo512.png delete mode 100644 packages/react-scripts/template-typescript/src/App.test.tsx delete mode 100644 packages/react-scripts/template-typescript/src/logo.svg delete mode 100644 packages/react-scripts/template/public/favicon.ico delete mode 100644 packages/react-scripts/template/public/logo192.png delete mode 100644 packages/react-scripts/template/public/logo512.png delete mode 100644 packages/react-scripts/template/src/App.test.js delete mode 100644 packages/react-scripts/template/src/index.css delete mode 100644 packages/react-scripts/template/src/logo.svg create mode 100755 tasks/e2e-typescript-unsupported-node.sh diff --git a/.alexignore b/.alexignore new file mode 100644 index 00000000000..0167c31e931 --- /dev/null +++ b/.alexignore @@ -0,0 +1,4 @@ +build + +CHANGELOG* +CODE_OF_CONDUCT.md diff --git a/.alexrc b/.alexrc new file mode 100644 index 00000000000..8cda2010b9d --- /dev/null +++ b/.alexrc @@ -0,0 +1,18 @@ +{ + "allow": [ + "attacks", + "colors", + "conservative", + "crashes", + "executed", + "executes", + "execution", + "failed", + "hook", + "host-hostess", + "hostesses-hosts", + "invalid", + "remain", + "watchman-watchwoman" + ] +} diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2308496a692..f51aebeac2d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1,2 @@ -packages/ @bugzpodder @ianschmitz @iansu @mrmckeb @petetnt +packages/ @ianschmitz @iansu @mrmckeb @petetnt docusaurus/ @amyrlam @iansu diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000000..7b94526e804 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,13 @@ +name: Build + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Install + run: yarn --no-progress --non-interactive --no-lockfile + - name: Build + run: yarn build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000000..a2e7567d1e1 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,13 @@ +name: Lint + +on: [push] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Install + run: yarn --no-progress --non-interactive --no-lockfile + - name: Alex + run: yarn alex diff --git a/.gitignore b/.gitignore index ffa71fafc6d..a3e7a11d130 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ yarn-debug.log* yarn-error.log* /.changelog .npm/ +yarn.lock diff --git a/CHANGELOG-1.x.md b/CHANGELOG-1.x.md index 5d702f3f0cd..fb1b1cc1d2c 100644 --- a/CHANGELOG-1.x.md +++ b/CHANGELOG-1.x.md @@ -1577,20 +1577,20 @@ Unhandled Promise rejections will now crash tests. You can fix them by explicitl After the regular update procedure above, add these line to `` in `public/index.html`: ```html - - - + ``` Add `