-
Notifications
You must be signed in to change notification settings - Fork 8
/
prompts.js
31 lines (30 loc) · 713 Bytes
/
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
const localeList = require('./lang.js')
module.exports = [
{
type: 'list',
name: 'import',
message: 'How do you want to import Ant-Design-Vue?',
choices: [
{ name: 'Fully import', value: 'full' },
{ name: 'Import on demand', value: 'partial' }
],
default: 'full',
},
{
when: answers => answers.import === 'full',
type: 'confirm',
name: 'customTheme',
message: 'Do you wish to overwrite Ant-Design-Vue\'s LESS variables?',
default: false,
},
{
type: 'list',
name: 'lang',
message: 'Choose the locale you want to load',
choices: localeList.map(locale => ({
name: locale,
value: locale
})),
default: 'en_US'
}
]