Skip to content
This repository was archived by the owner on Mar 12, 2021. It is now read-only.

Commit d4d5df6

Browse files
Justin Frevertiansumrmckebbalazsorban44eclectic-coding
authored andcommitted
Update cra fork (#2)
* Add question issue template (facebook#7423) * Add question issue template * Fix bug report template formatting * Fix bug report template formatting * Add labels to pull request template * Update deploy instructions in contributing guide (facebook#7429) * Update deploy instructions in contributing guide * Update docs publishing instructions * Remove labels from pull request template * Add explicit check for --watchAll=false (facebook#7433) Resolves facebook#7180. * Add ESLint 6 support (facebook#7415) * Update testing-library package names in README (facebook#7340) * Update ESlint Install Docs (facebook#7451) * Improve bootstrap docs when using custom SCSS (facebook#7462) * Added dependencies to bootstrap article when using custom SCSS. * Make changes to package designation and added npm install directions. * Suggest `jsx: "react"` in tsconfig (facebook#7472) * Set jsonpFunction to prevent conflicts (facebook#5951) * Resolve relative paths for preprocessor styles (facebook#5829) preprocessor will output sourceMap by default then check if sourceMaps are needed on resolve-url-loader Fixes facebook#4653 * Specify roots in Jest config (facebook#7480) * Optimise templates for Lighthouse (facebook#7482) * Use readConfigFile instead of require for tsconfig (facebook#7248) * Fix HMR in Firefox when proxy option present (facebook#7444) Resolves facebook#6720 * Adjusted deployment documentation for ZEIT Now (facebook#7488) * Adjusted deployment documentation for ZEIT Now * Fixed missing word * Update docusaurus/docs/deployment.md Co-Authored-By: Joe Haddad <timer150@gmail.com> * Bump dependencies (facebook#7473) * Support configuring coveragePathIgnorePatterns (facebook#7080) * Fix RegExp from navigateFallbackBlacklist (workbox) (facebook#7176) Exclude URLs that contains a "?" character. * Fix launch.json debugging config (facebook#6484) * Add vscodium to the editor list (facebook#7028) * Bump version of sass-loader (facebook#7496) * Add readonly modifier for css module (facebook#7497) * Remove unused dependencies in babel-preset-react-app (facebook#5818) * Remove unused dependencies in babel-preset-react-app * Re-add @babel/plugin-transform-react-display-name * Remove some dependencies again * Prepare 3.1.0 release * Publish - babel-plugin-named-asset-import@0.3.3 - babel-preset-react-app@9.0.1 - confusing-browser-globals@1.0.8 - create-react-app@3.1.0 - eslint-config-react-app@5.0.0 - react-app-polyfill@1.0.2 - react-dev-utils@9.0.2 - react-error-overlay@6.0.0 - react-scripts@3.1.0 * Add links to Spectrum in README and docs (facebook#7500) * Update bug report issue template * Don't block static files in robots.txt (facebook#7508) * Ignore "jsx-a11y/aria-role" for React components (facebook#7393) * Update docusaurus config (facebook#7499) * Update Netlify config (facebook#7527) * Fix ESLint 6 support (facebook#7513) * Remove extends restriction to fix ESLint 6 support * Attempt to resolve CI errors * Prepare 3.1.1 release * Publish - create-react-app@3.1.1 - eslint-config-react-app@5.0.1 - react-dev-utils@9.0.3 - react-error-overlay@6.0.1 - react-scripts@3.1.1 * Show logo on mobile docs (facebook#7521) * Show logo for mobile views in create-react-app.dev * Update docusaurus/website/static/css/custom.css Co-authored-by: Sabesh Kumar Rajendran <sabrajendran@paypal.com> * Add a migration step to remove static directory from robots.txt (facebook#7536) * add a migration step to remove static from robots.txt * Update CHANGELOG.md Co-Authored-By: Ian Sutherland <ian@iansutherland.ca> * docs: update Flow documentation (facebook#7550) * docs: update Flow documentation * Update adding-flow.md * Update adding-flow.md * Correct proxy usage docs (facebook#7368) * Remove trailing spaces from manifest.json (facebook#7585) * Link changelogs between major versions (facebook#7613) * Remove cleanup-after-each example (facebook#7620) cleanup is called now by default after each test if the testing framework supports the afterEach global * Adopt Contributor Covenant (facebook#7650) * Adopt Contributor Covenant * Add link to Contributor Covenant to docs site * Fix build (facebook#7662) * Disable babel-loader's cacheCompression (facebook#7633) * Update troubleshooting.md (facebook#7459) * Explicitly check that EXTEND_ESLINT is true (facebook#7538) * Update running-tests.md (facebook#7659) * Bump version of @typescript-eslint/* (facebook#7540) * Upgrade dotenv-expand to fix issues (facebook#7531) * Minor performance improvements (facebook#7587) - use ESLint cache - remove useless `watch` option in fork-ts-checker * Remove --single-quote from prettier examples (facebook#7663) * Use const instead of var in env.js (facebook#7526) * Change runtime chunk name separator from tilde to dash (facebook#7679) * Bump dependencies (facebook#7681) * Update deployment.md with another AWS example (facebook#7616) Add blog post that takes a React developer step-by-step through many features of AWS. Blog post is suitable for a beginner to follow and have a production ready workflow. * Add new logo (facebook#7704) * Prepare 3.1.2 release * 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 (facebook#7705) * Remove 'shortcut' link type before 'icon' (facebook#7707) * Guard polyfills against window possibly being undefined (facebook#7205) * Enable .eslintignore with extend flag (facebook#7562) * Add "entrypoints" key to asset manifest (facebook#7721) * Update adding flow documentation (facebook#7731) * set output.globalObject to 'this' (facebook#7742) Closes facebook#7741 * Update logic and log errors for EXTEND_ESLINT (facebook#7530) * update list of supported jest config overrides (facebook#7601) * Upgrade Webpack version (facebook#7740) * Close br tags in template README files (facebook#7668) * Fix variable name casing in fileTransform (facebook#7752) * Documentation typo fix (facebook#7757) * Fix linting error when using rest props (facebook#7754) * Add TSC_COMPILE_ON_ERROR setting (facebook#6931) * Remove switch case (facebook#7729) * docs: note that v2 to v3 migration may require deletion of node_modules (facebook#7302) * Stop hiding the column number of ESLint errors (facebook#6980) * Support setting baseUrl to root directory (facebook#7755) * Use installing package manager in README (facebook#7687) * Support production profiling with React Developer Tools (facebook#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 <ian@iansutherland.ca> * 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 (facebook#7773) * Add babel runtime version to transform-runtime plugin to reduce… (facebook#7726) * Add Babel sourcemap to resolve VSCode debugging issues (facebook#7022) * Fix process type in TypeScript template (facebook#7796) * Account for browserslist environment variables (facebook#7764) * Clarify dynamic import stage in docs (facebook#7813) * Update adding-typescript.md (facebook#7815) * Document how to use the .env file to enforce HTTPS (facebook#7821) * Fix absolute paths issue in Jest (facebook#7822) * Document correct default behavior for HOST var (facebook#7823) * Fix grammar error in troubleshooting.md (facebook#7824) * Upgrade to docusaurus 2 (facebook#7785) * chore: upgrade to docusaurus 2 * address review * Update doc publishing instructions * Revert logo in templates (facebook#7830) * feat: add additional Jest keys to whitelist (facebook#7832) * Link to React documentation for code splitting (facebook#7686) The official documentation offers a simpler way of achieving route based code splitting. * Add a note about .eslingignore files being respected (facebook#7809) * added check for typescript template and unsupported node version (facebook#7839) * added check for typescript template and unsupported node version * addressed code review feedback regarding syntax and spelling mistakes * Update getting-started.md (facebook#7841) Update the initial project structure generated by create-react-app. * Link to ASP.NET Core docs (facebook#7840) * Update readme gif links (facebook#7849) * Update adding-bootstrap.md (facebook#7853) typo fix * Move unused eslint webpack import into @remove-on-eject block (facebook#7856) * 📖 DOC: Improvement (facebook#7819) * Upgrade terser & enable parallel minification in wsl (facebook#7857) * Add a GitHub Action that runs the build script (facebook#7861) * Edit InterpolateHtmlPlugin hook (facebook#6448) (facebook#6449) * Fix notations of loopback addresses (facebook#7474) * Add Service-Worker header to checkValidServiceWorker (facebook#6753) * Add header to checkValidServiceWorker (ts) * Add header to checkValidServiceWorker * Add additional information for postcss errors (facebook#6282) (facebook#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 (facebook#7870) * Add Alex to lint documentation (facebook#7852) * Add Alex to lint documentation * Attempt to trigger GitHub Action * Configure Alex and update docs * More docs updates * Bump docusaurus 🦖 (facebook#7874) * Dark scheme overlay (facebook#7052) * Bump react (facebook#7875) * Bump styling related loaders (facebook#7876) * Remove alex precommit check (facebook#7878) * Add template support (facebook#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 (facebook#7880) * Update prerelease publishing instructions * Upgrade packages and tweak config to adapt to new config format (facebook#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 (facebook#7882) * Add yarn.lock to .gitignore (facebook#7789) * chore: Fix broken link for CRA deployment (facebook#7897) * chore: Fix broken link for e2e README (facebook#7896) * Add @testing-library to the default templates (facebook#7881) * Add numeric separator support (facebook#7817) * Update open (facebook#7910) * Mark TypeScript as an optional peer dependency (facebook#7860) * Add restoreMocks to supported jest config keys (facebook#7921) * fix seperators typo (facebook#7932) Its the little things that makes the big difference! 😁 Thanks * No spinning React logo if `prefers-reduced-motion` (facebook#7931) * Made PRs welcome badge point to contributors guide (facebook#7792) * Make JavaScript and TypeScript templates consistent (facebook#7944) * Fix CI (facebook#7951) * Add optional chaining and nullish coalescing operators support (facebook#7438) * Add tests for optional chaining and null coalescing (facebook#7952) * Upgrade jest-watch-typeahead (facebook#7956) * Fix light background in docusaurus night mode (facebook#7936) * Fix light background in docusaurus night mode Closes facebook#7930 * Rename lightBackground to gettingStartedSection * Add placeholders where old template READMEs used to be (facebook#7972) * Temporarily disable GitHub Actions (facebook#7978) * Prepare 3.3.0 beta * Bump dependencies (facebook#7986) * Support scoped templates (facebook#7991) * Add contributors section to readme (facebook#7995) * added e2e test for checking typescript template with unsupported node (facebook#7844) * Unpin dependencies in react-app-polyfill (facebook#7999) * Add scripts support to templates (facebook#7989) * Override no-unused-expressions with the typescript-eslint version (facebook#8003) Fixes issues with optional chaining * Prefix apple-touch-icon links with PUBLIC_URL. (facebook#8005) * Bump webpack-dev-server (facebook#7988) * Bump dependencies (facebook#8024) * Re-enable GitHub Actions (facebook#8029) * Update CHANGELOG * Update CODEOWNERS * Remove no-unexpected-multiline rule (facebook#8039) * Add TypeScript peer dependency to react-scripts (facebook#8038) * Update template docs (facebook#8050) * Update template docs * Update custom-templates.md * Update custom-templates.md Co-authored-by: Ian Sutherland <ian@iansutherland.ca> * 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 (facebook#8079) * Add custom-templates to docs sidebar (facebook#8077) * Fix typo in CHANGELOG.md (facebook#8080) * Remove error for @typescript-eslint/no-namespace (facebook#7803) Declare namespaces are supported by babel now, and babel will throw with a nice error message for non-declare namespaces, so this rule is unnecessary. Closes facebook#7651. * Fix CI build (facebook#8122) * Fix CSS font-face minification (facebook#8106) * Add slashes to WebSocket protocol URL (facebook#8116) * Fix typo in comment: `?.` is right, not `.?` (facebook#8124) This is just a comment fix. Actual optional chaining operator syntax is `?.`, not `.?`. * chore: update docusaurus & tweak site (facebook#8111) * [Security] Update terser webpack plugin (facebook#8102) * security: update terser webpack plugin * feat(react-scripts): allow PUBLIC_URL in develoment mode * Add current version and bin location to --info output (facebook#8168) Make the --info subcommand outuput the current version information and the location of the file being run. Our issue template tells users to provide the output of --info, so having the current version is incredibly helpful, especially since it doesn't necessarily match the globally installed version that envinfo outputs. Knowing the location helps us determine whether the running bin is globally installed or in the local node_modules. * Bump pkgUp (facebook#8163) * Bump chalk (facebook#8164) * Add link to Netlify in README * Bump internal dependencies (facebook#8176) * Bump dependencies in react-dev-utils * Bump dependencies in react-app-polyfill * Bump dependencies in create-react-app * Bump dependencies in react-error-overlay * Bump dependencies in react-scripts * Bump react * Add package-runner note to readme (facebook#8132) * Add package-runner note to readme * Add link to `yarn create` * Update PWA docs links to point to template package (facebook#8147) * Minor refactors in create-react-app (facebook#8178) - Remove templates version minimum stopgap. - Replace indexOf with more idiomatic alternatives. - Inline errorLogFilePatterns. - Alphabetize validFiles. - Simplify log file removal code. - Move unconditional console.log() call outside of isSafe. - Differentiate conflicting directories from files. - Document yarn version special case. - Inline printValidationResults. - Standardize checkAppName output on failure. - Add link for checkThatNpmCanReadCwd. Functionally the code should be exactly the same. * fix: proactively append to .gitignore during init (facebook#8028) * Bump babel-plugin-tester and fix breaking changes (facebook#8171) * feat(react-scripts): allow PUBLIC_URL in develoment mode Co-authored-by: Eric Clemmons <eric@smarterspam.com> Co-authored-by: Alex Guerra <alex@heyimalex.com> * A few small corrections * webpackdevserver quiet setting -> false Co-authored-by: Ian Sutherland <ian@iansutherland.ca> Co-authored-by: Brody McKee <mrmckeb@users.noreply.github.com> Co-authored-by: Balázs Orbán <info@balazsorban.com> Co-authored-by: Chuck <chuck@eclecticsaddlebag.com> Co-authored-by: Darius Tall <kingdaro@gmail.com> Co-authored-by: Sibiraj <20282546+sibiraj-s@users.noreply.github.com> Co-authored-by: Andrew Luca <thendrluca@gmail.com> Co-authored-by: Igor Muchychka <mucsi96@gmail.com> Co-authored-by: dominic scanlan <dscanlan@users.noreply.github.com> Co-authored-by: Jack Cross <jackjocross@gmail.com> Co-authored-by: Dmitry Lepskiy <lepsky.dmitry@gmail.com> Co-authored-by: Leo Lamprecht <mindrun@icloud.com> Co-authored-by: Joe Haddad <timer150@gmail.com> Co-authored-by: Ian Schmitz <ianschmitz@gmail.com> Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com> Co-authored-by: Andrea Puddu <me@nuragic.io> Co-authored-by: Ryan Marsh <ryan@stochastic.dev> Co-authored-by: Leonardo Dino <leonardodino@users.noreply.github.com> Co-authored-by: ZHAO Jinxiang <xiaoxiangmoe@gmail.com> Co-authored-by: Tomáš Szabo <tomas.szabo@deftomat.com> Co-authored-by: Sabesh Rajendran <sabeshkumar@hotmail.com> Co-authored-by: Jon Stevens <latchkey@gmail.com> Co-authored-by: Federico Zivolo <5382443+FezVrasta@users.noreply.github.com> Co-authored-by: szabi <szabolcs.szilagyi@planorama.com> Co-authored-by: Emil Pålsson <emil@emilpalsson.se> Co-authored-by: iHmD <6934421+iHmD@users.noreply.github.com> Co-authored-by: Jerome Leclanche <jerome@leclan.ch> Co-authored-by: Clément Prévost <prevostclement@gmail.com> Co-authored-by: Brock Wills <brockwills@gmail.com> Co-authored-by: Weyert de Boer <weyert@gmail.com> Co-authored-by: pierreneter <pierreneter@gmail.com> Co-authored-by: Dominic Tobias <dominic.tobias@gmail.com> Co-authored-by: brlewis <brlewis@ourdoings.com> Co-authored-by: Jannis Hell <Primajin@users.noreply.github.com> Co-authored-by: Doug Ross <doug@onvelocity.com> Co-authored-by: Andrew <andrew.bestbier@gmail.com> Co-authored-by: Samuel Meuli <me@samuelmeuli.com> Co-authored-by: Lewis Llobera <billobera@gmail.com> Co-authored-by: Jake Moxey <jakemoxey@gmail.com> Co-authored-by: Iguchi Tomokatsu <tomo14916253@gmail.com> Co-authored-by: Laurin Quast <laurinquast@googlemail.com> Co-authored-by: neilbryson <neilbryson@users.noreply.github.com> Co-authored-by: Reece Dunham <me@rdil.rocks> Co-authored-by: Rakan Nimer <rakannimer@gmail.com> Co-authored-by: Tomer Cohen <tomer@users.noreply.github.com> Co-authored-by: Alexandr Tovmach <alexandrtovmach@gmail.com> Co-authored-by: Kyle Bebak <kylebebak@gmail.com> Co-authored-by: André Lins <andrelucas01@hotmail.com> Co-authored-by: Kim Persson <kimpers@users.noreply.github.com> Co-authored-by: Justin Grant <justingrant@users.noreply.github.com> Co-authored-by: Robert van Steen <hello@rovansteen.nl> Co-authored-by: Ashrith Reddy <ashrithreddi81@gmail.com> Co-authored-by: Jacob M-G Evans <27247160+JacobMGEvans@users.noreply.github.com> Co-authored-by: Damian Senn <damian.senn@gmail.com> Co-authored-by: Róbert FUSZENECKER <fuszenecker@users.noreply.github.com> Co-authored-by: May <aprilandjan@users.noreply.github.com> Co-authored-by: Orta <orta.therox+github@gmail.com> Co-authored-by: Tomáš Hübelbauer <tomas@hubelbauer.net> Co-authored-by: Jesse Jackson <jsejcksn@users.noreply.github.com> Co-authored-by: Jake Boone <jakeboone02@gmail.com> Co-authored-by: Endi <endiliey@gmail.com> Co-authored-by: Hugo David-Boyet <hugo.david.boyet@gmail.com> Co-authored-by: Sean Lafferty <sixers2329@gmail.com> Co-authored-by: Ali Waseem <waseema393@gmail.com> Co-authored-by: reactjser <54932880+reactjser@users.noreply.github.com> Co-authored-by: Daniel Lo Nigro <daniel@dan.cx> Co-authored-by: Chun <11034578+cchanxzy@users.noreply.github.com> Co-authored-by: Xuhao <xuhao@rubyfans.com> Co-authored-by: Sean Baines <mrseanbaines@gmail.com> Co-authored-by: Abdul Wahab ⚡️ <waahab35@gmail.com> Co-authored-by: Guillaume Hertault <guillaumus@gmail.com> Co-authored-by: Wataru Ashihara <wataash@users.noreply.github.com> Co-authored-by: darthmaim <github@darthmaim.de> Co-authored-by: Joshua Robinson <1865690+buildbreakdo@users.noreply.github.com> Co-authored-by: Andreas Cederström <andriijas@users.noreply.github.com> Co-authored-by: Fabiano Brito <fabianopbrito@gmail.com> Co-authored-by: Kanitkorn Sujautra <lukyth@users.noreply.github.com> Co-authored-by: Havit Rovik <surat@havit.web.id> Co-authored-by: Tharun Rajendran <rajendrantharun@live.com> Co-authored-by: Dylan Staley <88163+dstaley@users.noreply.github.com> Co-authored-by: Donavon West <github@donavon.com> Co-authored-by: James George <jamesgeorge998001@gmail.com> Co-authored-by: RJ <22164266+suprj@users.noreply.github.com> Co-authored-by: Renato Augusto Gama dos Santos <renato_0603@hotmail.com> Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com> Co-authored-by: Alex Guerra <alex@heyimalex.com> Co-authored-by: Klas Björkqvist <klas.bjorkqvist@gmail.com> Co-authored-by: Max Davidson <davidsonmax@gmail.com> Co-authored-by: Ben Blank <ben.blank+github@gmail.com> Co-authored-by: Mike Caulley <mikecaulley@users.noreply.github.com> Co-authored-by: Trontor <Trontor@users.noreply.github.com> Co-authored-by: Sean Zhu <interestinglythere@gmail.com> Co-authored-by: Simon Donaldson <simondonaldson@gmail.com> Co-authored-by: Wojciech Zieliński <github@rpix.pl> Co-authored-by: Vadzim <v@vadzim.info> Co-authored-by: Eric Clemmons <eric@smarterspam.com> Co-authored-by: Jerome De Leon <32805276+JeromeDeLeon@users.noreply.github.com> Co-authored-by: Peet Goddard <github@peet.me.uk> Co-authored-by: Brian Muenzenmeyer <brian.muenzenmeyer@gmail.com>
1 parent 9009bfa commit d4d5df6

File tree

307 files changed

+13269
-8001
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

307 files changed

+13269
-8001
lines changed

.alexignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
build
2+
3+
CHANGELOG*
4+
CODE_OF_CONDUCT.md

.alexrc

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"allow": [
3+
"attacks",
4+
"colors",
5+
"conservative",
6+
"crashes",
7+
"executed",
8+
"executes",
9+
"execution",
10+
"failed",
11+
"hook",
12+
"host-hostess",
13+
"hostesses-hosts",
14+
"invalid",
15+
"remain",
16+
"watchman-watchwoman"
17+
]
18+
}

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
packages/ @amyrlam @bugzpodder @gaearon @ianschmitz @iansu @mrmckeb @petetnt @timer
1+
packages/ @ianschmitz @iansu @mrmckeb @petetnt
22
docusaurus/ @amyrlam @iansu

.github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
labels: 'issue: bug'
4+
labels: 'issue: bug report, needs triage'
55
---
66

77
<!--

.github/ISSUE_TEMPLATE/proposal.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Proposal
33
about: Suggest an idea for improving Create React App
4-
labels: 'issue: proposal'
4+
labels: 'issue: proposal, needs triage'
55
---
66

77
### Is your proposal related to a problem?

.github/ISSUE_TEMPLATE/question.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Question
3+
about: Get help with Create React App
4+
labels: 'needs triage'
5+
---
6+
7+
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
8+
9+
If you're looking for general information on using React, the React docs have a list of resources: https://reactjs.org/community/support.html
10+
11+
If you've discovered a bug or would like to propose a change please use one of the other issue templates.
12+
13+
Thanks!

.github/workflows/build.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Build
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- name: Install
11+
run: yarn --no-progress --non-interactive --no-lockfile
12+
- name: Build
13+
run: yarn build

.github/workflows/lint.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Lint
2+
3+
on: [push]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- name: Install
11+
run: yarn --no-progress --non-interactive --no-lockfile
12+
- name: Alex
13+
run: yarn alex

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ yarn-debug.log*
1212
yarn-error.log*
1313
/.changelog
1414
.npm/
15+
yarn.lock

CHANGELOG-1.x.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## 2.0.3 and Newer Versions
22

3-
**Please refer to [CHANGELOG.md](./CHANGELOG.md) for the newer versions.**
3+
**Please refer to [CHANGELOG-2.x.md](./CHANGELOG-2.x.md) for the 2.x range, and [CHANGELOG.md](CHANGELOG.md) for the newer versions.**
44

55
## 1.1.5 (August 24, 2018)
66

@@ -1577,20 +1577,20 @@ Unhandled Promise rejections will now crash tests. You can fix them by explicitl
15771577
After the regular update procedure above, add these line to `<head>` in `public/index.html`:
15781578

15791579
```html
1580-
<meta name="theme-color" content="#000000">
1581-
<!--
1580+
<meta name="theme-color" content="#000000" />
1581+
<!--
15821582
manifest.json provides metadata used when your web app is added to the
15831583
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
15841584
-->
1585-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
1585+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
15861586
```
15871587

15881588
Add `<noscript>` to `<body>` in `public/index.html`:
15891589

15901590
```html
1591-
<noscript>
1592-
You need to enable JavaScript to run this app.
1593-
</noscript>
1591+
<noscript>
1592+
You need to enable JavaScript to run this app.
1593+
</noscript>
15941594
```
15951595

15961596
Then create a file called `public/manifest.json` that looks like this:

CHANGELOG-2.x.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.0.0 and Newer Versions
2+
3+
**Please refer to [CHANGELOG.md](./CHANGELOG.md) for the newer versions.**
4+
15
## 2.1.8 (March 7, 2019)
26

37
v2.1.8 is a maintenance release that reapplies the TypeScript speed improvements ([#6406](https://github.com/facebook/create-react-app/pull/6406)) in a new major version of `react-dev-utils`.

CHANGELOG.md

+651
Large diffs are not rendered by default.

CODE_OF_CONDUCT.md

+74-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,76 @@
11
# Code of Conduct
22

3-
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please [read the full text](https://code.fb.com/codeofconduct/) so that you can understand what actions will and will not be tolerated.
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to make participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies within all project spaces, and it also applies when
49+
an individual is representing the project or its community in public spaces.
50+
Examples of representing a project or community include using an official
51+
project e-mail address, posting via an official social media account, or acting
52+
as an appointed representative at an online or offline event. Representation of
53+
a project may be further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at <opensource-conduct@fb.com>. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

+22-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Loving Create React App and want to get involved? Thanks! There are plenty of ways you can help.
44

5-
Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.
5+
Please take a moment to review this document in order to make the contribution process straightforward and effective for everyone involved.
66

77
Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue or assessing patches and features.
88

@@ -15,23 +15,27 @@ Here are a few examples of them in action.
1515

1616
### Convention
1717

18+
<!--alex disable easy-->
19+
1820
Instead of letting the user specify the entry filename, we always assume it to be `src/index.js`. Rather than letting the user specify the output bundle name, we generate it, but make sure to include the content hash in it. Whenever possible, we want to leverage convention to make good choices for the user, especially in cases where it’s easy to misconfigure something.
1921

2022
### Heuristics
2123

2224
Normally, `npm start` runs on port `3000`, and this is not explicitly configurable. However, some environments like cloud IDEs want the programs to run on a specific port to serve their output. We want to play well with different environments, so Create React App reads `PORT` environment variable and prefers it when it is specified. The trick is that we know cloud IDEs already specify it automatically, so there is no need for the user to do anything. Create React App relies on heuristics to do the right thing depending on environment.
2325

26+
<!--alex disable just-->
27+
2428
Another example of this is how `npm test` normally launches the watcher, but if the `CI` environment variable is set, it will run tests once. We know that popular CI environments set this variable, so the user doesn’t need to do anything. It just works.
2529

2630
### Interactivity
2731

28-
We prefer to add interactivity to the command line interface rather than add configuration flags. For example, `npm start` will attempt to run with port `3000` by default, but it may be busy. Many other tools just fail in this case and ask that you pass a different port, but Create React App will display a prompt asking if you’d like to run the app on the next available port.
32+
We prefer to add interactivity to the command line interface rather than add configuration flags. For example, `npm start` will attempt to run with port `3000` by default, but it may be busy. Many other tools fail in this case and ask that you pass a different port, but Create React App will display a prompt asking if you’d like to run the app on the next available port.
2933

3034
Another example of interactivity is `npm test` watcher interface. Instead of asking people to pass command line flags for switching between test runner modes or search patterns, we print a hint with keys that you can press during the test session to instruct watcher what to do. Jest supports both flags and interactive CLI but Create React App prefers long-running sessions to keep user immersed in the flow over short-running sessions with different flags.
3135

3236
### Breaking the Rules
3337

34-
No rules are perfect. Sometimes we may introduce flags or configuration if we believe the value is high enough to justify the mental cost. For example, we know that apps may be hosted paths different from the root, and we need to support this use case. However, we still try to fall back to heuristics when possible. In this example, we ask that you specify `homepage` in `package.json`, and infer the correct path based on it. We also nudge the user to fill out the `homepage` after the build, so the user becomes aware that the feature exists.
38+
No rules are perfect. Sometimes we may introduce flags or configuration if we believe the value is high enough to justify the complexity. For example, we know that apps may be hosted paths different from the root, and we need to support this use case. However, we still try to fall back to heuristics when possible. In this example, we ask that you specify `homepage` in `package.json`, and infer the correct path based on it. We also nudge the user to fill out the `homepage` after the build, so the user becomes aware that the feature exists.
3539

3640
## Submitting a Pull Request
3741

@@ -76,7 +80,7 @@ This package is enabled by default for all `create-react-app` scaffolded applica
7680

7781
#### [react-dev-utils](https://github.com/facebook/create-react-app/tree/master/packages/react-dev-utils)
7882

79-
This package contains utilities used for `react-scripts` and sister packages.<br>
83+
This package contains utilities used for `react-scripts` and sibling packages.<br>
8084
Its main purpose is to conceal code which the user shouldn't be burdened with upon ejecting.
8185

8286
#### [react-scripts](https://github.com/facebook/create-react-app/tree/master/packages/react-scripts)
@@ -90,7 +94,7 @@ All functionality must be retained (and configuration given to the user) if they
9094

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

93-
Once it is done, you can modify any file locally and run `yarn start`, `yarn test` or `yarn build` just like in a generated project.
97+
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.
9498

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

@@ -105,15 +109,15 @@ and then run `yarn start` or `yarn build`.
105109

106110
**TL;DR** use the command `yarn e2e:docker` to run unit and e2e tests.
107111

108-
More detailed information are in the dedicated [README](/packages/react-scripts/fixtures/kitchensink/README.md).
112+
More detailed information are in the dedicated [README](/test/README.md).
109113

110114
### CI testing with private packages
111115

112116
**create-react-app** relies on main registry to fetch all dependencies, but, if you are in the need to usage of custom private packages that need to be fetch while running E2E test you might need a different configuration.
113117

114118
#### Customizing E2E registry configuration
115119

116-
We use [verdaccio](https://github.com/verdaccio/verdaccio) to emulate packages publishing in a registry using a default configuration. You might modify the current behaviour just editing the file `task/verdaccio.yaml`.
120+
We use [verdaccio](https://github.com/verdaccio/verdaccio) to emulate packages publishing in a registry using a default configuration. You might modify the current behaviour by editing the file `task/verdaccio.yaml`.
117121

118122
For more information about the configuration check out the [Verdaccio documentation](https://verdaccio.org/docs/en/configuration).
119123

@@ -135,8 +139,8 @@ By default git would use `CRLF` line endings which would cause the scripts to fa
135139

136140
## Cutting a Release
137141

138-
1. Tag all merged pull requests that go into the release with the relevant milestone. Each merged PR should also be labeled with one of the [labels](https://github.com/facebook/create-react-app/labels) named `tag: ...` to indicate what kind of change it is.
139-
2. Close the milestone.
142+
1. Tag all merged pull requests that go into the release with the relevant milestone. Each merged PR should also be labeled with one of the [labels](https://github.com/facebook/create-react-app/labels) named `tag: ...` to indicate what kind of change it is. **Make sure all breaking changes are correctly labelled with `tag: breaking change`.**
143+
2. Close the milestone and create a new one for the next release.
140144
3. In most releases, only `react-scripts` needs to be released. If you don’t have any changes to the `packages/create-react-app` folder, you don’t need to bump its version or publish it (the publish script will publish only changed packages).
141145
4. Note that files in `packages/create-react-app` should be modified with extreme caution. Since it’s a global CLI, any version of `create-react-app` (global CLI) including very old ones should work with the latest version of `react-scripts`.
142146
5. Run `yarn compile:lockfile`. The command will generate an updated lockfile in `packages/create-react-app` that should be committed.
@@ -148,11 +152,18 @@ By default git would use `CRLF` line endings which would cause the scripts to fa
148152
- Maybe add some newlines here and there. Preview the result on GitHub to get a feel for it. Changelog generator output is a bit too terse for my taste, so try to make it visually pleasing and well grouped.
149153

150154
7. Make sure to include “Migrating from ...” instructions for the previous release. Often you can copy and paste them.
151-
8. Run `npm run publish`. (It has to be `npm run publish` exactly, not just `npm publish` or `yarn publish`.)
155+
8. Run `npm run publish`. (It has to be `npm run publish` exactly, not `npm publish` or `yarn publish`.)
152156
9. Wait for a long time, and it will get published. Don’t worry that it’s stuck. In the end the publish script will prompt for versions before publishing the packages.
153157
10. After publishing, create a GitHub Release with the same text as the changelog entry. See previous Releases for inspiration.
154158

155-
Make sure to test the released version! If you want to be extra careful, you can publish a prerelease by running `npm run publish -- prepatch --canary --preid next --dist-tag next --npm-client npm --force-publish` instead of `npm run publish`.
159+
Make sure to test the released version! If you want to be extra careful, you can publish a prerelease by running `npm run publish -- --canary --exact --preid next --dist-tag=next --force-publish=* minor` instead of `npm run publish`.
160+
161+
## Releasing the Docs
162+
163+
1. Go to the `docusaurus/website` directory
164+
2. Run `yarn build`
165+
3. You'll need an [access token for the GitHub API](https://help.github.com/articles/creating-an-access-token-for-command-line-use/). Save it to this environment variable: `export GITHUB_AUTH="..."`
166+
4. Run `GIT_USER=<GITHUB_USERNAME> CURRENT_BRANCH=master USE_SSH=true yarn deploy`
156167

157168
---
158169

0 commit comments

Comments
 (0)