Commit Graph

2183 Commits

Author SHA1 Message Date
bakuzan
431ccf9c43 Clarify production build output files documentation (#6786) 2019-04-13 14:47:33 -07:00
Parth Narielwala
e59e0920f3 Add SVG support dependency note (#6783) 2019-04-10 10:18:25 -06:00
Tom Robinson
b676bf3d4c Remove unused babel-loader from babel-preset-react-app (#6780) 2019-04-09 14:34:28 -07:00
Raphael.dev
dac046df1f Fix code comment typo (#6775) 2019-04-08 19:57:02 -07:00
Ian Schmitz
80b69edb46 Warn when using react-scripts-ts (#6770)
* Warn when using react-scripts-ts

* Update node/npm min version references
2019-04-08 18:26:38 -07:00
Francisco Joshua
a8a3ccfea5 Update link to React Testing Library docs (#6772) 2019-04-08 10:53:03 -07:00
Anurag Goel
a1d6aefc09 Add Render deployment section (#6695) 2019-04-07 23:47:55 -07:00
ZHAO Jinxiang
ebabd18333 Change NODE_ENV and PUBLIC_URL to readonly (#6750) 2019-04-07 20:18:32 +03:00
Ian Schmitz
278c62cf03 Revert "Update to core-js@3"
This reverts commit 71149650ec.
2019-04-06 16:32:19 -07:00
Ian Schmitz
71149650ec Update to core-js@3 2019-04-06 16:24:18 -07:00
Ian Schmitz
91ddd618be Update dependency versions (#6767)
Includes only minor/patch version bumps.
2019-04-06 15:16:08 -07:00
Tom Crockett
c03d6b17dc Update fork-ts-checker-webpack-plugin out of alpha (#6739)
<!--
Thank you for sending the PR!

If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots!

Happy contributing!
-->
2019-04-06 14:00:46 -07:00
Hrusikesh Panda
550274e307 Adds PostCSS Normalize (#5810)
* Add postcss-normalize plugin

* Configure PostCSS Normalize

* Add documentation

* Include the doc in sidebar

* Fix the id in sidebar.json

* Update adding-css-reset.md


Co-authored-by: Jack Zhao <jzhao@fb.com>
Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
2019-04-05 10:23:59 -06:00
Pradeep Sekar
ffcd896add Update to workbox-webpack-plugin v4 (#6725)
* Update to workbox-webpack-plugin v4

* Update workbox-webpack-plugin to 4.2.0


Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
2019-04-05 09:48:01 -06:00
Ian Sutherland
f1523a603a Add temporary workaround for Babel dependency issues in kitchensink-eject test suite (#6762) 2019-04-05 00:03:45 -06:00
Andrew Luca
b8a47d93cf Replace deprecated SFC with FunctionComponent (#6746) 2019-04-04 23:30:10 -06:00
Endilie Yacop Sucipto
3e336d91e0 fix: terser-webpack-plugin hanging on WSL (#6732)
* fix: terser-webpack-plugin hanging on WSL

* nits

* Merge branch 'master' into terser-parallel-bug-wsl

Co-authored-by: Jack Zhao <jzhao@fb.com>
2019-04-04 23:24:27 -06:00
Alex Guerra
ac15fae03e Fix unlogged yarn pnp message (#6759) 2019-04-04 18:07:26 -04:00
Mateusz Burzyński
42640dfce1 Only suggest that tsconfig.json is incorrect when SyntaxError is caught (#6160)
Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
2019-04-04 15:18:15 -06:00
Ian Sutherland
001c23eff4 Enable futureEmitAssets in webpack config (#6696) 2019-04-04 14:35:48 -06:00
Ian Sutherland
bf7d1c4b3e Add temporary workaround for Babel dependency issues in installs test suite (#6757)
This is a temporary fix to get our test suites passing so we can finish work on the 3.0 release. We still need to find and fix the root cause of this issue: #6679. This workaround should be removed once that's fixed.
2019-04-04 13:34:49 -06:00
Ian Schmitz
76fea02277 Cleanup Jest config (#6654)
General cleanup after the [Jest 24 PR](#6278). 

This also includes `jsdom@14` via https://www.npmjs.com/package/jest-environment-jsdom-fourteen. Since we have a node >= 8.10 requirement, we are able to use the latest version of `jsdom` which includes additional implementations of browser APIs such as `MutationObserver` (which we had an issue filed for over at #6617).

/cc @SimenB. Is there more you recommend we do to cleanup our [Jest config](b0cbf2caa1/packages/react-scripts/scripts/utils/createJestConfig.js) for TypeScript?

Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
2019-04-04 11:00:00 -06:00
Mike Perry Y Attara
e630238d0d Add explanation for adding everything as dependencies to docs (#6082)
* Update available-scripts.md

add the reason for adding packages as dependencies

* Update available-scripts.md

* Update available-scripts.md

* Update available-scripts.md


Co-authored-by: Amy Lam <amy.r.lam@gmail.com>
Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
2019-04-03 13:48:27 -06:00
Pete Nykänen
d42f8882a5 Document .graphql and .gql file loading with graphql.macro (#5481) 2019-04-03 12:21:52 -07:00
Cody Olsen
9514cb88ab Remove --coverage + --watch workaround (#4176) 2019-04-02 10:49:36 -07:00
Jack Wilsdon
1a61db58d4 Remove project property from @typescript-eslint/parser options (#6701)
* Remove project property from @typescript-eslint/parser options

The "project" property has a significant performance impact on linting,
and none our rules currently need it.

Fixes #6661.
2019-03-28 21:17:40 -07:00
Stephen Godderidge
fb6851d651 Docs: Add clarifying note about naming variables (#6491) 2019-03-25 23:13:27 -07:00
Santosh Yadav
5acb28645e Kill verdaccio in CI tasks cleanup (#6700)
Fixes #6663
2019-03-25 17:59:09 -07:00
Monish
d3b19f9789 Add clarifying documentation for how to add a sass stylesheet on Windows (#6322) 2019-03-24 13:41:41 -07:00
Nikhil Swaminathan
5c637a488f Add deployment instructions with AWS Amplify (#6208)
* Add AWS Amplify deployments to the CRA Docs

* Fixed typos

* added gif

* GIF link

* Update docusaurus/docs/deployment.md

* create-react-app to Create React App

* Update docusaurus/docs/deployment.md

* Removed extra verbiage.

* Removed GIF
2019-03-20 19:41:16 -06:00
Nicolas Charpentier
a1f6397221 Remove duplicate url key in Docusaurus siteConfig (#6690)
`url` was duplicated in `siteConfig.js`, both were the same value, so stripping one of them.
2019-03-20 19:22:32 -06:00
Ian Sutherland
b4247378a3 Change app component declaration from arrow function to regular function (#6655)
* Change app component declaration from arrow function to regular function

* Change TypeScript template back to an arrow function
2019-03-18 20:18:21 -06:00
Jack Zhao
4734d4ef21 Merge branch 'master' into master 2019-03-18 17:50:52 -07:00
Abdelrahman Rifai
c5087e6cbe Remove shrink-to-fit=no from templates (#6669) 2019-03-18 12:28:16 -06:00
Mohit Singh
8175f1e418 Remove unused eslint comment (#6674) 2019-03-18 07:25:31 -07:00
Dalci de Jesus Bagolin
5861d6ea46 Bump babel-eslint peerDependency in eslint-config-react-app (#6662)
Sync the `babel-eslint` version between react-scripts and eslint-config-react-app
2019-03-16 09:17:13 -07:00
W1lkins
7864ba3ce7 Add wait: false when opening app in browser (#5821) 2019-03-15 13:48:55 -06:00
Ian Sutherland
6902736747 Unpin eslint-config-react-hooks dependency (#6653) 2019-03-15 13:46:12 -06:00
Ian Sutherland
b0cbf2caa1 Prepare 3.0.0 alpha release 2019-03-15 12:14:39 -06:00
Lorenzo Rapetti
3be3576304 Update to Jest 24 (#6278)
* Update to jest 24

* Add notice about pnpResolver.js

* Formatting

* Fix linting

* Update to jest 24.1.0

* Update jest-pnp-resolver

* Swap create-react-app params in e2e scripts

* Add extraGlobals to supportedKeys

* Bump jest to 24.3.1

* Bump jest to 24.4.0

* Bumb jest to 24.5.0

* Update template dependencies jest to 24.5.0

* Debug failing test

* Remove jest-pnp-resolver

* Remove console.log

* Revert yarn.lock.cached
2019-03-15 12:02:59 -06:00
Ian Schmitz
eee8491d57 Add TypeScript linting support (#6513)
* Initial pass adding typescript-eslint

* Add warning to shared rule set

* Add documentation for setting up VSCode extension

* Provide tsconfig path to typescript-eslitn
2019-03-14 21:17:17 -06:00
Eivind Arvesen
7ae3146037 Support React Hooks (#5602) (#5997)
* Add Babel plug-in for Hooks; Add ESLint plug-in for Hooks (WIP)

* Fix transform destructuring loose config

* Add eslint-plugin-react-hooks to package.json

* Fix package.json's

* Fix eslint-plugin-react-hooks version

* Fix package.json

* Fix package.json

* Add eslint-plugin-react-hooks to script package.json

* Force array destructuring to work in loose mode only for known Hooks

* Update based on feedback from PR

* Add 'exhaustive-deps' lint rule

* Bump eslint-plugin-react-hooks to stable version

* Remove extraneous dependency from react-scripts
2019-03-14 20:36:30 -06:00
Ian Schmitz
f4f20a20d0 Support browserslist in @babel/preset-env (#6608)
* Add browserslist support to @babel/preset-env

* Support @babel/polyfill in entry point
2019-03-14 12:16:09 -07:00
Kelvin Jin
88d6f029bd Add empty mock for http2 (#5686) 2019-03-13 19:50:19 -06:00
Taylor Briggs
a500ede755 Add note about npx caching (#6374)
* Add note about npx caching and link to #6119

It is necessary to uninstall any version that was previously installed for the typescript flag to work when using npx.

* Use proper casing for TypeScript

Co-Authored-By: TaylorBriggs <TaylorBriggs@users.noreply.github.com>
2019-03-12 20:45:57 -06:00
ZHAO Jinxiang
b60f56fca7 change named import into default import (#6625) 2019-03-12 07:34:12 -07:00
Salvador Hernandez
dc133a351f Stage files for commit after ejecting (#5960)
* add command to add files to staging after eject

* update console.log message

* wrap git add in a try/catch block

* return true & update log message

* add test to check if files were staged

* Fix check for staged files
2019-03-11 22:06:37 -06:00
Ian Schmitz
3c9c21a285 Upgrade dependencies (#6614)
* Upgrade dependencies

* Upgrade a couple missed deps

* Run Prettier over codebase
2019-03-11 20:45:14 -06:00
Jannis Hell
5b77280dad Make compiler variable const instead of let (#6621)
compiler is not being reassigned, so we can use a const here
2019-03-11 12:42:20 -07:00
Ian Schmitz
1a04b96795 Type check JSON files (#6615) 2019-03-11 10:20:00 -06:00