Commit Graph

698 Commits

Author SHA1 Message Date
Joe Haddad
5b4c94c7a3 Format user guide 2018-09-26 10:36:30 -04:00
Joe Haddad
523d6e9615 Revert "Remove CSS modules docs (#3832)" (#3833)
This reverts commit 11f1aa09b3.
2018-09-26 01:33:38 -04:00
Joe Haddad
deffd04130 Fix babel runtime exclude rule 2018-09-26 01:31:50 -04:00
Jack Zhao
63398bd5e4 Remove babelrc dependency for kitchensink test (#5098)
* add kitchensink-eject to local-test

* add jest transform

Closes https://github.com/facebook/create-react-app/issues/5095
2018-09-26 00:58:06 -04:00
Joe Haddad
969fb37ea9 Disable source maps for node_modules (#5096) 2018-09-25 21:24:48 -04:00
Joe Haddad
adfb20c403 Turn on Babel helpers (#5093)
* Turn on helpers and test importing something with async/await works

* Compiling babel runtime breaks itself

* Add helpers option to babel plugin with defaults

* Make helpers off by default and on in our configuration

* Hit eject and e2e

* meh

* copy'n'paste

* change again

* Turn off helpers by default in /prod, /dev, /test

* oops

* Spread undefined

* Use object assign not object spread

* Put preset in template since it's needed

* Fix e2e tests
2018-09-25 18:59:06 -04:00
Joe Haddad
5599eff861 Drop IE 11 support by default (#5090)
* Drop ie 11 support and move polyfills to a new package

* More useful directions for what entry point to use
https://github.com/facebook/create-react-app/pull/5090#discussion_r220313783

* Clear up what file this polyfill goes in
https://github.com/facebook/create-react-app/pull/5090#discussion_r220313980

* Polyfill `window`, not `global`

* Remove proxy polyfill file
2018-09-25 16:08:29 -04:00
Joe Haddad
5f381e7646 Allow stage 3 css transforms (#5091)
* Switch to stage 3 css

* Tweak default browsers, too
2018-09-25 15:21:55 -04:00
Grady Kuhnline
fb6e6f70a3 Add postcss-preset-env, remove autoprefixer (#4716)
* add postcss-preset-env, remove autoprefixer

* limit to stage 4
2018-09-25 10:33:23 -04:00
Joe Haddad
11737bc786 Prevent the cache of files using Babel Macros (#5078)
* Add new overrides option

* Add file to package.json

* Create our own loader

* Remove overrides

* We have to use a real babel option

* Add comments
2018-09-24 20:10:11 -04:00
Joe Haddad
2e19824dfd Update tons of packages (#5080) 2018-09-24 17:41:40 -04:00
Martin Lechner
eba5995b3d Update usage advice of husky to 1.0 (#5071)
Husky had an overhaul of the API, see https://github.com/typicode/husky
Therefore the usage advice here has been adjusted.
2018-09-24 16:11:35 -04:00
Nick Bartlett
77c32b5631 Small typo fix (#5077)
follwing -> following
2018-09-24 16:10:21 -04:00
Joe Haddad
03a709195f Revert "Add loader for .graphql files (#3909)" (#5076) 2018-09-24 12:48:58 -04:00
Joe Haddad
88a3de96af Set browsers automatically if not an interactive terminal 2018-09-24 11:46:07 -04:00
Joe Haddad
62b0942be6 Change default test environment to jsdom (#5074) 2018-09-24 11:30:04 -04:00
Joe Haddad
2ee4fa8152 Add user defined proxy via middleware (#5073)
* Add user defined proxy via middleware

* Pass app, instead
2018-09-24 11:24:02 -04:00
Kévin Dunglas
bca6334727 Integrating with an API Backend: add API Platform (#5070) 2018-09-24 10:28:06 -04:00
Joe Haddad
b8da58499a Optimize webpack rebuild speed (#5065)
Derived from https://github.com/facebook/create-react-app/issues/4492#issuecomment-421959548
2018-09-22 13:44:58 -04:00
Marko Kaznovac
b181f92650 fix minor typo in troubleshooting github pages (#5064) 2018-09-22 12:57:51 -04:00
Joe Haddad
2150693d6f Upgrade svgr to v2 and disable Prettier/SVGO (#5062) 2018-09-21 16:00:28 -04:00
Joe Haddad
e88809f489 Inline the webpack runtime chunk (#5058) 2018-09-21 14:17:56 -04:00
Jason Laster
78f0a96133 Switch back to cheap-module-source-map (#5059) 2018-09-21 13:47:59 -04:00
John Freeman
b98d5c9f33 Move favicon.ico <link> to accommodate Chrome (#4891)
Chrome requests `favicon.ico` on every route change, but stops if the `<link>` for it occurs early enough in the page. [Several](https://stackoverflow.com/questions/35409588/favicon-requested-on-every-route-change) other [people](https://github.com/ctrlplusb/react-universally/issues/145) have been running into this issue since at least February 2016.
2018-09-21 12:37:45 -04:00
Joe Haddad
0cfe758f27 Ensure files get purged when they should (#5054) 2018-09-21 09:56:45 -04:00
Joe Haddad
74c4baebf2 Normalize babel caching across the board (#5053) 2018-09-21 09:19:29 -04:00
Joe Haddad
7be14b914f Tweak init.js after merge 2018-09-21 08:19:14 -04:00
Aaron Reisman
2aaf71eed0 Add eslintConfig to new projects automatically (#1457) 2018-09-21 08:18:18 -04:00
Jack Zhao
58e00a3109 Bump (peer) dependencies to ESLint 5.6 (#5050) 2018-09-21 07:35:02 -04:00
Jack Zhao
d0ed84507b Convert test suite to Jest (#4550)
* convert mocha tests to jest

* jest 23

* add jest configs

* use material css

* fix windows

* forceExit jest test

* force exit eject

* test

* test

* retrigger test

* remove appveyor comment

* try to remove pretendToBeVisual option

* use jsdom env

* test environment

* no cache

* test no close

* bring back raf

* test revert all broken changes

* add back jsdom

* remove jsdom

* node test environment

* use latest change

* runInBand

* runInBand

* comment test run

* try different jest option

* standardize jest test options

* increase heap size

* remove heap size config

* support scoped packages for cra --scripts-version option

* upgrade jest version

* fix windows

* fix windows again

* jest 23.4.1

* babel-jest

* babel-jest

* split out kitchhensink

* travis node 6

* travis node 6 config

* node 6 travis eject

* cache yarn

* only cache yarn

* remove unrelated changes

* typo
2018-09-21 05:17:45 -04:00
Jason Laster
2ed8eccf08 Switch to eval-source-map (#4930) 2018-09-20 18:54:50 -04:00
Joe Haddad
e2dc3fc5a4 Lessen significance of browserslist
Adjust the default browsers to be a single list and remove it from the build output; it only affects CSS now
2018-09-20 16:48:45 -04:00
James B. Pollack
7d41493e73 Reorder Storybook resources to be more helpful (#5035) 2018-09-20 16:23:04 -04:00
Joe Haddad
4abc5c4877 Always lint with latest React version (#5043)
This is the best behavior so people have seamless upgrades to new React majors.

This is probably a terrible default warning from the ESLint plugin, and we need to wait for https://github.com/yannickcr/eslint-plugin-react/issues/1955 before changing this hardcoded behavior.

Closes #5034
2018-09-20 11:58:27 -04:00
Joe Haddad
0da9f2d6c2 Switch back to main eslint-loader
Closes #5020
2018-09-20 10:21:52 -04:00
Joe Haddad
0bdbe42768 Upgrade to Babel 7 stable (#5042)
Closes #4932, Closes #4876
2018-09-20 10:17:09 -04:00
Joe Haddad
e41c67dfce Upgrade Prettier 2018-09-19 14:48:04 -04:00
Joe Haddad
25ebe01399 Upgrade react-scripts dependencies (#5032)
* No lock files prevents the use of yarn upgrade & outdated

* Update deps

* Bump Jest across the board

* Add safe postcss parser
2018-09-19 14:44:08 -04:00
Jeffrey Posnick
1b2813144b Updates to reflect service worker registration being opt-in (#3924)
* Updates to reflect service worker registration being opt-in.

* Fixed an anchor link.

* Updates to SWPrecacheWebpackPlugin config, and corresponding docs.
2018-09-19 14:08:38 -04:00
Joe Haddad
c1ccbbc282 Upgrade html-webpack-plugin to fix tests (#5031)
* Upgrade html webpack plugin

* Fix build
2018-09-19 12:09:18 -04:00
Joe Haddad
d55525651f Disable webpack chunk coalescing (#5030)
* Disable webpack chunk rollup

* Bump timeout

* Revert "Bump timeout"

This reverts commit 84632115d178b48e08eb75dc5e9a921ece6aa759.
2018-09-19 09:43:57 -04:00
Joe Haddad
9bbc1775bb Remove mjs support (#5027)
* Revert Lerna dependency, there's too many bugs in v3

* Remove `mjs` support
2018-09-18 17:09:27 -04:00
Joe Haddad
50b4857ff8 Revert "Add support for yarn and lerna monorepos. (#3741)"
This reverts commit b43ad04b88.
2018-09-18 14:31:19 -04:00
Joe Haddad
92e40c38e8 Revert "Add react-scripts version compatibility for monorepos. (#3953)"
This reverts commit aa8789b1aa.
2018-09-18 14:31:19 -04:00
Joe Haddad
10e8fd5531 Revert "Ensure workspaces key exists in parent package.json (#3989)"
This reverts commit 47d2d94118.
2018-09-18 14:31:19 -04:00
Joe Haddad
cc328d6287 Revert "Use yarn when running inside yarn workspace. (#3997)"
This reverts commit 2c34d5b66e.
2018-09-18 14:31:19 -04:00
Joe Haddad
02b30d696c Revert "Fix typos in example monorepo documentation. (#4164)"
This reverts commit 058d03f8f8.
2018-09-18 14:31:19 -04:00
Joe Haddad
2300f9e983 Switch from uglifyjs to terser (#5026)
Uglify is no longer maintained and has bugs not present in Terser (its successor)
2018-09-18 14:31:02 -04:00
Joe Haddad
22353ecf02 Fix ESLint output formatting
The `formatter` option is incompatible with with `thread-loader`.
The `formatter` option previously accepted a function which was lost during JSON serialization.
2018-09-17 19:59:14 -04:00
Joe Haddad
311215d161 Upgrade webpack and thread-loader 2018-09-17 19:59:14 -04:00