Commit Graph

2349 Commits

Author SHA1 Message Date
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
Pete Nykänen
9fcc45abd1 Merge pull request #6482 from mattfwood/patch-1
minor typo fix in openBrowser
2019-02-21 17:42:44 +02:00
Matt Wood
38ae7348c8 minor typo fix in openBrowser 2019-02-21 09:40:00 -06:00
Martin Litvaj
01ecfc1337 Analyse also dependencies bundle (#6438)
The current `analyze` script only analises the `/src` code. This change leverages new version of `source-map-explorer` that is able to analyse multiple bundles at once, including the  3rd party dependencies bundle which is in my opinion even more important to analyze.
2019-02-21 06:50:21 -08:00
Abdelhadi Dyouri
a5c6112b8b Fix a typo 2019-02-21 14:43:50 +00:00
Jack Zhao
da2d047bb7 Merge branch 'master' of https://github.com/bugzpodder/create-react-app 2019-02-20 23:21:45 -08:00
Jack Zhao
e7a427ad16 remove webpack-bundle-analyzer 2019-02-20 23:21:35 -08:00
Jack Zhao
43129f19c4 remove webpack-bundle-analyzer 2019-02-20 23:17:11 -08:00
Ian Schmitz
6c8e2e53c5 Use contenthash instead of chunkhash for better long-term caching (#6387) 2019-02-20 18:24:19 -08:00
Ian Sutherland
87191e68d4 Remove latest Node version from Travis config (#6474) 2019-02-20 16:41:31 -07:00
Jack Zhao
28f5427979 revert css sourcemaps in development (#6472)
This fixes #6399.
2019-02-20 16:16:18 -05:00
Jack Zhao
df03772d10 revert sass sourcemaps in development 2019-02-20 11:47:06 -08:00
Leigh Halliday
d57fd37d2d Convert all bit.ly links from http to https (#6239) 2019-02-19 09:25:19 -07:00
Ian Sutherland
0b8cfa1cca Add CODEOWNERS 2019-02-18 19:23:26 -07:00