Skip to content

Commit

Permalink
docs: use new nuxi module add command in installation
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 3, 2024
1 parent 5be9140 commit 2ea7888
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 2 additions & 15 deletions docs/content/1.getting-started/1.setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ea7888

Please sign in to comment.