Commit Graph

2162 Commits

Author SHA1 Message Date
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
ZHAO Jinxiang
e4fdac2418 Change class components to functional components in templates (#6451)
* change class component to function component

* Update packages/react-scripts/template/src/App.js

Co-Authored-By: xiaoxiangmoe <xiaoxiangmoe@gmail.com>

* Update packages/react-scripts/template-typescript/src/App.tsx

Co-Authored-By: xiaoxiangmoe <xiaoxiangmoe@gmail.com>
2019-03-11 10:05:21 -06:00
Mike Beaton
ed86da9ed3 Convert JSON.stringify \n to os.EOL when writing tsconfig.json (#6610) 2019-03-11 08:47:16 -07:00
Aftab Khan
2591590194 Update html-webpack-plugin (#6361) 2019-03-10 13:22:19 -06:00
John Reilly
bac02873eb Enable click to go to error in console for TypeScript (#6502)
* reattempt changes

* formatter fixes

* fix missing colon in path

* revert path tweaking amends as per discussion with @ianschmitz
2019-03-10 09:31:30 -07:00
ThePrez
c54e36d810 Update webpack-dev-server to 3.2.1 (#6483)
* Upgrade webpack-dev-server to 3.2.1
2019-03-09 11:58:03 -08:00
JBallin
6a034ba023 [docs] revert removal of newlines from html (#6386)
An unintended change was merged in #6062
2019-03-09 11:52:11 -08:00
Ian Sutherland
c17e25bf7f Publish
- create-react-app@2.1.8
 - react-dev-utils@8.0.0
 - react-scripts@2.1.8
v2.1.8 react-scripts@2.1.8 react-dev-utils@8.0.0 create-react-app@2.1.8
2019-03-06 17:53:30 -07:00
Ian Sutherland
529a3d77b7 Prepare 2.1.8 release 2019-03-06 17:51:41 -07:00
Ian Sutherland
1548a0a92e Reapply "Speed up TypeScript v2 (#6406)" (#6586)
This reverts commit b2cf28b7f1 and reapplies #6406.
2019-03-06 17:46:38 -07:00
Ian Sutherland
e69ad37fcf Publish
- create-react-app@2.1.7
 - react-dev-utils@7.0.5
 - react-scripts@2.1.7
react-scripts@2.1.7 react-dev-utils@7.0.5 create-react-app@2.1.7 v2.1.7
2019-03-06 17:40:34 -07:00
Ian Sutherland
3a37bb0039 Prepare 2.1.7 release 2019-03-06 17:39:04 -07:00
Ian Sutherland
b2cf28b7f1 Revert "Speed up TypeScript v2 (#6406)" (#6585)
This reverts commit 6a5b3cdaaa.
2019-03-06 17:33:17 -07:00
Ian Sutherland
b5887dcac7 Publish
- babel-preset-react-app@7.0.2
 - confusing-browser-globals@1.0.6
 - create-react-app@2.1.6
 - eslint-config-react-app@3.0.8
 - react-app-polyfill@0.2.2
 - react-dev-utils@7.0.4
 - react-error-overlay@5.1.4
 - react-scripts@2.1.6
create-react-app@2.1.6 react-scripts@2.1.6 babel-preset-react-app@7.0.2 confusing-browser-globals@1.0.6 eslint-config-react-app@3.0.8 react-app-polyfill@0.2.2 react-dev-utils@7.0.4 react-error-overlay@5.1.4 v2.1.6
2019-03-06 16:17:21 -07:00
Ian Sutherland
7782f9db95 Prepare 2.1.6 release 2019-03-06 15:58:39 -07:00
Bimochan Shrestha
ff19e0a6d2 Fix build deployment instruction link appends comma at end (#6511) 2019-02-24 14:45:06 -08:00
Ian Sutherland
0793d48fc1 Remove AppVeyor config files (#6493) 2019-02-22 11:19:50 -07:00
Saransh Kataria
01fbb7993f removed redundant statements (#6254)
The enabled by default statement made sense when the developer was supposed to disable flow in order to use ts. Both those statements in there create some confusion about it in my opinion.
2019-02-21 22:31:55 -08:00
Ioannis Cherouvim
7ec36479b3 Improved language used in markdown code blocks. (#6419)
* Improved language used in code blocks.
2019-02-21 21:16:33 -08:00
Jack Zhao
4a4d2eff4e remove argv 2019-02-21 14:39:01 -08:00
Jack Zhao
140e182e7d remove stats json 2019-02-21 14:35:34 -08:00
Amy Lam
b8386fe04f Merge pull request #6481 from adyouri/master
Fix a typo
2019-02-21 08:41:31 -08:00