Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to create-react-app v3.2.0 tag #5

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
6560858
Remove trailing spaces from manifest.json (#7585)
xiaoxiangmoe Aug 23, 2019
567787b
Link changelogs between major versions (#7613)
emilpalsson Aug 30, 2019
6dec056
Remove cleanup-after-each example (#7620)
iHmD Sep 2, 2019
78fb4cf
Adopt Contributor Covenant (#7650)
iansu Sep 6, 2019
1f46136
Fix build (#7662)
ianschmitz Sep 9, 2019
bb31710
Disable babel-loader's cacheCompression (#7633)
jleclanche Sep 9, 2019
aafc7ff
Update troubleshooting.md (#7459)
prevostc Sep 9, 2019
c9b9504
Explicitly check that EXTEND_ESLINT is true (#7538)
BrockWills Sep 9, 2019
0f9e350
Update running-tests.md (#7659)
weyert Sep 9, 2019
b3f8ef2
Bump version of @typescript-eslint/* (#7540)
pierreneter Sep 11, 2019
edb3411
Upgrade dotenv-expand to fix issues (#7531)
sekoyo Sep 11, 2019
71c4d11
Minor performance improvements (#7587)
deftomat Sep 11, 2019
74eb65a
Remove --single-quote from prettier examples (#7663)
brlewis Sep 11, 2019
8b7b819
Use const instead of var in env.js (#7526)
Primajin Sep 13, 2019
4d533d4
Change runtime chunk name separator from tilde to dash (#7679)
javadoug Sep 13, 2019
7ac8150
Bump dependencies (#7681)
ianschmitz Sep 14, 2019
a1afaa6
Update deployment.md with another AWS example (#7616)
AndrewBestbier Sep 17, 2019
ff15a08
Add new logo (#7704)
iansu Sep 19, 2019
e0719e4
Prepare 3.1.2 release
iansu Sep 19, 2019
a825e8f
Publish
iansu Sep 19, 2019
0dc69ec
Update runtime chunk name separator in docs (#7705)
samuelmeuli Sep 19, 2019
05f7924
Remove 'shortcut' link type before 'icon' (#7707)
lewislbr Sep 20, 2019
b1e6155
Guard polyfills against window possibly being undefined (#7205)
jxom Sep 24, 2019
6f5221c
Enable .eslintignore with extend flag (#7562)
igtm Sep 24, 2019
93150c5
Add "entrypoints" key to asset manifest (#7721)
samuelmeuli Sep 24, 2019
0d1775e
Update adding flow documentation (#7731)
FezVrasta Sep 25, 2019
42ee721
set output.globalObject to 'this' (#7742)
Sep 26, 2019
6533a6d
Update logic and log errors for EXTEND_ESLINT (#7530)
n1ru4l Sep 27, 2019
e624b75
update list of supported jest config overrides (#7601)
neilbryson Sep 27, 2019
4a3718b
Upgrade Webpack version (#7740)
RDIL Sep 30, 2019
c0d73ba
Close br tags in template README files (#7668)
rakannimer Sep 30, 2019
fefd716
Fix variable name casing in fileTransform (#7752)
lewislbr Sep 30, 2019
a10223d
Documentation typo fix (#7757)
tomer Sep 30, 2019
6f7b371
Fix linting error when using rest props (#7754)
alexandrtovmach Oct 1, 2019
71946b1
Add TSC_COMPILE_ON_ERROR setting (#6931)
kylebebak Oct 1, 2019
f36d61a
Remove switch case (#7729)
andrelmlins Oct 1, 2019
6980616
docs: note that v2 to v3 migration may require deletion of node_modul…
kimpers Oct 1, 2019
85aac9b
Stop hiding the column number of ESLint errors (#6980)
justingrant Oct 1, 2019
7e2b6b1
Support setting baseUrl to root directory (#7755)
robertvansteen Oct 2, 2019
6b8fa00
Use installing package manager in README (#7687)
ashr81 Oct 2, 2019
88cf8cd
Support production profiling with React Developer Tools (#7737)
JacobMGEvans Oct 3, 2019
6a74342
Prepare 3.2.0 release
iansu Oct 3, 2019
7fae307
Publish
iansu Oct 3, 2019
205caea
Allow to extend webpack and webpackDevServer config from your project
marcopeg Oct 15, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG-1.x.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 2.0.3 and Newer Versions

**Please refer to [CHANGELOG.md](./CHANGELOG.md) for the newer versions.**
**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.**

## 1.1.5 (August 24, 2018)

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG-2.x.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.0 and Newer Versions

**Please refer to [CHANGELOG.md](./CHANGELOG.md) for the newer versions.**

## 2.1.8 (March 7, 2019)

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`.
Expand Down
171 changes: 171 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,172 @@
## 3.2.0 (2019-10-03)

v3.2.0 is a minor release that adds support for production profiling and ignoring TypeScript type errors to make migrating JavaScript projects to TypeScript easier. It also includes other minor bug fixes and documentation updates.

#### :rocket: New Feature

- `react-scripts`
- [#7737](https://github.com/facebook/create-react-app/pull/7737) Support production profiling with React Developer Tools ([@JacobMGEvans](https://github.com/JacobMGEvans))
- `react-dev-utils`, `react-scripts`
- [#6931](https://github.com/facebook/create-react-app/pull/6931) Adds TSC_COMPILE_ON_ERROR env var... ([@kylebebak](https://github.com/kylebebak))

#### :bug: Bug Fix

- `react-scripts`
- [#7754](https://github.com/facebook/create-react-app/pull/7754) Fix linting error when using rest props ([@alexandrtovmach](https://github.com/alexandrtovmach))
- `react-app-polyfill`
- [#7205](https://github.com/facebook/create-react-app/pull/7205) Guard polyfills against window possibly being undefined ([@jxom](https://github.com/jxom))

#### :nail_care: Enhancement

- `react-scripts`
- [#7687](https://github.com/facebook/create-react-app/pull/7687) Use installing package manager in README ([@ashr81](https://github.com/ashr81))
- [#7755](https://github.com/facebook/create-react-app/pull/7755) Support setting baseUrl to root directory ([@rovansteen](https://github.com/rovansteen))
- [#7530](https://github.com/facebook/create-react-app/pull/7530) only load eslint config when EXTEND_ESLINT environment variable is specified/ do not swallow eslint config errors ([@n1ru4l](https://github.com/n1ru4l))
- [#7742](https://github.com/facebook/create-react-app/pull/7742) set output.globalObject to 'this' ([@kentcdodds](https://github.com/kentcdodds))
- [#7721](https://github.com/facebook/create-react-app/pull/7721) Add "entrypoints" key to asset manifest ([@samuelmeuli](https://github.com/samuelmeuli))
- [#7562](https://github.com/facebook/create-react-app/pull/7562) enable .eslintignore again ([@igtm](https://github.com/igtm))
- `react-dev-utils`
- [#6980](https://github.com/facebook/create-react-app/pull/6980) Stop hiding the column number of ESLint errors ([@justingrant](https://github.com/justingrant))

#### :memo: Documentation

- [#7302](https://github.com/facebook/create-react-app/pull/7302) docs: note that 2 to 3 migration may require deletion of node_modules ([@kimpers](https://github.com/kimpers))
- [#7757](https://github.com/facebook/create-react-app/pull/7757) Documentation typo fix: accessbile→accessible ([@tomer](https://github.com/tomer))
- [#7601](https://github.com/facebook/create-react-app/pull/7601) [Documentation] Updated list of supported Jest config overrides ([@neilbryson](https://github.com/neilbryson))
- [#7705](https://github.com/facebook/create-react-app/pull/7705) Update runtime chunk name separator in docs ([@samuelmeuli](https://github.com/samuelmeuli))

#### :house: Internal

- `react-scripts`
- [#7752](https://github.com/facebook/create-react-app/pull/7752) Fix wrong letter casing ([@lewislbr](https://github.com/lewislbr))
- `react-dev-utils`, `react-scripts`
- [#7707](https://github.com/facebook/create-react-app/pull/7707) Remove 'shortcut' link type before 'icon' ([@lewislbr](https://github.com/lewislbr))

#### :hammer: Underlying Tools

- `react-scripts`
- [#7729](https://github.com/facebook/create-react-app/pull/7729) Remove switch case ([@andrelmlins](https://github.com/andrelmlins))

#### Committers: 19

- Alexandr Tovmach ([@alexandrtovmach](https://github.com/alexandrtovmach))
- André Lins ([@andrelmlins](https://github.com/andrelmlins))
- Ashrith Reddy ([@ashr81](https://github.com/ashr81))
- Federico Zivolo ([@FezVrasta](https://github.com/FezVrasta))
- Iguchi Tomokatsu ([@igtm](https://github.com/igtm))
- Jacob M-G Evans ([@JacobMGEvans](https://github.com/JacobMGEvans))
- Jake Moxey ([@jxom](https://github.com/jxom))
- Justin Grant ([@justingrant](https://github.com/justingrant))
- Kent C. Dodds ([@kentcdodds](https://github.com/kentcdodds))
- Kim Persson ([@kimpers](https://github.com/kimpers))
- Kyle Bebak ([@kylebebak](https://github.com/kylebebak))
- Laurin Quast ([@n1ru4l](https://github.com/n1ru4l))
- Lewis Llobera ([@lewislbr](https://github.com/lewislbr))
- Rakan Nimer ([@rakannimer](https://github.com/rakannimer))
- Reece Dunham ([@RDIL](https://github.com/RDIL))
- Robert van Steen ([@rovansteen](https://github.com/rovansteen))
- Samuel Meuli ([@samuelmeuli](https://github.com/samuelmeuli))
- Tomer Cohen ([@tomer](https://github.com/tomer))
- neilbryson ([@neilbryson](https://github.com/neilbryson))

### Migrating from 3.1.2 to 3.2.0

Inside any created project that has not been ejected, run:

```sh
npm install --save --save-exact [email protected]
```

or

```sh
yarn add --exact [email protected]
```

## 3.1.2 (2019-09-19)

v3.1.2 is a maintenance release that includes minor bug fixes and documentation updates.

#### :bug: Bug Fix

- `react-scripts`
- [#7679](https://github.com/facebook/create-react-app/pull/7679) Change runtime chunk name separator from tilde to dash ([@javadoug](https://github.com/javadoug))
- [#7538](https://github.com/facebook/create-react-app/pull/7538) Explicitly checking that EXTEND_ESLINT is true ([@BrockWills](https://github.com/BrockWills))
- `babel-preset-react-app`, `react-error-overlay`, `react-scripts`
- [#7662](https://github.com/facebook/create-react-app/pull/7662) Fix build ([@ianschmitz](https://github.com/ianschmitz))

#### :nail_care: Enhancement

- `react-scripts`
- [#7704](https://github.com/facebook/create-react-app/pull/7704) Add new logo ([@iansu](https://github.com/iansu))
- [#7587](https://github.com/facebook/create-react-app/pull/7587) Minor performance improvements ([@deftomat](https://github.com/deftomat))
- [#7633](https://github.com/facebook/create-react-app/pull/7633) Disable babel-loader's cacheCompression ([@jleclanche](https://github.com/jleclanche))

#### :memo: Documentation

- [#7616](https://github.com/facebook/create-react-app/pull/7616) Update deployment.md with another AWS example ([@AndrewBestbier](https://github.com/AndrewBestbier))
- [#7663](https://github.com/facebook/create-react-app/pull/7663) Remove --single-quote from prettier examples ([@brlewis](https://github.com/brlewis))
- [#7659](https://github.com/facebook/create-react-app/pull/7659) Update running-tests.md ([@weyert](https://github.com/weyert))
- [#7459](https://github.com/facebook/create-react-app/pull/7459) Update troubleshooting.md ([@prevostc](https://github.com/prevostc))
- [#7650](https://github.com/facebook/create-react-app/pull/7650) Adopt Contributor Covenant ([@iansu](https://github.com/iansu))
- [#7620](https://github.com/facebook/create-react-app/pull/7620) cleanup-after-each is no longer necessary! ([@iHmD](https://github.com/iHmD))
- [#7613](https://github.com/facebook/create-react-app/pull/7613) Fix seams between changelog majors ([@emilpalsson](https://github.com/emilpalsson))
- [#7368](https://github.com/facebook/create-react-app/pull/7368) Correcting proxy sample ([@szabolcs-szilagyi](https://github.com/szabolcs-szilagyi))
- [#7536](https://github.com/facebook/create-react-app/pull/7536) add a migration step to remove static from robots.txt ([@lookfirst](https://github.com/lookfirst))
- [#7521](https://github.com/facebook/create-react-app/pull/7521) Show logo for mobile views in create-react-app.dev ([@GrooChu](https://github.com/GrooChu))

#### :house: Internal

- `react-scripts`
- [#7526](https://github.com/facebook/create-react-app/pull/7526) The variable dotenvFiles is never reassigned - use const instead ([@Primajin](https://github.com/Primajin))
- [#7585](https://github.com/facebook/create-react-app/pull/7585) remove trailing spaces ([@xiaoxiangmoe](https://github.com/xiaoxiangmoe))

#### :hammer: Underlying Tools

- `babel-plugin-named-asset-import`, `confusing-browser-globals`, `react-app-polyfill`, `react-dev-utils`, `react-error-overlay`, `react-scripts`
- [#7681](https://github.com/facebook/create-react-app/pull/7681) Bump dependencies ([@ianschmitz](https://github.com/ianschmitz))
- `react-scripts`
- [#7531](https://github.com/facebook/create-react-app/pull/7531) Upgrade dotenv-expand to fix issues ([@DominicTobias](https://github.com/DominicTobias))
- `eslint-config-react-app`, `react-scripts`
- [#7540](https://github.com/facebook/create-react-app/pull/7540) Bump version of @typescript-eslint/\* ([@pierreneter](https://github.com/pierreneter))

#### Committers: 20

- Andrew ([@AndrewBestbier](https://github.com/AndrewBestbier))
- Brock Wills ([@BrockWills](https://github.com/BrockWills))
- Clément Prévost ([@prevostc](https://github.com/prevostc))
- Dominic Tobias ([@DominicTobias](https://github.com/DominicTobias))
- Doug Ross ([@javadoug](https://github.com/javadoug))
- Emil Pålsson ([@emilpalsson](https://github.com/emilpalsson))
- Federico Zivolo ([@FezVrasta](https://github.com/FezVrasta))
- Ian Schmitz ([@ianschmitz](https://github.com/ianschmitz))
- Ian Sutherland ([@iansu](https://github.com/iansu))
- Jannis Hell ([@Primajin](https://github.com/Primajin))
- Jerome Leclanche ([@jleclanche](https://github.com/jleclanche))
- Jon Stevens ([@lookfirst](https://github.com/lookfirst))
- Sabesh Rajendran ([@GrooChu](https://github.com/GrooChu))
- Tomáš Szabo ([@deftomat](https://github.com/deftomat))
- Weyert de Boer ([@weyert](https://github.com/weyert))
- ZHAO Jinxiang ([@xiaoxiangmoe](https://github.com/xiaoxiangmoe))
- [@brlewis](https://github.com/brlewis)
- [@iHmD](https://github.com/iHmD)
- [@pierreneter](https://github.com/pierreneter)
- szabi ([@szabolcs-szilagyi](https://github.com/szabolcs-szilagyi))

### Migrating from 3.1.1 to 3.1.2

Inside any created project that has not been ejected, run:

```sh
npm install --save --save-exact [email protected]
```

or

```sh
yarn add --exact [email protected]
```

## 3.1.1 (2019-08-13)

v3.1.1 is a maintenance release that includes minor bug fixes and documentation updates.
Expand Down Expand Up @@ -329,6 +498,8 @@ or
yarn add --exact [email protected]
```

**NOTE: You may need to delete your `node_modules` folder and reinstall your dependencies by running `yarn` (or `npm install`) if you encounter errors after upgrading.**

If you previously ejected but now want to upgrade, one common solution is to find the commits where you ejected (and any subsequent commits changing the configuration), revert them, upgrade, and later optionally eject again. It’s also possible that the feature you ejected for is now supported out of the box.

## Breaking Changes
Expand Down
75 changes: 74 additions & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,76 @@
# Code of Conduct

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.
## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to make participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery and unwelcome sexual attention or
advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies within all project spaces, and it also applies when
an individual is representing the project or its community in public spaces.
Examples of representing a project or community include using an official
project e-mail address, posting via an official social media account, or acting
as an appointed representative at an online or offline event. Representation of
a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at <[email protected]>. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# About This Fork

> This fork exists to bring back the basic functionality of `react-app-rewired` in
> a simple and non intrusive way.
> I do my best to keep this fork up-to-date and to inject as little custom code as
> possible.

Hey there, this fork is maintained to provide you with `react-scripts-rewired`
which is the 2.x way of extending `create-react-app`.

If you are familiar with `react-app-rewired` is basically the same API working on
Webpack4 and create-react-app 2.x.

[read the full documentation](./packages/react-scripts/README.md)

---


# Create React App [![Build Status](https://dev.azure.com/facebook/create-react-app/_apis/build/status/facebook.create-react-app?branchName=master)](https://dev.azure.com/facebook/create-react-app/_build/latest?definitionId=1&branchName=master) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-green.svg)](https://github.com/facebook/create-react-app/pulls)


Create React apps with no build configuration.

- [Creating an App](#creating-an-app) – How to create a new app.
Expand Down
2 changes: 1 addition & 1 deletion docusaurus/docs/adding-flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ make sure to add the following line to your `.flowconfig` to make Flow aware of

```diff
[options]
+ module.name_mapper='^\(.*\)$' -> '<PROJECT_ROOT>/src/\1'
+ module.name_mapper='^\([^\.].*\)$' -> '<PROJECT_ROOT>/src/\1'
```

To learn more about Flow, check out [its documentation](https://flow.org/).
2 changes: 1 addition & 1 deletion docusaurus/docs/adding-images-fonts-and-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ const App = () => (

This is handy if you don't want to load SVG as a separate file. Don't forget the curly braces in the import! The `ReactComponent` import name is special and tells Create React App that you want a React component that renders an SVG, rather than its filename.

> **Tip:** The imported SVG React Component accepts a `title` prop along with other props that a `svg` element accepts. Use this prop to add an accessbile title to your svg component.
> **Tip:** The imported SVG React Component accepts a `title` prop along with other props that a `svg` element accepts. Use this prop to add an accessible title to your svg component.
2 changes: 1 addition & 1 deletion docusaurus/docs/adding-typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ yarn add typescript @types/node @types/react @types/react-dom @types/jest

Next, rename any file to be a TypeScript file (e.g. `src/index.js` to `src/index.tsx`) and **restart your development server**!

Type errors will show up in the same console as the build one.
Type errors will show up in the same console as the build one. You'll have to fix these type errors before you continue development or build your project. For advanced configuration, [see here](advanced-configuration.md).

To learn more about TypeScript, check out [its documentation](https://www.typescriptlang.org/).

Expand Down
Loading