From 12df21441823dcaac80d221c5d81fb26f6c372cd Mon Sep 17 00:00:00 2001 From: Dominic <67210734+rexhent@users.noreply.github.com> Date: Thu, 11 Jul 2024 16:06:14 +1000 Subject: [PATCH] docs: use code groups for install commands in module guide (#28094) --- docs/2.guide/3.going-further/3.modules.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/2.guide/3.going-further/3.modules.md b/docs/2.guide/3.going-further/3.modules.md index f72b2c8ee1..7edccd99ed 100644 --- a/docs/2.guide/3.going-further/3.modules.md +++ b/docs/2.guide/3.going-further/3.modules.md @@ -13,10 +13,25 @@ With modules, you can encapsulate, properly test, and share custom solutions as We recommend you get started with Nuxt Modules using our [starter template](https://github.com/nuxt/starter/tree/module): -```bash [Terminal] +::code-group + +```bash [npm] npx nuxi init -t module my-module ``` +```bash [yarn] +yarn dlx nuxi init -t module my-module +``` + +```bash [pnpm] +pnpm dlx nuxi init -t module my-module +``` + +```bash [bun] +bunx nuxi init -t module my-module +``` +:: + This will create a `my-module` project with all the boilerplate necessary to develop and publish your module. **Next steps:**