nuxt/modules · 文件 下载 ZIP
文件最后提交记录最后更新时间
README.md
以下内容由 AI 翻译,如有问题请点此提交 issue 反馈
Nuxt 模块
发现 Nuxt 模块,以便将任何 CMS、数据库、UI、认证和集成添加到您的 Vue 应用中。
模块数据库
Nuxt 模块的元数据维护在 ./modules 目录内的 yml 文件中,并自动从上游同步以获取最新信息。
添加/更新模块
pnpm sync <name> <repo>
示例:pnpm sync tailwindcss nuxt-modules/tailwindcss
要同步与 main 不同的分支,请在仓库后添加 #repo-branch 后缀,例如:pnpm sync tailwindcss nuxt-modules/tailwindcss#dev
贡献
- 如果您觉得缺少某个模块,请创建一个新的 issue
- 如果某些数据已过时,请直接提交一个 pull request
使用 CDN
编译后的 JSON 数据可从以下 CDN 获取:
- jsdelivr: https://cdn.jsdelivr.net/npm/@nuxt/modules@latest/modules.json
- unpkg: https://unpkg.com/@nuxt/modules@latest/modules.json
使用 npm 包
您可以通过在项目中安装 @nuxt/modules 包来使用它:
# npm
npm install @nuxt/modules
# pnpm
pnpm add @nuxt/modules
然后你可以直接导入模块列表:
// ESM
import modules from '@nuxt/modules'
// CommonJS
const modules = require('@nuxt/modules')
模式
| 字段名称 | 自动同步 | 描述 |
|---|---|---|
name | 否 | 规范名称或集成名称 |
description | 是 | 简短描述 |
repo | 否 | GitHub 仓库。格式为 org/name 或 org/name#main/path |
npm | 是 | NPM 包名称 |
icon | 否 | 来自 ./icons 目录的模块图标 |
github | 否 | GitHub URL |
website | 否 | 网站 URL |
learn_more | 否 | 了解更多链接(网站或相关集成网站) |
category | 否 | 来自 ./lib/categories.ts 的模块类别 |
type | 否 | community(用于 nuxt-community),official(用于 https://github.com/)或 3rd-party |
maintainers | 是 | 维护者列表,每项包含 name、github 和 avatar |
compatibility | 否 | 模块兼容性状态。nuxt 字段指定支持的 nuxt 版本的 semver。requires.bridge: true|optional 可用于指定 Nuxt 2 bridge 兼容性。 |
mcp | 否 | MCP Server URL |
维护
自动更新所有当前模块
pnpm sync
生成 modules.json
pnpm build
许可证
MIT - 由 Nuxt 团队制作