Commit Graph

290 Commits

Author SHA1 Message Date
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
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
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
Valerii Sorokobatko
80a7fc391d Feature/different env config files #1343 (#1344)
* support different env configs.

* fomrat code

* Hide doc

* Slightly rework the PR

* Remove .env in default template
* Use just one entry in the paths
* Unify env.js and loadEnv.js

* Oops, forgot these folks
2017-05-12 11:30:59 +01:00
Kelly
2de95c4097 Update Sass docs (#2114)
* update readme with fix from https://github.com/facebookincubator/create-react-app/issues/1939

* update with better globbing

* added note

* updating with a note and reverting previous changes

* how about this?

* refactor

* added note about new files back in after verifying locally

* spaces back in, sorry was my editor!

* removed note about new files :)

* added bullet about new files issue currently open on node-sass
2017-05-12 00:00:45 -04:00
Dan Abramov
a4bd567dac Bump React in development (#2122) 2017-05-11 15:11:15 +01:00
Joe Haddad
8d4604eb3a Default to 0.0.0.0 (#2117) 2017-05-11 13:42:57 +01:00
Joe Haddad
70768b321e Add react-error-overlay package (#2111)
* ༼ つ ◕_◕ ༽つ stack-frame-overlay

* Fix linting

* Remove auto overlay

* Fix e2e

* Pull in the rest

* Appease flow

* Correct dep

* Remove old repo references

* Check flow on test

* Test overlay in e2e

* Add cross env

* Rename package

* Make sure it gets built post-install

* Update the README

* Remove extra builds now that there's a postinstall script

* Revert "Remove extra builds now that there's a postinstall script"

This reverts commit 8bf601dbd36c1e0da7f785fa9ade70ab08ed8772.

* Remove broken script

* Fix some dev ergo
2017-05-10 19:56:30 -04:00
Joe Haddad
1acc3a45f1 Do not parse .eslintignore (#2115) 2017-05-10 19:24:51 -04:00
Ian Schmitz
f35593c12d Bump minimal Node version to 6 (#1897)
* Bump minimal Node version to 4.7.0

* Bump minimal Node version to 4.7.0

Modified additional files that needed a bump to 4.7.0 minimum node version

* Bump minimal Node version to 4.7.0

Reverse changes to packages/create-react-app/index.js as this file needs to continue to work on Node 0.10+

* Bump minimal node version to 6

* Bump minimal node version to 6

* Bump minimal node version to 6
2017-05-09 11:11:31 +01:00
Dan Abramov
3a527f2a09 Revert "Forbid using window properties as global variables" (#2099)
* Revert "Ignore the yarn cache directory (#2063)"

This reverts commit 94149c77a8.

* Revert "Forbid using window properties as global variables (#1840)"

This reverts commit 5a7d8e899e.
2017-05-08 19:26:03 +01:00
Jeremy Morrell
94149c77a8 Ignore the yarn cache directory (#2063) 2017-05-08 15:05:49 +01:00
Siddharth Doshi
5a7d8e899e Forbid using window properties as global variables (#1840)
* Forbid using window properties as global variables

* Change globals list to match Standard.

* Fix globals
2017-05-05 18:59:49 -04:00
Scott Ranger
59c439bd9f Fixed documentation link for storybook in README.md (#2081) 2017-05-04 15:23:45 +01:00
David Ascher
f762728975 Fix instructions for serving with now (#2052)
* Fix instructions for serving with now

Not sure if new, but the `--single` flag is now important.

* Keep it shorter
2017-05-02 19:23:52 +01:00
Lufty Wiranda
629d575a0a Update README.md (#2058)
* Update README.md

* Update README.md
2017-05-01 14:32:13 +01:00
Dan Abramov
851a404d18 Suggest to create .eslintrc for IDE lint plugins (#2054)
* Suggest to create .eslintrc for IDE lint plugins

* Update README.md

* Update README.md
2017-05-01 13:55:20 +01:00
Jeremy Stucki
3fac03664c Define dev chunk names (#2050)
* Define dev chunk names

Fixes #2046

* Add comment
2017-05-01 13:01:37 +01:00
Joe Haddad
d65070edc4 Use prop-types package (#2029) 2017-04-25 10:33:55 -04:00
Ben Pickles
33a9700173 Fix Netlify heading level. (#2033) 2017-04-25 15:14:06 +01:00
Joe Haddad
88f4f95ae8 Upgrade webpack deps and use strictExportPresence (#2028) 2017-04-25 10:36:18 +01:00
Joe Haddad
927c539bc5 Use custom sourcemap file names 2017-04-24 21:51:59 -04:00
Joe Haddad
5bb502a28f Turn off CSS source maps 2017-04-24 14:54:37 -04:00
Michael Wayman
a1b56cf8b3 Update README.md CSS Preprocessor --> node-sass-chokidar alternative (#1987)
* resolves facebookincubator/create-react-app#1986 updates CSS Preprocessor docs to include information on node-sass-chokidar alternative to node-sass

* Update README.md
2017-04-22 15:33:49 -04:00
Ade Viankakrisna Fadlil
d6173fd2a4 Minify and map css (#2013)
Minify and map css
2017-04-21 21:15:58 -04:00
Buns Shar
c0fd569654 Resolve localhost when offline on Windows (#1839)
* Change proxy localhost to I27.0.0.1 for windows

* Update comment

* resolve localhost IP with DNS lookup on windows

* Fix CI errors

* Promisify addWebpackMiddleware

* Remove Node 6 syntax

* Update addWebpackMiddleware.js

* Actually use the resolved proxy
2017-04-21 16:23:08 -04:00
Marco Fugaro
31a38b34c4 removed options in UglifyJsPlugin which are equal to the defaults (#1993)
* removed redundant already default options in UglifyJsPlugin

* re-enabled remove comments Uglify option

JSDoc-style comments weren't being removed
2017-04-19 11:40:42 +01:00
Igor Ramos
05f3f5ee81 Update doc server example to work from any directory (#1988)
* Node.js serving with absolute path

It’s safer to use the absolute path of the directory that you want to serve, in case you run the express app from another directory.

* Update README.md
2017-04-18 21:38:07 -04:00
Gabriel Aumala
ef86877331 Start the dev server at the specified host (#1301)
Pass the host from environment variable as argument of the devServer's
listen function instead of a field of options object.
Set the default host to 0.0.0.0 instead of localhost.
2017-04-18 21:06:54 -04:00
Joe Haddad
31243283ab Add linked modules test (#1913) 2017-04-14 23:46:04 -04:00
Buns Shar
f61cba104e Ensure proxy url starts with http:// or https:// (#1890) 2017-04-14 22:51:29 -04:00
Joseph Race
cb41a76eaa Update information in User Guide for Enzyme dependency (#1982) 2017-04-14 13:20:20 +01:00
Dan Abramov
798572a8bc Note that only jest-enzyme@2.x is compatible 2017-04-09 20:02:56 +01:00
Tom Canac
c83ee7a302 Suggest Yarn in HTML template (#1911)
* Fix npm to yarn

* yarn & npm

* Update index.html

* Switch ordering of suggestion

We should suggest NPM first for new users.
2017-04-05 13:28:32 -04:00
Joe Haddad
7b124e7fd4 Re-disable babel modules transform (#1894)
* Upgrade webpack & related deps

* Disable module transform (requires webpack 2+)
2017-03-26 23:50:36 -04:00
Asa Ayers
47a8148fb1 Fix importing npm linked libraries (#1359)
* Fix importing npm linked libraries

* Update webpack.config.dev.js

* Update webpack.config.prod.js
2017-03-22 20:29:53 -04:00
Andrej Badin
bc6fc95055 Update detect-port (#1861)
Previous changes caused `detect-port` to pick random port on app startup. Update fixes this regression, `detect-port` pick next available port instead.
2017-03-22 18:04:52 -04:00
Jonathan
2ac3f99b69 Fix responsive behavior in iOS 9+ (#1821)
* Adding shrink-to-fit=no for proper responsive handling on Safari 9+
2017-03-22 13:49:25 -04:00
Stoicescu Cristi
c436bf356e User Guide: Removed blockquote from code section, due to markdown conflict (#1869)
* Removed blockquote from code section

* Fix the fix
2017-03-21 01:21:09 +00:00
Dan Abramov
35d84ef052 Make Surge guide more focused 2017-03-18 15:28:37 +00:00
David
0ace417c45 Make scripts crash on unhandled rejections (#1819)
* Makes end-to-end testing crash on unhandled rejections

* Comment fix
2017-03-14 15:32:48 -04:00
Dan Abramov
ccb5f84dc6 Fixes a silent crash when ejecting (#1810)
* Fixes a silent crash when ejecting

* Delete unnecessary files

* Remove references to eslintrc in Webpack config

* Fix lint

* Correct ESLint CLI options
2017-03-14 11:17:53 -04:00
Geoff Davis
052fcdd986 Suggest "yarn build" rather than "yarn run build" (#1800)
* Fix for issue #1798: Suggested 'yarn build' versus 'yarn run build'

* remove 'run' from 'yarn test' command as well

* conditionally show 'run' if Yarn is not available
2017-03-12 15:13:41 +00:00
Ryan Walters
0c0c5c1f24 Run CI on Node 7; Bump detect-port: 1.0.1 -> 1.1.0 (#1776) (#1783)
* Run CI on Node 7

* Bump detect-port: 1.0.1 -> 1.1.0

* Run AppVeyor CI on Node 7
2017-03-09 21:01:43 +00:00
Leo Lamprecht
8c00af1440 Suggest serve for running in production (#1760)
* Suggest `serve` for serving the `build` directory

* How to handle it with Node in prod (or other platforms)

* Pretty newline added

* Adjusted default port of static server

* Remove `open` command from output

* Removed constant assignment

* Better explanation for not using having to use a static server

* Cute newline added

* Style nits
2017-03-08 22:34:31 +00:00
Andres Suarez
837f5449a5 Add yarn steps for adding flow (#1756)
[skip ci]
2017-03-07 21:44:35 +00:00
Valerii Sorokobatko
fe7b5c212b update to modern code style (#1738)
* mv create-react-app/index.js -> create-react-app/creteReactApp.js

* update to modern code style

* var -> cosnt

* set trailing-coma to es5 for prettier
2017-03-07 19:46:10 +00:00
Lorenzo Palmes
43873dc9b8 Display yarn instead of yarnpkg when creating a new app (#1747)
* Display yarn instead of yarnpkg

* Refactored displayd commands

* Removed testing directory
2017-03-07 14:29:39 +00:00