-
Notifications
You must be signed in to change notification settings - Fork 3
/
browserConfig.js
56 lines (56 loc) · 1.42 KB
/
browserConfig.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
module.exports = () => ({
// environments
common: {
portal: {
help: {
default: '/a/help',
module: {
policy: 'ut-user',
bulk: 'ut-bulk-payment'
}
}
}
},
dev: {
portal: {
customization: true
}
},
storybook: {
browser: true,
portal: {
customization: true,
render: false
}
},
validation: ({joi}) => joi.object({
browser: joi.boolean(),
portal: joi.object({
render: joi.boolean(),
customization: joi.boolean(),
registrationPage: joi.string(),
loginPage: joi.string(),
favicon: joi.string(),
title: joi.string(),
theme: joi.object(),
portalName: joi.string().allow(''),
devTool: joi.boolean(),
pages: joi.object().pattern(/\w*\.\w*\.\w*/, joi.object().keys({
icon: joi.string(),
title: joi.string()
})),
help: joi.object({
default: joi.string(),
module: joi.object()
}).pattern(joi.string(), joi.string())
}),
ui: [
joi.object(),
joi.boolean()
],
handle: [
joi.object(),
joi.boolean()
]
})
});