create-playdayy
v2.1.0
Published
Playdayy 项目脚手架 — 基于模板 manifest 的 CLI
Maintainers
Readme
create-playdayy
Playdayy 项目脚手架 — 基于模板 manifest 的 CLI。
使用
npm create playdayy@latest new [项目名称]
# 或
npx create-playdayy new [项目名称]交互流程:
- 选择模板(midway / elysia / arco)
- 选择变体(如 midway 的 typeorm / prisma / mongoose)
- 勾选启用的插件(如 ezconfig / cross / jwt / pino …)
未勾选的插件,其代码目录与依赖会被自动剔除。
命令
create-playdayy new [项目名称] # 初始化新项目
create-playdayy list # 列出可用模板模板规范
每个模板仓库根目录需要提供 playdayy.template.json,描述变体与插件。
Schema:https://playdayy.cn/schema/template.json(CLI 仓 schema/template.schema.json)。
最小示例:
{
"$schema": "https://playdayy.cn/schema/template.json",
"name": "my-tpl",
"displayName": "My Template",
"variants": [
{ "name": "default", "branch": "master", "label": "默认" }
],
"plugins": []
}开发
npm install
npm run build # 编译到 ./bin
node ./bin/index.js new my-app