This repository has been archived by the owner on Jun 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
stencil.config.ts
executable file
·71 lines (69 loc) · 1.71 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
import { Config } from "@stencil/core";
import { postcss } from "@stencil/postcss";
import { sass } from "@stencil/sass";
import autoprefixer from "autoprefixer";
export const create: () => Config = () => ({
namespace: "calcite-app",
bundles: [
{
components: ["calcite-action", "calcite-action-group", "calcite-action-bar", "calcite-action-pad"]
},
{
components: ["calcite-block", "calcite-block-section"]
},
{
components: ["calcite-panel", "calcite-flow", "calcite-flow-item"]
},
{
components: ["calcite-shell", "calcite-shell-panel"]
},
{
components: ["calcite-tip", "calcite-tip-group", "calcite-tip-manager"]
}
],
outputTargets: [
{ type: "dist" },
{
type: "www",
copy: [
{ src: "../demos", dest: "demos" },
{
src: "../../node_modules/@esri/calcite-components/dist/calcite",
dest: "vendor/@esri/calcite-components"
},
{
src: "../../node_modules/dedent/dist",
dest: "vendor/dedent"
}
],
serviceWorker: null // disable service workers
}
],
globalStyle: "src/scss/global.scss",
plugins: [
sass({
injectGlobalPaths: ["src/scss/injected.scss"]
}),
postcss({
plugins: [autoprefixer()]
})
],
testing: {
transform: {
"^.+\\.(ts|tsx)$": "ts-jest"
},
setupFilesAfterEnv: ["<rootDir>/src/tests/setup.ts"]
},
srcDir: "src/components",
srcIndexHtml: "src/index.html",
extras: {
appendChildSlotFix: true,
cssVarsShim: true,
dynamicImportShim: true,
safari10: true,
scriptDataOpts: true,
shadowDomShim: true,
slotChildNodesFix: true
}
});
export const config = create();