Commit Graph

130 Commits

Author SHA1 Message Date
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
Dirk-Jan Rutten
cdd17a6914 Crash the build during CI whenever linter warnings are encountered (#944)
* Added functionality to crash the build during CI whenever linter warnings are encountered.

* Updated the docs with a description on how to use the build in CI

* Fixed small typo

* Fixed description of build error.
2016-12-03 14:39:29 +02:00
Orta
9ce0aa5f5a Add a note about vscode-jest (#1126) 2016-12-01 16:09:43 +00:00
Dan Abramov
f5f4460681 Add a link to PWA instructions 2016-11-28 17:35:57 +00:00
Adam Stankiewicz
dc6edce99b Add support for non-interactive terminal (#1032) 2016-11-23 23:36:01 +02:00
Dave Ceddia
ce918191b2 Enable proxying of websockets (#1090)
Added `ws: true` to the httpProxyMiddleware options, and also listen
for the "upgrade" event so that websockets can be proxied immediately,
rather than waiting for an initial HTTP request.
2016-11-23 19:42:54 +00:00
Daniel Rech
66adb3e021 Add a note for OSX users about watchman and jest (#1080)
* Add a note for OSX users about watchman and jest

Minor additional information on how to solve watchman problems reported in #713 and #1767

* Introduced new Troubleshooting section

Add better explanation how to solve #713 and linked related Issues.

* Tweak wording and add it to TOC
2016-11-23 13:17:02 +00: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
Brian Ng
9c45b25281 Enable useBuiltIns option on object-rest-spread (#902)
* Enable useBuiltIns option on object-rest-spread

* note polyfill requirement

* Enable useBuiltIns with transform-react-jsx

* Add direct ref to transform-react-jsx
2016-11-22 00:08:58 +02:00
Stefan
6e00813632 Adapt jest and eslint for new default loader scope. (#1077)
Revert webpack prod config comments to not refer to dev server.
2016-11-22 00:03:40 +02:00
Ville Immonen
7e9cb18a55 Upgrade Jest to 17.0 (#1078)
* Replace `scriptPreprocessor` config with `transform`.
* Also remove `moduleFileExtensions` which has been redundant since 16.0
  (`['js', 'json', 'jsx', 'node’]` is the default)
2016-11-21 23:00:39 +02:00
Brian Ng
2da6edabab Replace rimraf with fs-extra functions (#1072) 2016-11-21 18:26:08 +00:00
Stefan
058b2cc887 exclude html from default loader. (#1075) 2016-11-21 13:57:21 +02:00
Ville Immonen
e04263408c Remove bundledDependencies (#1068)
* Remove bundledDependencies
* Change the e2e scripts to use local file dependencies instead of
  bundledDependencies to test the packages
2016-11-21 13:26:07 +02:00
Marc Garreau
29299f2d66 Adds to docs - deployment with S3/CloudFront (#1071)
* Adds to docs - deployment with S3/CloudFront

* Tweaks
2016-11-20 22:56:53 +00:00
Stefan
1c622ec34f Use url-loader with limit 10k as a default loader. (#1059)
Loads all files not already handled by other loaders.
Also, switch image loading from file loader to url-loader.
2016-11-21 00:00:10 +02:00
Dan Abramov
8edfcb50cd Better GH Pages guide 2016-11-20 20:12:43 +00:00
Dan Abramov
0a0ecab692 Tweak wording 2016-11-20 19:34:14 +00:00
Dan Abramov
5f15e5609a Remove "Defined Elsewhere" from the header 2016-11-20 19:31:34 +00:00
Jurie Horneman
61b123df57 Added info on using global variables. (#976)
* Added info on using global variables.

See issue #972.

* Fixed typo.

* Moved new section.

* Small tweaks

* Syntax highlighting
2016-11-20 19:29:45 +00:00
Arunoda Susiripala
8cf45e1fd5 Add Storybook to the user guide (#738)
* Add Storybook to the user guide

* Add the missing "Snapshot Testing" link.

* Change the title to something nicer

Old title was looks like a marketing pitch. Change it to something looks great.
The new one is: Developing UI Components with React Storybook.

* Mention React Storybook as a third party tool.

* Nits

* Minor changes
2016-11-20 19:15:59 +00:00
Fabrizio Castellarin
445048b3c8 Move the remove-on-eject-end tag at the end of the file (#978) 2016-11-20 18:34:18 +00:00
Dan Abramov
ff7e22e5a8 Update GH deploy instructions to match User Guide 2016-11-20 18:13:09 +00:00
ekaradon
e14d2da4fc fix poor performance with firefox when using eval as devtool (#924)
Enable sourcemaps in development
2016-11-20 17:24:54 +00:00
Nazim Hajidin
a5c30b945f Don't look for babelrc file during test (#1017) 2016-11-20 16:23:11 +02:00
Nazim Hajidin
f4cb5952e1 Update css loader (#1057)
* Update css-loader to 0.26.0

* Update the production webpack config
2016-11-20 15:35:35 +02:00
Nazim Hajidin
1668fb1948 Add missing --dev argument (#1058) 2016-11-20 15:30:12 +02:00
Dan Abramov
bc4a12adc6 It's important after all 2016-11-20 01:58:46 +00:00
Ville Immonen
bcc469c9a5 Support Yarn (#898)
In the `create-react-app` command, try to install packages using Yarn.
If Yarn is not installed, use npm instead.

In `react-scripts`, detect if the project is using Yarn by checking if
a `yarn.lock` file exists. If the project is using Yarn, display all
the instructions with Yarn commands and use Yarn to install packages
in `init` and `eject` scripts.
2016-11-17 22:55:00 +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
Vesa Laakso
4a7f78ed66 Remove unnecessary transform plugins for object spread to work (#1052)
* Update `babel-plugin-transform-object-rest-spread` to v6.19.0

The `babel-plugin-transform-object-rest-spread` v6.19.0 update will
allow us to remove the `babel-plugin-transform-es2015-destructuring` and
`babel-plugin-transform-es2015-parameters` as the object rest spread
transform will now work standalone and not require additional tranforms

* Remove unnecessary babel transform plugins from babel-preset-react-app

The `babel-plugin-transform-object-rest-spread` v6.19.0 update makes
these plugins unnecessary, as v6.19.0 can be used stand-alone
2016-11-17 16:14:36 +00:00
Sathish
80fe767bf2 Clears the usage of react-jsx-source & react-jsx-self (#992)
Explain the usage of react-jsx-source & react-jsx-self
2016-11-17 12:54:12 +00:00
Vesa Laakso
da1d534a6b Update babel-present-env and use node: 'current' as target (#1051)
* Update babel-preset-env to 0.0.8

Changes between 0.0.6 and 0.0.8 should be backwards compatible:
https://github.com/babel/babel-preset-env/blob/master/CHANGELOG.md

* Use `node: 'current'` as target for babel-preset-env

This replaces the hand-rolled node version setup with a new feature that
was introduced in babel-preset-env@v0.0.7

https://github.com/babel/babel-preset-env/blob/v0.0.7/CHANGELOG.md
2016-11-17 12:48:22 +00:00
Leo Wong
79160b858a Remove redundant function from export statement (#996) 2016-11-01 13:56:29 +00: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
Ville Immonen
6bda4b9726 Remove custom babel-loader cache dir config (#983)
Upgrade `babel-loader` and remove the cache directory configuration
that was added in #620. `babel-loader` now uses the
`./node_modules/.cache/babel-loader` directory by default, so the
custom config is no longer needed.
2016-10-29 20:00:16 +01:00
Alice Rose
7ce4b6e0e4 Check for presence of folders before continuing eject. Closes #939. (#951) 2016-10-28 13:54:56 +01:00
Vadzim
8a5c50d97a Fixes https://github.com/facebookincubator/create-react-app/issues/952 (#953) 2016-10-28 13:51:56 +01:00
David Ernst
fcda24eee8 Always build before deploying to gh-pages (#959)
* Always build before deploying to gh-pages

* Add line to gh-pages deploy docs about CNAME file

* Remove spaces in npm run command for Windows

* Grammar nit

* Minor tweaks
2016-10-28 13:51:06 +01:00
Patrick Mackinder
a0efbebee2 Add collectCoverageFrom option to collect coverage on files without any tests. (#961) 2016-10-28 13:47:08 +01: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
Swizec Teller
91c86502a4 Gently nudge users towards https by default (#974)
gh-pages supports https. It's important for prominent help files to encourage best practices.
2016-10-28 13:42:51 +01:00
Fatih
ca443abe62 Enable compression on webpack-dev-server (#966) (#968) 2016-10-28 13:41:51 +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
Ville Immonen
9b85e458b0 Update eslint-config-react-app version in the guide 2016-10-22 23:32:46 +03:00
Ville Immonen
27500900af Forbid Webpack loader syntax in imports (#803)
Enable no-webpack-loader-syntax rule in eslint-config-react-app.
2016-10-22 23:11:25 +03:00
Ville Immonen
d5de99e00b Update dependencies (#945)
* Update dependencies

* Use published version of eslint-config-react-app for development

We dogfood on our eslint-config-react-app by using it as our ESLint config,
but installing it from the local folder causes problems when its peerDependencies
are updated, because npm won't update it unless the version number changes.

Use the published version for dogfooding so it can be installed from npm.
2016-10-22 22:36:15 +03:00
Nathan Hunzaker
59acae6ab2 PostCSS should run on @import statements. (#929) 2016-10-19 10:19:12 +01:00
Jeffrey Carl Faden
d7ecd92859 Enable babel parameters/destructuring for all versions of Node (#927)
* Enable babel parameters/destructuring for all versions of Node

* Add more descriptive comment explaining plugin use
2016-10-18 18:31:58 +01:00
Michael Scholtz
e4e86cd5d3 Fix Travis CI config in template README.md (#910) 2016-10-17 22:51:22 +03:00