docs: use code groups for install commands in module guide (#28094)

This commit is contained in:
Dominic 2024-07-11 16:06:14 +10:00 committed by Daniel Roe
parent 449bdf0778
commit 12df214418
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -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:**