From ac807f307556e364a8bef7c6999823809d25f553 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Thu, 18 Oct 2018 15:39:43 +0800 Subject: [PATCH] Move storybook to rc (release canddiate) --- MIGRATION.md | 2 +- README.md | 4 ++-- app/angular/README.md | 2 +- app/ember/README.md | 2 +- app/html/README.md | 2 +- app/marko/README.md | 2 +- app/mithril/README.md | 2 +- app/polymer/README.md | 2 +- app/react-native/readme.md | 2 +- app/react/README.md | 2 +- app/riot/README.md | 2 +- app/svelte/README.md | 2 +- app/vue/README.md | 2 +- docs/src/pages/basics/quick-start-guide/index.md | 4 ++-- lib/cli/README.md | 8 ++++---- lib/cli/test/fixtures/react_scripts/README.md | 2 +- .../test/fixtures/update_package_organisations/README.md | 2 +- 17 files changed, 22 insertions(+), 22 deletions(-) diff --git a/MIGRATION.md b/MIGRATION.md index e0127c9190d..83f89881d1d 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -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 diff --git a/README.md b/README.md index f3c5517f5f5..d66a4e0f2e3 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/app/angular/README.md b/app/angular/README.md index 9f3024bacad..5db499f6e51 100644 --- a/app/angular/README.md +++ b/app/angular/README.md @@ -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) diff --git a/app/ember/README.md b/app/ember/README.md index b88152c99ff..46fb08720f2 100644 --- a/app/ember/README.md +++ b/app/ember/README.md @@ -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) diff --git a/app/html/README.md b/app/html/README.md index 78d02b76adf..358ab8d3ca5 100644 --- a/app/html/README.md +++ b/app/html/README.md @@ -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) diff --git a/app/marko/README.md b/app/marko/README.md index 0194167de29..da9f6317ab0 100644 --- a/app/marko/README.md +++ b/app/marko/README.md @@ -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) diff --git a/app/mithril/README.md b/app/mithril/README.md index 2c7c38a1955..80dab0607b8 100644 --- a/app/mithril/README.md +++ b/app/mithril/README.md @@ -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) diff --git a/app/polymer/README.md b/app/polymer/README.md index a642096f212..50a7d232206 100644 --- a/app/polymer/README.md +++ b/app/polymer/README.md @@ -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) diff --git a/app/react-native/readme.md b/app/react-native/readme.md index e96857de650..ce23ab6a46b 100644 --- a/app/react-native/readme.md +++ b/app/react-native/readme.md @@ -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. diff --git a/app/react/README.md b/app/react/README.md index 34b07631803..12cab706eff 100644 --- a/app/react/README.md +++ b/app/react/README.md @@ -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) diff --git a/app/riot/README.md b/app/riot/README.md index 5a8b5da4e32..fcdbaa47d6a 100644 --- a/app/riot/README.md +++ b/app/riot/README.md @@ -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) diff --git a/app/svelte/README.md b/app/svelte/README.md index 33fb8993c85..423919e35ae 100644 --- a/app/svelte/README.md +++ b/app/svelte/README.md @@ -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) diff --git a/app/vue/README.md b/app/vue/README.md index 3db4d42fa5a..0fdcc1faf73 100644 --- a/app/vue/README.md +++ b/app/vue/README.md @@ -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) diff --git a/docs/src/pages/basics/quick-start-guide/index.md b/docs/src/pages/basics/quick-start-guide/index.md index 0b9ee5df51f..f0daeae6266 100644 --- a/docs/src/pages/basics/quick-start-guide/index.md +++ b/docs/src/pages/basics/quick-start-guide/index.md @@ -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/). diff --git a/lib/cli/README.md b/lib/cli/README.md index a01525bb856..c1c2b06e4bd 100644 --- a/lib/cli/README.md +++ b/lib/cli/README.md @@ -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 +npx -p @storybook/cli@rc sb init --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) diff --git a/lib/cli/test/fixtures/react_scripts/README.md b/lib/cli/test/fixtures/react_scripts/README.md index 96a9ab7ec52..fc581cdb2da 100644 --- a/lib/cli/test/fixtures/react_scripts/README.md +++ b/lib/cli/test/fixtures/react_scripts/README.md @@ -1509,7 +1509,7 @@ Then, run the following command inside your app’s 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. diff --git a/lib/cli/test/fixtures/update_package_organisations/README.md b/lib/cli/test/fixtures/update_package_organisations/README.md index 51636f4c7f7..223649db162 100644 --- a/lib/cli/test/fixtures/update_package_organisations/README.md +++ b/lib/cli/test/fixtures/update_package_organisations/README.md @@ -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 app’s directory: ```sh -npx -p @storybook/cli@alpha sb init +npx -p @storybook/cli@rc sb init ``` After that, follow the instructions on the screen.