forked from adambullmer/vue-cli-plugin-browser-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prompts.js
62 lines (60 loc) · 1.27 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: 'components',
type: 'checkbox',
default: ['popup', 'background'],
message: 'Which browser extension components do you wish to generate?',
choices: [
{
name: 'Background script',
value: 'background',
short: 'background',
checked: true
},
{
name: 'Browser Action Popup',
value: 'popup',
short: 'popup',
checked: true
},
{
name: 'Options Page',
value: 'options',
short: 'options'
},
{
name: 'Content Scripts',
value: 'contentScripts',
short: 'content scripts'
},
{
name: 'Override Page',
value: 'override',
short: 'override'
},
{
name: 'Standalone Tab',
value: 'standalone',
short: 'standalone'
},
{
name: 'Dev Tools Tab',
value: 'devtools',
short: 'dev tools'
}
],
filter: async (input) => {
const componentMap = {}
input.forEach((component) => {
componentMap[component] = true
})
return componentMap
}
},
{
name: 'generateSigningKey',
type: 'confirm',
message: 'Generate a new signing key (danger)?',
default: false
}
]