Commit Graph

939 Commits

Author SHA1 Message Date
Dan Abramov
493e5a6996 Tweak lint rules (#2186) 2017-05-16 23:35:14 +01:00
Dan Abramov
e280254d72 Handle errors from port detector (#2182) 2017-05-16 16:57:45 +01:00
Dan Abramov
46eeabca7e Tweak colors for better contrast on Windows (#2180) 2017-05-16 16:45:12 +01:00
Dan Abramov
134d2297dd Reenable require.ensure() 2017-05-16 16:10:10 +01:00
Dan Abramov
dadf93b2bc Disable require.ensure() warning (#2177) 2017-05-16 15:43:51 +01:00
Dan Abramov
66792dde64 Fix Flow hopefully 2017-05-16 15:40:50 +01:00
Dan Abramov
50aaae6c1c Resolve regenerator runtime relative to react-scripts (#2175) 2017-05-16 15:40:16 +01:00
Dan Abramov
58689133a1 Bump versions 2017-05-16 09:49:04 +01:00
Ryan Sullivan
10a180be9b Make coverage and snapshot Jest options overridable in package.json (#1830)
* Override Jest config collectCoverageFrom with package.json

* Protect against overriding other options

* Better error message

* Create Jest config early on eject

* Tweak wording

* Dry it up
2017-05-16 05:13:19 +01:00
Dan Abramov
db2f2ed9d9 Jest 20 (#2171) 2017-05-16 03:37:55 +01:00
Alison Monteiro
98fec2d543 react-dev-utils/openBrowser now supports urls with 2+ params (#2076)
* react-dev-utils/openBrowser now supports urls with 2+ params

Fixed #2047

* react-dev-utils/openBrowser: encode url before open the browser
2017-05-16 03:16:59 +01:00
Dan Abramov
0ffed85e6c Bump dependencies (#2170)
* Bump dependencies

* Bump CSS deps

* Somehow I missed dotenv

* Bump ESLint deps

* Tweak ESLint rules
2017-05-16 02:59:32 +01:00
Tom Dunlap
c5e5eb5e33 Only run tests in <rootDir>/src (#544) (#1808)
* Only run tests in <rootDir>/src (#544)

* updates Jest to 19.0.2

* removes testPathIgnorePatterns from jest config

* adds testMatch to jest config to only match files in src

* Bump babel-jest to 19.0.0 to match jest 19.0.2
2017-05-15 19:46:18 -05:00
Dan Abramov
9f8a00126a Try again 2017-05-16 01:26:04 +01:00
Dan Abramov
1832b76ffb Try to fix CI 2017-05-16 01:04:10 +01:00
Cristian
044e57b726 Adding plugin postcss-flexbugs-fixes and flexbox: 'no-2009' to Autoprefixer (#1771)
* Adding postcss-flexbugs-fixes

Using postcss-flexbugs-fixes to fix all flexbug's issues.

* Adding flexbox: 'no-2009' to Autoprefixer

It will add flexbox prefixes only for final and IE versions of
specification.
2017-05-16 01:02:38 +01:00
Dan Abramov
9b231d461d Enable CSS sourcemaps in production (#2168) 2017-05-16 00:52:39 +01:00
Gabriel Aumala
8f028ae4b5 Support node scripts in BROWSER (#1590)
* Support node scripts in BROWSER

Modify OpenBrowser.js to run node scripts specified with the BROWSER environment
variable . If the value of the BROWSER environment variable ends with '.js' a
child process is spawned to execute the script with node.js. Any
arguments passed to npm start are also passed to this script, as well as
the url where the app is served.
The command executed in the child process is:

node <pathToScript> [OPTIONS] <url>

Update User Guide.

* Tweak code style

* Pin dep

* Comment out 0.10 docs
2017-05-16 00:25:04 +01:00
Dan Abramov
d6dbfc0353 Support hoisting react-scripts and add require.resolve() to loaders (#2166)
* Support hoisting react-scripts

* require.resolve() loaders and configs

This makes it so that loaders and configs are resolved relative to the config rather than to the app. This seems to make more sense to me.
2017-05-15 23:47:28 +01:00
anraka
814365b4d0 Removing extra eslint rules (#2064)
Removing a stylistic lint rule
2017-05-15 23:42:46 +01:00
Almero Steyn
7bff7154d9 ESLint Config: Upgrade eslint-plugin-jsx-a11y and activate more rules. (#2163)
* ESLint Config: Upgrade eslint-plugin-jsx-a11y and activate more rules.

* Try to fix Lerna

* Update README.md

* Remove html-has-lang

* Update README.md
2017-05-15 23:25:40 +01:00
Dan Abramov
5ecda24f76 Unpin Yarn (#2124)
* Unpin Yarn

* Try 0.24.2

* Update e2e-simple.sh
2017-05-15 21:04:02 +01:00
Dan Abramov
fcb7dcf1da Put console.stack() behind a react vendor prefix (#2164)
Matches what we did in https://github.com/facebook/react/pull/9679
2017-05-15 21:03:18 +01:00
Rogelio Guzman
71e0960476 Update to Jest 19 (#1614)
* Upgrade to Jest 19

* Use testMatch

* Correct version
2017-05-15 14:35:18 -04:00
Joe Haddad
f366028031 Fix CI 2017-05-15 13:50:30 -04:00
Joe Haddad
e17c392203 Fix lint 2017-05-15 13:48:44 -04:00
Dan Abramov
f87e61337a Make error/warning output more useful (#2161) 2017-05-15 18:09:05 +01:00
Dan Abramov
9e733b57f8 Internal Webpack paths should not be clickable 2017-05-15 16:50:40 +01:00
Dan Abramov
172264ef5b Bump webpack packages 2017-05-15 16:31:39 +01:00
Joe Haddad
ac63130a42 Show network address on start (#2155)
* Show network address on start

* Tweak visual representation
2017-05-15 14:20:11 +01:00
Joe Haddad
4dc7c86511 Prefer localhost as an address (#2154) 2017-05-14 22:04:05 -04:00
Joe Haddad
281e8d23f8 Add support for IPv6 hosts 2017-05-14 21:25:21 -04:00
James Blight
71a27c0f8b Allow custom proxies in development (#1790)
* Change proxy handling to allow multiple proxies to be specified in package.json.

* Up webpack-dev-server to 2.4.2

Webpack Dev Server version 2.4.2 handles the external websocket upgrade
for all proxies

* Fix the listen() call

* Switch to correct default host

* Remove promises and extract to react-dev-utils

* oops
2017-05-14 21:12:54 -04:00
Joe Haddad
9b228176f0 [Internal] Warn for missing brackets (#2151)
* Warn for missing braces

* Overlay, too
2017-05-14 20:59:20 -04:00
Joe Haddad
75fc094a5d Fix CI 2017-05-14 20:57:38 -04:00
Dan Abramov
5e35645b95 Focus on line in eslint messages 2017-05-15 01:15:58 +01:00
Dan Abramov
21349c542b Tweak error and warning output (#2152)
* Tweak error and warning output

* Add a colon
2017-05-15 01:07:59 +01:00
Joe Haddad
77087da361 Fix CI 2017-05-14 19:54:27 -04:00
Siddharth Doshi
f17448e9e5 Add custom eslint formatter (#2138)
* Add custom eslint formatter

* Add formatter docs

* Update formatter docs

* Slightly tweak it

* Update README.md
2017-05-15 00:42:13 +01:00
Dan Abramov
10c734b66a Print error messages for editor integration (#2150) 2017-05-14 23:52:27 +01:00
Ian Sutherland
82687dd224 Replace prompt function from react-dev-utils with Inquirer.js. (#1772) 2017-05-14 23:14:56 +01:00
Joe Haddad
be43292445 Temporarily fork detect-port (#2147)
* Temporarily fork detect-port

* Fix get process id

* Use different package

* Unnecessary var
2017-05-14 23:10:44 +01:00
Siddharth Doshi
06e73fa6b3 Blacklist confusing global variables (#2130)
* Blacklist confusing global variables

* Blacklist globals

* Fix kitchensink test to lint

* Edit the list

* Use no-restricted globals for this
2017-05-14 19:47:04 +01:00
Joe Haddad
dbd12f1452 Add a missing color mapping (#2146)
Closes #2127
2017-05-14 14:12:47 -04:00
Dan Abramov
8b451c38fa Don't collapse unintentional top-level errors (#2145)
* Don't collapse unintentional top-level errors

* Linkify internal stack frames too
2017-05-14 15:21:42 +01:00
Dan Abramov
ac7777d52d Work around weird inferred name in Chrome 2017-05-14 12:35:18 +01:00
Dan Abramov
4434467a43 Click to view source from error overlay (#2141)
* Click to view source

* Update package.json

* Update package.json

* Fix lint
2017-05-14 12:17:05 +01:00
Dan Abramov
b25c13394f Skip React frames that are too close (#2143) 2017-05-14 12:14:22 +01:00
Joe Haddad
76d2d848c6 Improve unmapper file heuristic, add limited warning support, and ignore internal errors (#2128)
* Browser sort is not stable

* Fix ordering of final message

* Register the warning capture

* Display only createElement warnings

* Use different method name

* Fix regression

* Ignore errors with only node_module files

* Ignore null files, too

* Revise count

* Revise warning

* Update overlay.js

* Add support for https://github.com/facebook/react/pull/9679

* Use absolute paths

* Trim path if it's absolute

* Make sure it's an absolute path

* Oops

* Tweak for new behavior

* Make it safer

* More resilient warnings

* Prettier output

* Fix flow
2017-05-13 14:39:32 +01:00
Cesar Varela
fa4829629a Update README.md (#2137) 2017-05-12 17:42:34 +01:00