首页/ AI 技能 / @skilllib/skill-2117939930272411653
Skill站外收录 @skilllib/skill-2117939930272411653

nuxt-modules

提供 Nuxt 模块开发的完整支持,涵盖模块架构设计、运行时扩展、服务端集成及自动化测试与发布流程,适用于构建可复用的框架插件和本地项目增强功能,包含标准化工具链与最佳实践指导。

0.0 (0) 21 次安装 原作者 编程导航
收录于 2026-01-22
软件开发 AI 技能

Skills.MD

# Nuxt Module Development Guide for creating Nuxt modules that extend framework functionality. **Related skills:** `nuxt` (basics), `vue` (runtime patterns) ## Quick Start ```bash npx nuxi init -t module my-module cd my-module && npm install npm run dev # Start playground npm run dev:build # Build in watch mode npm run test # Run tests ``` ## Available Guidance - **[references/development.md](references/development.md)** - Module anatomy, defineNuxtModule, Kit utilities, hooks - **[references/testing-and-publishing.md](references/testing-and-publishing.md)** - E2E testing, best practices, releasing, publishing - **[references/ci-workflows.md](references/ci-workflows.md)** - Copy-paste CI/CD workflow templates **Load based on context:** - Building module features? → [references/development.md](references/development.md) - Testing or publishing? → [references/testing-and-publishing.md](references/testing-and-publishing.md) - CI workflow templates? → [references/ci-workflows.md](references/ci-workflows.md) ## Module Types | Type | Location | Use Case | | --------- | ---------------- | -------------------------------- | | Published | npm package | `@nuxtjs/`, `nuxt-` distribution | | Local | `modules/` dir | Project-specific extensions | | Inline | `nuxt.config.ts` | Simple one-off hooks | ## Project Structure ``` my-module/ ├── src/ │ ├── module.ts # Entry point │ └── runtime/ # Injected into user's app │ ├── components/ │ ├── composables/ │ ├── plugins/ │ └── server/ ├── playground/ # Dev testing └── test/fixtures/ # E2E tests ``` ## Resources - [Module Guide](https://nuxt.com/docs/guide/going-further/modules) - [Nuxt Kit](https://nuxt.com/docs/api/kit) - [Module Starter](https://github.com/nuxt/starter/tree/module)

评论 0

还没有评论,来抢沙发。