-
Notifications
You must be signed in to change notification settings - Fork 3
/
prompts.js
62 lines (62 loc) · 1.37 KB
/
prompts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
module.exports = [
{
name: 'name',
message: 'What is the name of the new package?',
default: '{outFolder}',
filter: (val) => val.toLowerCase(),
},
{
name: 'description',
message: 'How would you describe the new package?',
default: 'An awesome package',
},
{
name: 'fullname',
message: 'What is your name?',
store: true,
},
{
name: 'email',
message: 'What is your email?',
default: '{gitUser.email}',
filter: (val) => val.toLowerCase(),
store: true,
},
{
name: 'website',
message: 'What is your website?',
default: '{gitUser.website}',
filter: (val) => val.toLowerCase(),
store: true,
},
{
name: 'username',
message: 'What is your GitHub username?',
default: '{gitUser.username}',
filter: (val) => val.toLowerCase(),
store: true,
},
{
name: 'docs',
message: 'Would you like to write docs?',
type: 'list',
pageSize: 10,
choices: [
{ name: 'VuePress', value: 'vuepress' },
{ name: "I don't write docs", value: false },
],
default: false,
},
{
when: (answers) => answers.docs !== false,
name: 'netlify',
message: 'Would you like deploy docs on netlify?',
type: 'list',
pageSize: 10,
choices: [
{ name: 'Yes', value: true },
{ name: 'Not needed', value: false },
],
default: false,
},
];