Commit Graph

2244 Commits

Author SHA1 Message Date
Dan Abramov
8026a51c53 Update the docs to match #5846 2019-02-15 13:54:04 +00:00
Gasim Gasimzada
319cf9b9e1 Add forward ref to SVG Component (#5457)
* Add forward ref to SVG component

* Write proper component for the ref test

* Add ref to jest svg transform and fix tests

* Fix SVG file location

* Use proper `ref` instead of svgRef in tests

* Add ref to svgr loader
2019-02-14 12:20:39 -07:00
Ian Schmitz
67e8e2cba6 Update stale.yml 2019-02-13 19:52:57 -08:00
Amy Lam
8944aab66d Merge pull request #6365 from yangshun/docusaurus-upgrade
Upgrade Docusaurus and enable new features
2019-02-12 18:26:48 -07:00
Juan Picado @jotadeveloper
c6eca6e498 Add information for usage custom registries on e2e testing #4488 (#5767) 2019-02-11 17:15:41 -05:00
Ian Schmitz
1548e39bf7 Publish
- create-react-app@2.1.5
 - react-dev-utils@7.0.3
 - react-scripts@2.1.5
react-scripts@2.1.5 react-dev-utils@7.0.3 create-react-app@2.1.5 v2.1.5
2019-02-11 08:36:54 -08:00
Ian Schmitz
59bf92e46d Prepare 2.1.5 release 2019-02-11 08:19:19 -08:00
Ian Schmitz
544a5943ce Revert "Speed up TypeScript projects (#5903)"
This reverts commit 5ce09db2b3.
2019-02-11 08:10:33 -08:00
Ian Schmitz
72c49ac807 Revert "Move fork-ts-checker-webpack-plugin dependency to react-dev-utils (#6395)"
This reverts commit c2b715847c.
2019-02-11 08:10:10 -08:00
X.L
c2b715847c Move fork-ts-checker-webpack-plugin dependency to react-dev-utils (#6395) 2019-02-11 07:41:55 -08:00
Ian Schmitz
b02f181d0d Publish
- babel-plugin-named-asset-import@0.3.1
 - babel-preset-react-app@7.0.1
 - create-react-app@2.1.4
 - eslint-config-react-app@3.0.7
 - react-app-polyfill@0.2.1
 - react-dev-utils@7.0.2
 - react-error-overlay@5.1.3
 - react-scripts@2.1.4
babel-plugin-named-asset-import@0.3.1 react-scripts@2.1.4 react-error-overlay@5.1.3 react-dev-utils@7.0.2 react-app-polyfill@0.2.1 eslint-config-react-app@3.0.7 create-react-app@2.1.4 babel-preset-react-app@7.0.1 v2.1.4
2019-02-10 13:48:33 -08:00
Ian Schmitz
bd8c405018 Prepare 2.1.4 release 2019-02-10 13:23:35 -08:00
Ian Schmitz
b7e0158441 Upgrade dependencies (#6393) 2019-02-10 12:24:40 -08:00
Ian Schmitz
5a7dc2d1c0 Revert "Check for multiple project names when initializing (#6080)"
This reverts commit a78be99b5e.
2019-02-10 10:59:41 -08:00
Ian Schmitz
4c02980f4c Update docs links to prefer HTTPS for supported domains (#6383)
* Update docs links to prefer HTTPS for supported domains

* Fix existing typos
2019-02-10 08:26:49 -08:00
Dan Abramov
782d71b957 Add Jest typeahead plugin (#5213)
* Add Jest typeahead plugin

* Update jest-watch-typeahead to 0.2.1
2019-02-10 08:13:27 -08:00
JBallin
313e472331 [docs] Warn/clarify that env vars are NOT "SECRET" (#6062)
* [docs] Warn about storing secrets in env vars

Fixes #5676

Co-Authored-By: Ian Schmitz <ianschmitz@gmail.com>

* [docs] Add NOT to REACT_APP_SECRET_CODE

Fixes #5676

* [docs] Remove line breaks
2019-02-09 17:41:24 -08:00
Andrew Turgeon
42ed676f77 Update babel-plugin-macros 2.4.4 -> 2.4.5 (#6307)
As part of the latest babel-plugin-macros [2.4.5 release](https://github.com/kentcdodds/babel-plugin-macros/releases/tag/v2.4.5), there was a small fix that went in that fixes a [bug](https://github.com/kentcdodds/babel-plugin-macros/pull/100) specifying the `babelMacros` entry in `package.json` no longer working. This patch version increase should remedy the issue and allow specifying babel macro configuration in the `package.json` file again (as stated in the [user docs](https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/user.md#config-experimental) of babel-plugin-macros)
2019-02-09 14:39:06 -08:00
Dominik Palo
caf0a30e38 Use semicolons in the ProcessEnv interface (#6364) 2019-02-08 07:41:30 -08:00
Yangshun Tay
84c1c5423b Upgrade Docusaurus and enable new features 2019-02-08 22:29:41 +08:00
zhuoli99
18d5e87b75 Sass source map for dev (#5713)
Sass source map for dev
2019-02-07 21:18:50 -08:00
Timothy
817ecb1bb6 Update ZEIT Now deployment instructions (#6359) 2019-02-08 00:00:52 -05:00
Tomáš Szabo
5ce09db2b3 Speed up TypeScript projects (#5903)
As a lot of [people](https://hackernoon.com/why-i-no-longer-use-typescript-with-react-and-why-you-shouldnt-either-e744d27452b4) is complaining about TypeScript performance in CRA, I decided to enable `async` mode in TypeScript checker.

These changes basically brings the JS compilation times to TS projects. So, recompilation took less than 1 second instead of 3 seconds in medium size project.

The problem with async mode is that type-errors are reported after Webpack ends up recompilation as TypeScript could be slower than Babel. PR allows to emit files compiled by Babel immediately and then wait for TS and show type errors in terminal later. Also, if there was no compilation errors and any type error occurs, we trigger a hot-reload with new errors to show error overlay in browser.

Also, I wanted to start a discussion about `skipLibCheck: false` option in default `tsconfig.json`. This makes recompilations really slow and we should consider to set it to `true` or at least give users a big warning to let them know that it could be really slow.

The following video is showing the updated workflow with a forced 2.5 second delay for type-check to give you an idea how it works.

![nov-26-2018 15-47-01](https://user-images.githubusercontent.com/5549148/49021284-9446fe80-f192-11e8-952b-8f83d77d5fbc.gif)


I'm pretty sure that PR needs some polishing and improvements but it should works as it is. Especially a "hack" with reloading the browser after type-check looks ugly to me.

cc @brunolemos as he is an initiator of an original TypeScript PR.

Should fix https://github.com/facebook/create-react-app/issues/5820
2019-02-07 19:34:52 -08:00
Chris Self
1deb811c5d Make manifest.json description more generic (#6355) 2019-02-06 19:40:17 -08:00
Nathan Schneider
aa25c77bbc Fix missing article in README (#6346) 2019-02-06 09:56:36 +02:00
gottfired
1648ce8106 Fix order of args in tasks/cra test (#6342) 2019-02-05 09:45:57 +02:00
Charles Pritchard
bacb440748 Add empty mock for dns (#6292) 2019-02-05 09:38:52 +02:00
Rico Kahler
dea19fdb30 Add --no-watch test flag to docs (#6331) 2019-02-04 09:21:05 +02:00
James George
a78be99b5e Check for multiple project names when initializing (#6080) 2019-02-03 17:07:31 +02:00
Rico Kahler
af339ec343 Add '--no-watch' flag for tests (#6285) 2019-02-01 17:49:52 +02:00
Adriano Costa
714599dae6 Prevent cursor events on app-logo svg (#6276) 2019-01-25 15:26:26 -05:00
Ian Sutherland
91f54afb40 Update stale config to ignore additional labels 2019-01-24 22:01:55 -07:00
James K Nelson
3efcdbf328 Fix e2e:docker test failure (#6050)
* fix e2e:docker issue

* fix e2e tests
2019-01-21 20:24:34 -07:00
Nikita Lyzhov
1c591cb7a4 Update serve change listening port documentation (#6229)
* [docs] Change serve port flag and add example

* [docs] Add --listen flag
2019-01-20 13:46:50 -07:00
Ben Carp
ed5fb1066b Update updating-to-new-releases.md with note about global installs (#6190)
* Update updating-to-new-releases.md

Related to https://github.com/facebook/create-react-app/issues/6140

* Update updating-to-new-releases.md

Linking to getting started following discussion on #6190. 
Adapt terminology to current installation methods.

* Update updating-to-new-releases.md

typo, rleative link

* Update docusaurus/docs/updating-to-new-releases.md

Co-Authored-By: carpben <carpben@users.noreply.github.com>
2019-01-19 19:13:37 -07:00
Steven Tan
803946fe58 Changes to steps for publishing GitHub User Page (#6095)
* Changes to steps for publishing GitHub User Page

Remove the the step for switching to gh-pages branch as it is no longer a viable option.

* Changed projects to project
2019-01-16 18:39:34 -08:00
Dotan Simha
34e5029c54 Add empty mock for module (#5798) 2019-01-16 11:26:24 +02:00
Matthew Holloway
fd382772a1 Ignore node_modules in verifyNoTypeScript (#6022) 2019-01-14 13:54:46 +02:00
Otávio Pace
47e9e2c7a0 Move chalk dependency to react-dev-utils (#6150)
Related to #751
2019-01-12 13:55:57 +02:00
Adam Laycock
8174eed5b3 Upgrade @svgr/webpack to 4.1.0 (#5816)
* Upgrade svgr to 4.0.3

* Upgrade svgr to 4.0.4

* Remove unnecessary prettier option

* Update to 4.1.0
2019-01-11 22:45:32 -05:00
Dallon Feldner
132ac3523f Update local-test.sh to return test exit code (#6179)
The `e2e:docker` command can run tests in a Docker container, but it always returns exit code 0 even if the tests failed. This PR resolves that and returns the exit code from the test command.
2019-01-11 18:35:13 -05:00
Ian Schmitz
c8a540d9a1 Add react/react-dom dependencies to relative-paths test fixture (#6165) 2019-01-10 21:17:09 -08:00
Ian Schmitz
2741781bc6 Add note for global install of CLI (#6157)
* Add note for global install of CLI

Closes #6140.
2019-01-09 13:16:09 -08:00
David Rice
6e261f8a06 Update react-dev-util globby dependency to v8.0.2 (#6162)
v8.0.2 was recently released https://github.com/sindresorhus/globby/releases to fix some pathing issues with dir-glob.
2019-01-09 14:24:03 -05:00
loveky
caf0effda5 update link for difference between proposal stages (#6149)
seems the page which the old link points to has removed the related information.
2019-01-08 07:36:06 -08:00
Yangshun Tay
ddf294159f Remove extra table cell (#6141) 2019-01-07 07:53:08 -08:00
Jason Laster
773d103986 Switch to eval-source-map (#5060)
Switches to eval-source-map, which is easier for webpack to recompute
when a file changes and has column based mappings, which lets firefox
devtools show original variable in the debugger and evaluate original
expressions in the console.
2019-01-06 22:42:05 -05:00
Ian Schmitz
005ee5b952 Bump eslint-plugin-react version and update webpack config (#6132)
* Bump eslint-plugin-react version

* Move eslint-plugin-react settings into eslint-config-react-app

* Add react/no-typos rule
2019-01-06 15:05:14 -08:00
Joe Haddad
3e1dc99013 Fix CI and upgrade dependencies (#6137)
* Upgrade a bunch of dependencies

* Turn off nightly Yarn
2019-01-06 13:13:20 -05:00
Ian Schmitz
73e3d0ebf1 Update CHANGELOG.md v2.1.3 2019-01-04 11:02:24 -08:00