create-nuxt-module-dev
v1.0.13
Published
A template for creating Nuxt modules with modern development setup
Maintainers
Readme
create-nuxt-module
一个用于快速创建 Nuxt 模块的脚手架工具。
使用方法
使用 npm:
npm create nuxt-module-dev@latest使用 yarn:
yarn create nuxt-module-dev使用 pnpm:
pnpm create nuxt-module-dev功能特性
- 🚀 快速创建 Nuxt 模块项目
- 📦 包含完整的开发环境配置
- 🧪 集成测试框架 (Vitest)
- 📝 TypeScript 支持
- 🔍 ESLint 配置
- 🔄 GitHub Actions CI/CD
- 📖 完整的文档模板
生成的项目结构
my-nuxt-module/
├── src/
│ ├── module.ts # 主模块文件
│ └── runtime/
│ └── plugin.ts # 运行时插件
├── playground/ # 开发测试环境
│ ├── app.vue
│ └── nuxt.config.ts
├── .github/
│ └── workflows/
│ └── ci.yml # CI/CD配置
├── build.config.ts # 构建配置
├── package.json
├── README.md
└── LICENSE开发
# 克隆仓库
git clone https://github.com/idevless/create-nuxt-module.git
cd create-nuxt-module
# 安装依赖
npm install
# 测试本地创建
node bin/create-nuxt-module.js test-project许可证
MIT License © 2025 idevless
