24 Commits

Author SHA1 Message Date
Dan Abramov
49414d6ba0 Publish
- babel-preset-react-app@2.0.1
 - eslint-config-react-app@0.5.0
 - react-dev-utils@0.4.1
 - react-scripts@0.8.2
2016-12-07 21:31:11 +00:00
Jirat Ki
6ebec23a85 Chrome 'open tab' reuse an empty tab when possible (#1165)
* Reuse empty tab on open chrome apple script

* Break find tab into function

* Use property to store found

* Fix minor issues that caused window to not get active
2016-12-06 17:14:57 +00:00
James Newell
f7d9cd8166 Don't strip stack traces of evaluated webpack bundles (#1050)
* Don't strip stack traces of evaluated webpack code

* Strip stack traces at the end of a string

because the last line doesn't always have a `\n` and `create-react-app` is leaving the last line of the stack traces present in the error messages

* code comment

* code comment
2016-12-05 22:58:36 +00:00
Ville Immonen
5ee027d638 Publish
- babel-preset-react-app@2.0.0
 - create-react-app@0.7.0
 - eslint-config-react-app@0.4.0
 - react-dev-utils@0.4.0
 - react-scripts@0.8.0
2016-12-03 18:03:38 +02:00
Ian McNally
05c3b55c62 add logging of existing default port process on start (#816)
* add logging of existing port process on start

* Move port process wording in start command on to next line

* Color the named processes as cyan in terminal output

* Add handling for multiple processes on a part

- With the currently process filtering, if multiple processes are returned as running on port 3000, this command would fail. This splits apart the process IDing and the process naming, to support multiple processes.
- One curious thing about the bash command to get processes, is that it'll include browsers with a window open on localhost:3000. May want to reconsider that.

* Add process directory to existing port warning

- also moved terminal coloring up, when getting the process, to be able to distinguish the process command from the directory

* Change output color to all cyan, except "in"

* Rename getProcessNameOnPort -> getProcessForPort

- better reflects its broadened scope (both command and directory)

* Add checking if process is a CRA instance, to customize port running message

- moved from using package.json to a regex, for reliability

* Move getProcessForPort to react-dev-utils

- also allowed for breakdown of commands into helper methods

* Add documentation for getProcessForPort

* Add getProcessForPort to list of dev-scripts files

* Use app's package name when CRA app is running on another port

* Filter port process by those listening

- Removed the handling of multiple process IDs since you can filtering by listening process (and not have the browser in the list of processes)
- Trimmed the terminal outputs for better matching (process id) and better terminal output (directory of process)

* Update README on port helpers, to specify only one port returned

* Add ignore of stderr when executing process commands

- Make sure any potential errors don't leak to the user
2016-11-22 22:44:21 +02:00
Einar Löve
b9c9aeda03 Fix chrome tab reuse (#1035)
* Correctly checks site url to tab url in reuse check

* Bring chrome to foreground focused after tab reuse
2016-11-17 21:37:20 +02:00
Einar Löve
e3b69661d9 Allow webpack 2 as peerDependency in react-dev-utils (#963)
* Allow webpack 2 as peerDependency

* Remove webpack as peer dependency
2016-10-31 11:45:44 +00:00
Sandro Padin
0bd593baa7 Catch and noop call to open web browser. (#964)
Running `create-react-app` in a Docker container causes an unhandled rejection error in nodejs > 6.5 because the `opn` module tries to open a web browser in a system that doesn't have one. I figured this error could be safely ignored.
2016-10-28 13:45:50 +01:00
Ville Immonen
a5f760bab9 Publish
- babel-preset-react-app@1.0.0
 - create-react-app@0.6.0
 - eslint-config-react-app@0.3.0
 - react-dev-utils@0.3.0
 - react-scripts@0.7.0
2016-10-22 23:49:30 +03:00
Jarle Friestad
4e5a561d98 Dispose error overlay when linting errors have been corrected (#856)
* Dispose error overlay when linting errors have been corrected

* Fixed spelling error

* Minor style tweaks
2016-10-11 12:44:58 +01:00
Michal Kvasničák
4feff2acf7 Make webpackHotDevClient support webpack 2 too (#840)
* Support webpack 2

* Code style
2016-10-04 13:25:13 +01:00
unixdev
856001ff8c Fix script name to open chrome (#831)
A previous commit renamed the apple script to open chrome from
`chrome.applescript` to `openChrome.applescript`. That created
a minor bug. Even when chrome was open with the client app,
`npm start` would open the client app in a new Safari tab on
macOS instead of re-using the open tab in chrome.
2016-10-03 12:36:56 +01:00
Brian Ng
909d938166 Fix some typos (#809) 2016-10-01 12:13:42 +03:00
Dan Abramov
a8d29c8ca0 Fix usage example to match react-dev-utils@0.2.x API 2016-09-30 13:25:52 +01:00
Dan Abramov
dc6074abbc Publish
- react-dev-utils@0.2.1
 - react-scripts@0.6.1
2016-09-27 15:53:27 +01:00
Ville Immonen
7d0fd03b00 Fix the right and bottom padding of the error overlay (#758) 2016-09-26 10:29:55 +01:00
Dan Abramov
059536291e 0.6.0 2016-09-25 13:07:08 +01:00
Dan Abramov
17ab11e279 Add an unobtrusive log when server disconnects 2016-09-25 12:41:33 +01:00
Dan Abramov
e872907b50 Fix error overlay in Firefox (#749) 2016-09-25 12:33:43 +01:00
Dan Abramov
9cce0fb59f Add syntax error overlay in development (#744)
* Add syntax error overlay in development

* Support HMR being disabled

* Tweak CSS
2016-09-25 11:31:10 +01:00
Dan Abramov
12c95f313a 0.5.1 2016-09-24 00:56:02 +01:00
Ville Immonen
e41d671bee Fix InterpolateHtmlPlugin only replacing the first occurrence (#731)
Fixes https://github.com/facebookincubator/create-react-app/issues/625#issuecomment-249320724.
2016-09-24 00:28:32 +01:00
Dan Abramov
35f38fd44c Tweak README 2016-09-23 20:55:15 +01:00
Dan Abramov
e5bf5af296 Extract some utilities into a separate package (#723)
* Extract some utilities into a separate package

* Add utils dir to `files` in package.json

* Do not create an empty `utils` dir on eject
2016-09-23 20:53:08 +01:00