From 2ea78886ee316c776f7cace93e66bd41528cd177 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 3 Apr 2024 13:08:05 +0100 Subject: [PATCH] docs: use new `nuxi module add` command in installation --- README.md | 3 +-- docs/content/1.getting-started/1.setup.md | 17 ++--------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index dffd4f6d..f9075c94 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,7 @@ Integrate [Directus](https://directus.io/) to your [Nuxt](https://nuxt.com/) app ## Setup ```sh -yarn add nuxt-directus # yarn -npm i nuxt-directus # npm +npx nuxi@latest module add directus ``` ## Basic usage diff --git a/docs/content/1.getting-started/1.setup.md b/docs/content/1.getting-started/1.setup.md index 39a93f8f..449005e3 100644 --- a/docs/content/1.getting-started/1.setup.md +++ b/docs/content/1.getting-started/1.setup.md @@ -7,23 +7,10 @@ Connect to Directus easily from Nuxt with following commands ✨ ## Installation 1. Add `nuxt-directus` dependency to your project: - -::code-group - -```bash [Yarn] -yarn add --dev nuxt-directus -``` - -```bash [NPM] -npm install --save-dev nuxt-directus +```bash +npx nuxi@latest module add directus ``` -```bash [PNPM] -pnpm add -D nuxt-directus -``` - -:: - 2. Add it to your `modules` section in your `nuxt.config`: ```ts