-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
54 lines (50 loc) · 1.05 KB
/
config.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
const ComponentPrefixMap = {
ui: 'Sdxu',
widget: 'Sdxw',
view: 'Sdxv'
};
const PACKAGE_TYPES = {
UI: 'ui',
WIDGET: 'widget',
VIEW: 'view'
};
const DEST_TYPES = {
PROJ_ROOT: 'PROJ_ROOT',
PACK_ROOT: 'PACK_ROOT',
COMP_ROOT: 'COMP_ROOT'
};
const varBEMMap = {
ui: '$bem-namespace-ui',
widget: '$bem-namespace-widget',
view: '$bem-namespace-view'
};
module.exports = {
packageQuestions: [
{
type: 'input',
name: 'version',
message: '版本号',
default: '1.0.0'
},
{
type: "input",
name: 'description',
message: '请输入项目描述',
default: 'A project based on SDX'
},
{
type: "list",
name: 'packageManager',
message: '请选择包管理工具',
default: 0,
choices: [
'npm',
'yarn'
]
}
],
ComponentPrefixMap,
PACKAGE_TYPES,
DEST_TYPES,
varBEMMap
};