Skip to content

Commit 72e1b6b

Browse files
authored
refactor: add default description for templates (#1418)
* chore: 给默认值 * perf: 不同选择有意义的值
1 parent 1d1e3c4 commit 72e1b6b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

suites/boilerplate/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,17 @@ export default async ({
5151
},
5252
);
5353
let hasPlugin = false;
54+
const descriptions = {
55+
site: 'A static site based on dumi',
56+
react: 'A react library developed with dumi',
57+
theme: 'A theme package for dumi',
58+
};
5459
const questions: prompts.PromptObject[] = [
5560
{
5661
name: 'description',
5762
type: 'text',
5863
message: `Input project description`,
64+
initial: descriptions[type],
5965
},
6066
{
6167
name: 'author',

0 commit comments

Comments
 (0)