-
Notifications
You must be signed in to change notification settings - Fork 1
/
prompts.js
50 lines (50 loc) · 1.09 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
module.exports = [
{
type: 'list',
name: 'version',
message: 'Choose a version of Vue.js',
choices: [
{
name: '2.x',
value: 'v2',
},
{
name: '3.x',
value: 'v3',
},
],
default: 'v2',
},
{
type: 'list',
name: 'type',
message: 'What type of project do you want to create?',
choices: [
{
name: 'default project',
value: 'default',
},
{
name: 'data visualization project',
value: 'data-v',
},
],
},
{
name: 'ui',
type: 'list',
message: 'Choose a UI Framework',
choices: [
{
name: 'none',
value: 'none',
},
{
name: 'Element UI',
value: 'element',
},
],
when: (answers) => answers.type === 'default',
default: 'none',
},
];