Commit Graph

193 Commits

Author SHA1 Message Date
froyog
1922f4d4d8 Allow ModuleScopePlugin accecpts an array as its appSrc (#4138)
* allow appSrc accepting an array

* fixture of finding all appSrcs logic

* update docs on ModuleScopePlugin accepts an array for appSrc

* minor typo fix in docs: change directory to directories.
2018-03-23 13:28:41 +01:00
Brian Ng
cb3f835586 Bump babel-related deps (#4159)
* Add explicit dep on plugin-proposal-object-rest-spread to babel-preset-react-app

* Bump babel-related deps to beta.42

* Pass useBuiltIns directly to react-preset
2018-03-18 14:22:56 -06:00
Pete Nykänen
e9abde7392 Alphabetize and clean files-array in react-dev-utils package.json (#4016)
Signed-off-by: petetnt <pete.a.nykanen@gmail.com>
2018-02-12 17:03:21 +00:00
Alexander Roberts
9690bc86d5 Add support for new yarn workspaces config format (#4001) 2018-02-11 13:36:02 +00:00
bradfordlemley
2c34d5b66e Use yarn when running inside yarn workspace. (#3997)
* Run yarn after ejecting.

* On eject, choose to run yarn instead of npm if yarn is available.

* Move monorepo to react-dev-utils.

* Fix lint.

* Rename monorepo to workspaceUtils.

* Add react-dev-utils dep for create-react-app.

* getMonorepo -> findMonorepo
2018-02-10 13:07:19 +00:00
Igor Fedyukin
03604a46f0 Autodetect GoLand editor (#3980) 2018-02-05 16:05:36 +00:00
Michaël De Boey
3767d91886 Fix package repository name (#3900) 2018-01-23 00:25:03 +00:00
Michaël De Boey
25184c4e91 Fix links to package (#3898) 2018-01-22 22:16:22 +00:00
Bond
9d67605ab6 Use custom bit.ly links (#3836)
* change link to advanced deployment

* Use custom CRA link for deployment

* use custom link for minification failure

* update link for deployment

* feedback
2018-01-18 09:17:02 -05:00
Joe Haddad
9754a23170 Bump deps 2018-01-18 00:04:38 -05:00
Joe Haddad
f0719866f2 Remove duplicated stack from thread-loader (#3847) 2018-01-17 22:05:35 -05:00
Dan Abramov
3b2c4e01f5 Remove stripColor() usage 2018-01-17 20:54:14 +00:00
Dan Abramov
406ab6c3c0 Bump Babel 2018-01-17 20:44:59 +00:00
Levin Rickert
346ea1cc8d Use wmic to get process list on Windows (#3808) 2018-01-17 19:32:05 +00:00
Dan Abramov
72c3d4ebb5 Try to fix CI (#3806)
* Try to fix CI

* Bump Jest elsewhere

* Bump Babel elsewhere

* Fix CI on Windows by writing .cmd file back
2018-01-16 18:24:14 +00:00
Joe Haddad
2e59c5412c Offer to set default browsers (#3792)
* Offer to set browser defaults

* Catch error on no

* Add ending newlines

* Ensure we re-check to prevent defaults from leaking

* Reduce nesting

* Add defaults message

* More explicit
2018-01-15 00:09:07 -05:00
Joe Haddad
5d1710aec2 Tell user what browser support their application was built with (#3782)
* Warn about browsers during build

* Better message
2018-01-15 00:08:48 -05:00
Dan Abramov
ea46cf4f36 Bump dependencies (#3785)
* Bump dependencies

* Use a more sensible way to compile error overlay

* Keep old chalk for global CLI
2018-01-15 00:08:47 -05:00
Clement Hoang
1552949a3b Switch to Babel 7 (#3522)
* Update dependencies in react-scripts

* Add first pass of working dependencies for babel-preset-react-app and react-scripts

* Bump more dependency versions

* Adjust more versions and edit fix options

* Restore functionality of old preset

* Disable Uglify in iframe webpack

* Apply prettier

* Re-enable cache in dev and clean deps

* Lock packages and move babel/core to dep in preset

* Bump babel-jest

* Re-enable uglify

* Nest forceAllTransforms correctly in webpack config

* Install babel-core bridge for jest

* Add jest-cli and babel-core bridge to make tests in react-error-overlay pass

* Re-enable transform-dynamic-import

* Add dynamic import syntax support back

* Use new babel in kitchensink

* Transform modules in test

* Revert "Transform modules in test"

This reverts commit 539e46a1d77259898b7e70d778a5e43fc25edc2a.

* Attempt fix for ejected tests

* try this

* Add regenerator back

* Bump babel deps to beta.34

* Remove bad files

* Use default when requiring babel transform plugin

* Bump deps

* Try the fix?

* Oopsie

* Remove some weird things

* Run Babel on react-error-overlay tests

* Try fixing kitchensink

* Use new API for codeFrame

* Add missing (?) babelrc

* Maybe this helps?

* Maybe fix mocha

* I shouldn't have deleted this 🤦
2018-01-15 00:07:57 -05:00
Dan Abramov
590df7eead Bump Jest to 22.0.6 (#3751) 2018-01-15 00:06:25 -05:00
aisensiy
776d2d6036 Update jest to 22 and support watchPathIgnorePatterns configuration (#3124)
* update jest to 21.0.2 to support watchPathIgnorePatterns configuration

* update jest to 21.1.0

* Try bumping Jest

* Bump babel-jest

* Try to debug weird CI failure

* Remove debug code

* Bump other Jest packages

* ffs

* temp

* Revert "temp"

This reverts commit 62aec9ac1ae70a995a89548feb7ac7870e5324c0.
2018-01-15 00:06:24 -05:00
Dan
e73a783ef1 Publish
- babel-preset-react-app@3.1.1
 - create-react-app@1.5.0
 - eslint-config-react-app@2.1.0
 - react-dev-utils@5.0.0
 - react-error-overlay@4.0.0
 - react-scripts@1.1.0
2018-01-15 00:53:37 +00:00
Dan Abramov
1e9eaf3630 Bump detect-port-alt (#3787)
* Bump detect-port-alt

* Bump again
2018-01-14 15:05:38 +00:00
Dan Abramov
585608e3d6 Update opn (#3784) 2018-01-14 10:24:00 +00:00
Ade Viankakrisna Fadlil
7b881f12e3 move the link for deployment to the bottom (#3736) 2018-01-10 17:43:32 +00:00
Ade Viankakrisna Fadlil
7fd37d35ed add link to deployment docs after build (#3104)
* add link to deployment docs after build

* Update printHostingInstructions.js
2018-01-10 16:51:12 +00:00
Siddharth Doshi
0ec41350db Use proxy for all request methods other than GET (#3726)
* Use proxy for all request methods other than GET

* Add comment
2018-01-10 12:00:03 +00:00
Jonathan
72b6eb8c3c Cleaning up printHostingInstructions a bit (#3036)
* Replacing literal 'build' with `buildFolder` variable

* Cleaning up the printHostingInstructions a bit

* Fixing undefined variable
2018-01-09 17:41:10 +00:00
Ryan McCue
887fd10ed8 Print full directory name from lsof (#3440)
awk splits lines based on spaces, which causes directory names with spaces to end up in other fields. Using a for loop allows us to print from the 9th field onwards instead of just the 9th field.
2018-01-09 16:07:21 +00:00
Tharaka Wijebandara
10b05c7662 Open editor to exact column from build error overlay (#3465)
* Open editor to exact column from build error overlay

* Update launch editor validations
2018-01-09 15:47:22 +00:00
shrynx
85bf3a937b added code-insiders to the editor list (#3652) 2018-01-09 15:46:46 +00:00
Juhamatti Niemelä
d61a3313f6 Fix asset size comparison for multi build stats (#3514)
If create-react-app project is ejected and webpack configuration is
modified to multi build setup FileSizeReporter would fail.

In those situations `webpackStats` parameter would contain stats array
for each build. This fix will try to access stats and then falls back
to using plaing webpackStats object.
2018-01-09 15:13:59 +00:00
Evan You
bef40eeb84 Add editor support for Sublime Dev & VSCode Insiders (#3700) 2018-01-09 15:10:31 +00:00
Daniel Verejan
d3a1765470 Update the string that clears the console. (#2071)
* Update the string that clears the console.

#1914
I've tested it with Windows 10 and 7, node versions from ~5.0.0 up to 7.7.0.
Didn't managed to test it on 8 but it should be fine.

* Update windows string

Add windows specific string for clearing the console.
2018-01-09 13:46:29 +00:00
Rafael E. Poveda
e3e8cdd699 Support setting none in REACT_EDITOR env variable (#3721)
* add support to set REACT_EDITOR to none

* change README message

* change condition to avoid problems with editor being null

* move condition to avoid extra code
2018-01-09 12:35:43 +00:00
Ernesto García
1b067c5659 Autodetect MacVim editor (#3545)
Adds support for the error overlay to detect and open the file with the error in MacVim.

Relates to #2636.
2018-01-08 21:08:29 +00:00
Norris Oduro
8cae659ec5 Fix path regex match bug (#3686)
* Fix path regex match bug

* Use the escape-string-regexp package to escape regex characters

* Remove redundant character escape from path

* Add removed escape of backslashes
2018-01-04 13:15:50 -05:00
Joe Lim
36cd35d684 Refactor extra watch options regex to react-dev-utils (#3362)
* extra watch options regex to react-dev-utils

* fix regex

* add test

* fix eslint error

* include react-dev-utils test in CI script

* attempt to fix import error

* attempt to fix error on CI

* Update .eslintrc
2017-11-03 22:23:31 -04:00
Dan Abramov
dc95d18c9c Publish
- create-react-app@1.4.3
 - react-dev-utils@4.2.1
 - react-scripts@1.0.16
2017-10-31 10:41:25 +00:00
Pete Feltham
e62bfdd7ce Replace template literal; fixes #3367 (#3368) 2017-10-31 09:04:35 +00:00
Dan Abramov
5e7b9675aa Publish
- babel-preset-react-app@3.1.0
 - react-dev-utils@4.2.0
 - react-error-overlay@3.0.0
 - react-scripts@1.0.15
2017-10-31 09:04:34 +00:00
Dan Abramov
d98b7565b4 Bump dependencies (#3342)
* Bump dependencies

* Downgrade source-map back to 0.5.x

Not sure what changed there but our bundle snapshot doesn't match with minor changes.
I couldn't figure out how to update it, and also whether we need to tweak getPrettyURL in response.
2017-10-28 21:34:47 +01:00
Tharaka Wijebandara
00ed100b26 Add click-to-open support for build errors (#3100)
* Implement click-to-open for babel syntax errors in build error overlay

* Add click-to-open support for lint errors and refactor parser

* Reactor code to reuse open-in-editor functionality in both build and runtime error overlays

* Fix some eslint warnings

* Add a comment about keeping middleware and dev client in sync

* Remove es6 features from webpack dev client

* Make open-in-editor functionality to work with new iframe script

* Rename `openInEditor` to `editorHandler`
 -  Remove indirection of openInEditorListener
 -  Check editorHandler for null before styling error clickable

* Fix flow errors
2017-10-05 20:21:17 -04:00
Joe Lim
1e98d0f428 Watch for changes in src/**/node_modules (#3230)
* Allow the dev server to watch for changes in src/node_modules

* fix eslint error

* fix broken regex

* handle trailing slash edge case for file paths

Closes #2760
Fixes #3223
2017-10-02 22:57:02 -04:00
Joe Haddad
b2c0b3f74b Publish
- babel-preset-react-app@3.0.3
 - create-react-app@1.4.1
 - eslint-config-react-app@2.0.1
 - react-dev-utils@4.1.0
 - react-error-overlay@2.0.2
 - react-scripts@1.0.14
2017-09-26 20:19:49 -04:00
Sophie Alpert
2e82ebb337 BSD+Patents -> MIT (#3189)
* File headers BSD+Patents -> MIT

* BSD+Patents -> MIT
2017-09-26 10:30:05 +01:00
Rasmus Eneman
2cff8db00b Display pid in already running message (#3131)
Fixes #3106
2017-09-16 18:22:06 -04:00
gulderov
1faee66a77 Auto-detect running editor on Linux for error overlay (#3077)
* Auto-detect running editor on Linux for error overlay

Basic support of auto detecting running editor for #2636.
Tested on Ubuntu 16.04.
It detects few editors. JetBrains products should start by
wrapper like /usr/local/bin/webstorm. Otherwise it takes a
lot of time to open editor.

* Comments fixed.

* List all processes owned by you

* Comment rewording
2017-09-11 08:31:28 -04:00
Ade Viankakrisna Fadlil
44cfbccfda Rerun prettier and pin version (#3058)
* rerun prettier for all files

* pin prettier to 1.6.1
2017-09-10 01:12:38 -04:00
Joe Haddad
5e300cebb3 Reload the page when an error has occurred (#3098)
* Reload the page when an error has occurred
Fixes #3096

* Use a global boolean instead
2017-09-08 22:52:18 -04:00