-
Notifications
You must be signed in to change notification settings - Fork 0
/
questions.js
63 lines (61 loc) · 1.67 KB
/
questions.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
63
module.exports = [
{
name: 'name',
message: 'Please name this new project:',
default: 'my-app',
validate: value => value.match(/^(@[.a-zA-Z1-9_-]+\/)?[.a-zA-Z1-9_-]+$/) ? null :
'Please only use letters, numbers, dot(.), dash(-) and underscore(_).'
},
{
message: 'Standalone or with theia apps?',
choices: [
{ title: 'Create project with apps' },
{ value: 'standalone', title: 'Only extension' }
]
},
{
multiple: true,
message: 'Create root project and apps? (default: both selected)',
choices: [
{ if: "!standalone", value: 'browser', selected: true, title: 'browser-app' },
{ if: "!standalone", value: 'electron', selected: true, title: 'electron-app' }
]
},
{
name: 'author',
message: "The extension's author"
},
{
name: 'version',
message: "The extension's version",
default: '0.0.0'
},
{
name: 'description',
message: "The extension's description"
},
{
name: 'theiaVersion',
message: "The version of Theia to use",
default: 'latest'
},
{
name: 'lernaVersion',
message: "The version of lerna to use",
default: '2.4.0'
},
{
message: 'Add vscode configuration files?',
choices: [
{ title: 'yes' },
{ value: 'no-vscode', title: 'No.' }
]
},
{
message: "Install dependencies?",
choices: [
{ title: 'Yes, please (if yarn available)' },
{ value: 'skip-install', title: 'No' },
]
},
];