From d269f526775b9eb5504464fd51281bd0059df03e Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 9 Apr 2024 23:46:20 +0200 Subject: [PATCH] docs: use new `nuxi module add` command in installation (#514) Co-authored-by: Chakir QATAB --- README.md | 2 +- docs/content/0.index.md | 2 +- docs/content/1.getting-started/1.setup.md | 17 ++--------------- 3 files changed, 4 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 833938a4..c0b1bfc1 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Integrate [Storybook](http://storybook.js.org) into your [Nuxt](https://nuxt.com ## Installing ``` -pnpm add -D @nuxtjs/storybook +npx nuxi@latest module add storybook ``` Update your `nuxt.config`: diff --git a/docs/content/0.index.md b/docs/content/0.index.md index a5969e6e..84a09294 100644 --- a/docs/content/0.index.md +++ b/docs/content/0.index.md @@ -13,7 +13,7 @@ cta: secondary: - Star on GitHub → - https://github.com/nuxt-modules/storybook -snippet: pnpm add -D @nuxtjs/storybook +snippet: npx nuxi@latest module add storybook --- #title diff --git a/docs/content/1.getting-started/1.setup.md b/docs/content/1.getting-started/1.setup.md index 9dd6cf2b..ff628e21 100644 --- a/docs/content/1.getting-started/1.setup.md +++ b/docs/content/1.getting-started/1.setup.md @@ -5,23 +5,10 @@ Using Storybook in your Nuxt project is only one command away ✨ ## Installation 1. Install `@nuxtjs/storybook` dependency to your project: - -::code-group - -```bash [yarn] -yarn add -D @nuxtjs/storybook -``` - -```bash [npm] -npm install -D @nuxtjs/storybook -``` - -```sh [pnpm] -pnpm i -D @nuxtjs/storybook +```bash +npx nuxi@latest module add storybook ``` -:: - 2. Add it to your `modules` section in your `nuxt.config`: ::code-group