@eljs/create-preset-structure
Version:
Project structure template powered by @eljs/create.
23 lines (20 loc) • 523 B
text/typescript
/* eslint-disable @typescript-eslint/naming-convention */
import { type Api } from '@eljs/create'
export default async (api: Api) => {
api.describe({
key: 'presetStructureQuestions',
})
api.addQuestions(() => {
return [
{
name: 'repositoryType',
type: 'select',
message: `仓库类型`,
choices: [
{ title: '多包单仓库(Monorepo)', value: 'monorepo' },
{ title: '单包单仓库(Polyrepo)', value: 'polyrepo' },
],
},
]
})
}