From 82934016fbd1fe149f5d8f23858d0bef0bb7c38f Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 3 Apr 2024 13:49:52 +0100 Subject: [PATCH 1/2] docs: use new `nuxi module add` command in installation --- README.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index fe2583e..c3f6725 100644 --- a/README.md +++ b/README.md @@ -25,14 +25,7 @@ This module is really just about making it work with Nuxt 3 without the need to 1. Add `nuxt3-leaflet` dependency to your project ```bash -# Using pnpm -pnpm add -D nuxt3-leaflet - -# Using yarn -yarn add --dev nuxt3-leaflet - -# Using npm -npm install --save-dev nuxt3-leaflet +npx nuxi@latest module add nuxt3-leaflet ``` 2. Add `nuxt3-leaflet` to the `modules` section of `nuxt.config.ts` From 8d7975977590bc6dccc15d2c6fc5b435c550268a Mon Sep 17 00:00:00 2001 From: Gugustinette <63470020+Gugustinette@users.noreply.github.com> Date: Wed, 3 Apr 2024 16:26:52 +0200 Subject: [PATCH 2/2] Update README to remove nuxt.config.ts part --- README.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/README.md b/README.md index c3f6725..85ae0c8 100644 --- a/README.md +++ b/README.md @@ -22,22 +22,10 @@ This module is really just about making it work with Nuxt 3 without the need to ## Quick Setup -1. Add `nuxt3-leaflet` dependency to your project - ```bash npx nuxi@latest module add nuxt3-leaflet ``` -2. Add `nuxt3-leaflet` to the `modules` section of `nuxt.config.ts` - -```js -export default defineNuxtConfig({ - modules: [ - 'nuxt3-leaflet' - ] -}) -``` - That's it! You can now use Leaflet in your Nuxt app ✨ ## Usage