Move storybook to rc (release canddiate)

This commit is contained in:
Michael Shilman 2018-10-18 15:39:43 +08:00
parent 46d89b3e61
commit ac807f3075
17 changed files with 22 additions and 22 deletions

View File

@ -173,7 +173,7 @@ If you're using `start-storybook` on CI, you may need to opt out of this using t
We've deprecated the `getstorybook` CLI in 4.0. The new way to install storybook is `sb init`. We recommend using `npx` for convenience and to make sure you're always using the latest version of the CLI:
```
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
## From version 3.3.x to 3.4.x

View File

@ -55,7 +55,7 @@ First install storybook:
```sh
cd my-react-app
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
If you'd rather set up your project manually, take a look at our [Slow Start Guide](https://storybook.js.org/basics/slow-start-guide/).
@ -66,7 +66,7 @@ Once it's installed, you can `npm run storybook` and it will run the development
```sh
cd my-storybook-v2-app
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
It runs a codemod to update all package names. Read all migration details in our [Migration Guide](MIGRATION.md)

View File

@ -12,7 +12,7 @@ So you can develop UI components in isolation without worrying about app specifi
```sh
cd my-angular-app
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
For more information visit: [storybook.js.org](https://storybook.js.org)

View File

@ -12,7 +12,7 @@ So you can develop UI components in isolation without worrying about app specifi
```sh
cd my-ember-app
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
For more information visit: [storybook.js.org](https://storybook.js.org)

View File

@ -14,7 +14,7 @@ So you can develop UI components in isolation without worrying about app specifi
```sh
cd my-app
npx -p @storybook/cli@alpha sb init -t html
npx -p @storybook/cli@rc sb init -t html
```
For more information visit: [storybook.js.org](https://storybook.js.org)

View File

@ -12,7 +12,7 @@ So you can develop UI components in isolation without worrying about app specifi
```sh
cd my-marko-app
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
For more information visit: [storybook.js.org](https://storybook.js.org)

View File

@ -12,7 +12,7 @@ So you can develop UI components in isolation without worrying about app specifi
```sh
cd my-mithril-app
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
For more information visit: [storybook.js.org](https://storybook.js.org)

View File

@ -14,7 +14,7 @@ So you can develop UI components in isolation without worrying about app specifi
```sh
cd my-polymer-app
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
For more information visit: [storybook.js.org](https://storybook.js.org)

View File

@ -12,7 +12,7 @@ The `storybook` CLI tool can be used to add Storybook to your React Native app.
```shell
cd my-rn-app
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
The next thing you need to do is make Storybook UI visible in your app.

View File

@ -12,7 +12,7 @@ So you can develop UI components in isolation without worrying about app specifi
```sh
cd my-react-app
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
For more information visit: [storybook.js.org](https://storybook.js.org)

View File

@ -14,7 +14,7 @@ So you can develop UI components in isolation without worrying about app specifi
```sh
cd my-riot-app
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
For more information visit: [storybook.js.org](https://storybook.js.org)

View File

@ -12,7 +12,7 @@ So you can develop UI components in isolation without worrying about app specifi
```sh
cd my-svelte-app
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
For more information visit: [storybook.js.org](https://storybook.js.org)

View File

@ -12,7 +12,7 @@ So you can develop UI components in isolation without worrying about app specifi
```sh
cd my-vue-app
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
For more information visit: [storybook.js.org](https://storybook.js.org)

View File

@ -10,13 +10,13 @@ Get started using the automated command line tool. This command adds a set of bo
```sh
cd my-project-directory
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
The tool inspects your `package.json` to determine which view layer you're using. If you want to develop HTML snippets in storybook, we can't determine that automatically. So to install storybook for HTML, use the `--type` flag to force that the HTML project type:
```
npx -p @storybook/cli@alpha sb init --type html
npx -p @storybook/cli@rc sb init --type html
```
To setup a project manually, take a look at the [Slow Start Guide](/basics/slow-start-guide/).

View File

@ -10,7 +10,7 @@ Just go to your project and run:
```sh
cd my-app
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
That's all you've to do.
@ -24,7 +24,7 @@ The CLI supports yarn. If you have installed yarn in your system, it'll detect i
If you don't want to use `yarn` always you can use the `--use-npm` option like this:
```sh
npx -p @storybook/cli@alpha sb init --use-npm
npx -p @storybook/cli@rc sb init --use-npm
```
---
@ -34,7 +34,7 @@ npx -p @storybook/cli@alpha sb init --use-npm
It also supports flow files. By default, [jscodeshift](https://github.com/facebook/jscodeshift), the tool used to transform the source files, uses babel to read the files. To be able to transform any flow annotated file, you need to use the flow parser.
```sh
npx -p @storybook/cli@alpha sb init --parser flow
npx -p @storybook/cli@rc sb init --parser flow
```
For more information visit: [storybook.js.org](https://storybook.js.org)
@ -46,7 +46,7 @@ For more information visit: [storybook.js.org](https://storybook.js.org)
If the CLI cannot detect your project type, it will ask you. You can also force it to use a particular project type:
```sh
npx -p @storybook/cli@alpha sb init --type <type>
npx -p @storybook/cli@rc sb init --type <type>
```
Where type is one of the project types defined in [project_types.js](https://github.com/storybooks/storybook/blob/master/lib/cli/lib/project_types.js)

View File

@ -1509,7 +1509,7 @@ Then, run the following command inside your apps directory:
```sh
cd my-react-app
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
After that, follow the instructions on the screen.

View File

@ -1178,7 +1178,7 @@ You can also deploy your Storybook as a static app. This way, everyone in your t
Then, run the following command inside your apps directory:
```sh
npx -p @storybook/cli@alpha sb init
npx -p @storybook/cli@rc sb init
```
After that, follow the instructions on the screen.