-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstencil.config.ts
120 lines (119 loc) · 3.7 KB
/
stencil.config.ts
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import { Config } from "@stencil/core";
import { sass } from "@stencil/sass";
export const config: Config = {
namespace: "chameleon",
outputTargets: [
{
type: "dist",
esmLoaderPath: "../loader",
copy: [{ src: "common/monaco/output/assets", dest: "assets" }]
},
// dist-custom-elements output target is required for the React output target.
// It generates the dist/components folder
{ type: "dist-custom-elements" },
{
type: "www",
serviceWorker: null,
copy: [
{ src: "common/monaco/output/assets", dest: "assets" },
{ src: "showcase" }
]
}
],
plugins: [sass()],
extras: {
// Enabling this flag will allow downstream projects that consume a Stencil
// library and use a bundler such as Vite to lazily load the Stencil
// library's components.
enableImportInjection: true
},
testing: {
browserArgs: ["--no-sandbox", "--disable-setuid-sandbox"],
verbose: true,
browserHeadless: "new",
testPathIgnorePatterns: [
"node_modules/",
"src/testing/",
"dist/",
"src/components/theme/tests/utils.e2e.ts",
"src/components/tree-view/tests/utils.e2e.ts"
]
},
bundles: [
{
components: ["ch-accordion-render"] // Make sure the ch-accordion-render control is not bundled with other components
},
{
components: [
"ch-action-group",
"ch-action-group-item",
"ch-action-group-render"
]
},
{
components: ["ch-code", "ch-markdown-viewer"] // Make sure the ch-code and ch-markdown-viewer control are not bundled with other components
},
{
components: ["ch-combo-box-render"] // Make sure the ch-combo-box-render control is not bundled with other components
},
{
components: ["ch-dialog"] // Make sure the ch-dialog control is not bundled with other components
},
{
components: ["ch-edit"] // Make sure the ch-edit control is not bundled with other components
},
{
components: ["ch-markdown"] // Make sure the ch-markdown control is not bundled with other components
},
{
components: [
"ch-dropdown"
// "ch-dropdown-render" TODO: Consider adding the ch-dropdown-render, even if the action-group uses it
]
},
{
components: ["ch-flexible-layout", "ch-flexible-layout-render"]
},
{
components: ["ch-layout-splitter"] // Make sure the ch-layout-splitter control is not bundled with other components
},
{
components: ["ch-tab-render"] // Make sure the ch-tab-render control is not bundled with other components
},
{
components: ["ch-navigation-list-render", "ch-navigation-list-item"]
},
{
components: ["ch-next-data-modeling", "ch-next-data-modeling-item"]
},
{
components: ["ch-segmented-control-item", "ch-segmented-control-render"]
},
{
components: ["ch-popover"] // Make sure the ch-popover control is not bundled with other components
},
{
components: ["ch-qr"] // Make sure the ch-qr control is not bundled with other components
},
{
components: ["ch-showcase"] // Make sure the ch-showcase control is not bundled with other components
},
{
components: ["ch-smart-grid", "ch-smart-grid-cell", "ch-infinite-scroll"]
},
{
components: ["ch-textblock"] // Make sure the ch-textblock control is not bundled with other components
},
{
components: [
"ch-tree-view",
"ch-tree-view-drop",
"ch-tree-view-item",
"ch-tree-view-render"
]
},
{
components: ["ch-virtual-scroller"] // Make sure the ch-virtual-scroller control is not bundled with other components
}
]
};