Commit Graph

104 Commits

Author SHA1 Message Date
Dan Abramov
2558c3e32f Publish
- eslint-config-react-app@1.0.3
 - react-dev-utils@2.0.0
 - react-error-overlay@1.0.5
 - react-scripts@1.0.5
2017-05-22 17:09:28 +01:00
Dan Abramov
25f81f2bea Files in public/ folder should not be requested through proxy (#2326) 2017-05-22 17:04:17 +01:00
Dan Abramov
9cfa3552ba Limit console warnings to 5 files at most (#2327) 2017-05-22 16:36:53 +01:00
Pavol Madar
0d1521aabf Remove connect-history-api-fallback and cross-spawn dependencies from react-scripts (#751) (#2320) 2017-05-22 12:46:51 +01:00
Dan Abramov
d649b8a0de Publish
- eslint-config-react-app@1.0.2
 - react-dev-utils@1.0.3
 - react-error-overlay@1.0.3
 - react-scripts@1.0.3
2017-05-21 20:56:22 +01:00
Joe Haddad
2430b5615f Ensure address is private (#2297)
* Ensure address is private
Resolves #2296

* adjust rule

* Update WebpackDevServerUtils.js
2017-05-21 20:44:28 +01:00
Broda Noel
7348ca9bd1 Wrap console calls into a check (#2301)
* Wrap console calls into a check

* Add another check
2017-05-21 20:42:28 +01:00
Dan Abramov
ae0cb23dc9 Publish
- react-dev-utils@1.0.2
 - react-error-overlay@1.0.2
 - react-scripts@1.0.2
2017-05-20 19:20:46 +01:00
pmadar
a1749f9154 Remove unnecessary dependencies(#751) (#2283)
* Remove unnecessary dependencies(#751)

* Sort alphabetically
2017-05-20 19:08:58 +01:00
Jeffrey Posnick
eadfad28f4 Provide a no-op SW that will be served by the dev environment. (#2276)
* Provide a no-op SW that will be served by the dev environment.

* Hide no-op service worker from user
2017-05-20 19:07:43 +01:00
Dan Abramov
d76c1b78eb Wrap console calls into a check (#2290) 2017-05-20 19:06:48 +01:00
Dan Abramov
f3ff3f2473 Add missing license headers 2017-05-20 18:59:22 +01:00
Malcolm
d3e85364fe Add WSL support to launchEditor utility (#2282) 2017-05-20 17:52:58 +01:00
Jonathan
68cd59837e Fix missing dependency (#2269)
* Adding missing dependency

* Pinning text-table dependency
2017-05-19 22:57:11 +01:00
Dan Abramov
cd5c6d5717 Publish
- eslint-config-react-app@1.0.1
 - react-dev-utils@1.0.1
 - react-error-overlay@1.0.1
 - react-scripts@1.0.1
2017-05-19 20:22:12 +01:00
chyipin
1834cb5dbd Show customized build path for serve instruction (#2229)
* Show customized build path for serve instruction

* Remove cyan
2017-05-19 17:18:00 +01:00
Joe Haddad
70a7f28e2b Add explicit package dependence (#2243)
Closes #2232
2017-05-19 08:19:04 -04:00
Dan Abramov
6c8b18b0cd Improve interaction between compile and runtime overlays (#2219) 2017-05-18 23:07:56 +01:00
Dan Abramov
43b819c2bb "rule keywords" => "keywords" 2017-05-18 22:46:30 +01:00
Dan Abramov
55afd862c8 Move error overlay middleware (#2216) 2017-05-18 21:01:26 +01:00
Dan Abramov
07c75aa5fd Replace text-align: start with left to fix Edge (#2215) 2017-05-18 19:04:43 +01:00
Dan Abramov
8dc9217b61 Move more logic from react-scripts to react-dev-utils (#2209)
* Show warnings for builds

* Move WebpackDevServer helpers into react-dev-utils
2017-05-18 12:26:18 +01:00
Brian Vaughn
0681e24531 Tweaked error overlay styles (pt2) (#2208)
* Fixed several of the issues and nits from PR:

* Moved margin between header and file name to header, so when content was scrolled, the header would remain more separate
* Made build-time and runtime overlays better match
* Secondary error <pre> style now uses yellow bg instead of red
* 'Scrollable Header' (see above comment to why this is necessary) but I did increase the max-height from 35% to 50%.
* Fixed header and 'X' button vertical alignment

* Temporary stack margin fix

* Move "N errors" to the top
2017-05-18 12:25:43 +01:00
Dan Abramov
c82c4f0561 Refactor and improve build output (#2202) 2017-05-18 01:24:42 +01:00
Brian Vaughn
68f95d4133 Tweaking error overlay styles (#2201)
* Tweaked overlay styles

* Tweaked pre-style

* Clicked to background overlay dismiss

* Tidied up styles tobe more mobile Safari friendly

* Re-enabled pre-wrap

* Margin fixes

* Base font-size 10 -> 11px

* Error overlay is full-screen now based on feedback

* Make "N errors on the page" visible again

* Fix bottom margin of frame location and lack of tab nav

* Add tooltip to close button

* Bring compile error styles closer to runtime overlay

* s/when/if/
2017-05-18 00:48:33 +01:00
Joe Haddad
c27d765014 Test module scoping (#2198)
* Correct readme

* Add tests

* Update README.md
2017-05-17 14:52:55 -05:00
Dan Abramov
d9a2974574 Tidy up some build logs (#2197) 2017-05-17 20:10:17 +01:00
Joe Haddad
a61be9c619 Add module scope plugin (#2189)
* Add module scope plugin

* Oops

* Add comments

* Check windows seps too

* More descriptive error

* Document it
2017-05-17 12:19:52 +01:00
Dan Abramov
493e5a6996 Tweak lint rules (#2186) 2017-05-16 23:35:14 +01:00
Dan Abramov
46eeabca7e Tweak colors for better contrast on Windows (#2180) 2017-05-16 16:45:12 +01:00
Dan Abramov
58689133a1 Bump versions 2017-05-16 09:49:04 +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
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
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
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
Joe Haddad
dbd12f1452 Add a missing color mapping (#2146)
Closes #2127
2017-05-14 14:12:47 -04: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
1ede6a8d12 Only show first error (#2125) 2017-05-11 15:54:31 +01:00