You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update from upstream repo facebookincubator/create-react-app (#1)
* Update Travis CI Node versions in User Guide (facebook#2454)
Removed Node v4 (CRA only supports Node >= 6)
* re-add storybook && update the documentation and links (facebook#2331)
* re-add storybook && update the documentation and links
* Change to new documentation domain
* Prioritize index.css over the implicit App.css (facebook#2470)
* Added NamedModulesPlugin in webpack.config.dev.js (facebook#2458)
* Added NamedModulesPlugin in webpack.config.dev.js
* Update webpack.config.dev.js
* Unscope detect-port (facebook#2483)
Resolvesfacebook#2481
* Update webpack links to point to webpack 2 (facebook#2492)
* Update README.md to make links to webpack point to webpack.js.org instead
insteade of webpack 1 webpack.githup.io
* chore(templates): Move GitHub templates to hidden .github folder (facebook#2489)
* Fix minor docs typo (facebook#2500)
* Fix link to Storybook docs (facebook#2521)
* Simplify flow init docs (facebook#2522)
- Call `npm run flow --init` won't create a .flowconfig file, it should be `npm run flow init`
Copy file name to clipboardexpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -199,7 +199,7 @@ Some of them might get added in the future if they are stable, are useful to maj
199
199
The tools used by Create React App are subject to change.
200
200
Currently it is a thin layer on top of many amazing community projects, such as:
201
201
202
-
*[webpack](https://webpack.github.io/) with [webpack-dev-server](https://github.com/webpack/webpack-dev-server), [html-webpack-plugin](https://github.com/ampedandwired/html-webpack-plugin) and [style-loader](https://github.com/webpack/style-loader)
202
+
*[webpack](https://webpack.js.org/) with [webpack-dev-server](https://github.com/webpack/webpack-dev-server), [html-webpack-plugin](https://github.com/ampedandwired/html-webpack-plugin) and [style-loader](https://github.com/webpack/style-loader)
203
203
*[Babel](http://babeljs.io/) with ES6 and extensions used by Facebook (JSX, [object spread](https://github.com/sebmarkbage/ecmascript-rest-spread/commits/master), [class properties](https://github.com/jeffmo/es-class-public-fields))
2. Add `"flow": "flow"` to the `scripts` section of your `package.json`.
693
-
3. Run `npm run flow -- init` (or `yarn flow -- init`) to create a [`.flowconfig` file](https://flowtype.org/docs/advanced-configuration.html) in the root directory.
693
+
3. Run `npm run flow init` (or `yarn flow init`) to create a [`.flowconfig` file](https://flowtype.org/docs/advanced-configuration.html) in the root directory.
694
694
4. Add `// @flow` to any files you want to type check (for example, to `src/App.js`).
695
695
696
696
Now you can run `npm run flow` (or `yarn flow`) to check the files for type errors.
@@ -1082,7 +1082,7 @@ The watcher includes an interactive command-line interface with the ability to r
1082
1082
1083
1083
### Version Control Integration
1084
1084
1085
-
By default, when you run `npm test`, Jest will only run the tests related to files changed since the last commit. This is an optimization designed to make your tests runs fast regardless of how many tests you have. However it assumes that you don’t often commit the code that doesn’t pass the tests.
1085
+
By default, when you run `npm test`, Jest will only run the tests related to files changed since the last commit. This is an optimization designed to make your tests run fast regardless of how many tests you have. However it assumes that you don’t often commit the code that doesn’t pass the tests.
1086
1086
1087
1087
Jest will always explicitly mention that it only ran tests related to the files changed since the last commit. You can also press `a` in the watch mode to force Jest to run all tests.
1088
1088
@@ -1244,7 +1244,6 @@ Popular CI servers already set the environment variable `CI` by default but you
1244
1244
```
1245
1245
language: node_js
1246
1246
node_js:
1247
-
- 4
1248
1247
- 6
1249
1248
cache:
1250
1249
directories:
@@ -1322,30 +1321,30 @@ If you use [Visual Studio Code](https://code.visualstudio.com), there is a [Jest
1322
1321
1323
1322

1324
1323
1325
-
<!--
1326
1324
## Developing Components in Isolation
1327
1325
1328
1326
Usually, in an app, you have a lot of UI components, and each of them has many different states.
1329
1327
For an example, a simple button component could have following states:
1330
1328
1331
-
* With a text label.
1332
-
* With an emoji.
1329
+
* In a regular state, with a text label.
1333
1330
* In the disabled mode.
1331
+
* In a loading state.
1334
1332
1335
1333
Usually, it’s hard to see these states without running a sample app or some examples.
1336
1334
1337
-
Create React App doesn’t include any tools for this by default, but you can easily add [React Storybook](https://github.com/kadirahq/react-storybook) to your project. **It is a third-party tool that lets you develop components and see all their states in isolation from your app**.
1335
+
Create React App doesn’t include any tools for this by default, but you can easily add [Storybook for React](https://storybook.js.org) ([source](https://github.com/storybooks/storybook)) to your project. **It is a third-party tool that lets you develop components and see all their states in isolation from your app**.

1340
1338
1341
-
You can also deploy your Storybook as a static app. This way, everyone in your team can view and review different states of UI components without starting a backend server or creating an account in your app.
1339
+
A storybook can also be deployed as a static app.
1340
+
This way, everyone in your team can view and review different states of UI components without starting a backend server or creating an account in your app.
1342
1341
1343
-
**Here’s how to setup your app with Storybook:**
1342
+
### Setup your app with Storybook
1344
1343
1345
1344
First, install the following npm package globally:
1346
1345
1347
1346
```sh
1348
-
npm install -g getstorybook
1347
+
npm install -g @storybook/cli
1349
1348
```
1350
1349
1351
1350
Then, run the following command inside your app’s directory:
@@ -1359,10 +1358,9 @@ After that, follow the instructions on the screen.
1359
1358
Learn more about React Storybook:
1360
1359
1361
1360
* Screencast: [Getting Started with React Storybook](https://egghead.io/lessons/react-getting-started-with-react-storybook)
0 commit comments