forked from duetds/date-picker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstencil.config.ts
50 lines (49 loc) · 1.19 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
import { Config } from "@stencil/core"
import { sass } from "@stencil/sass"
export const config: Config = {
// See https://github.com/ionic-team/stencil/blob/master/src/declarations/config.ts for config
namespace: "duet",
sourceMap: false,
devServer: {
openBrowser: true,
port: 3333,
reloadStrategy: "pageReload",
},
outputTargets: [
{
type: "dist-hydrate-script",
dir: "hydrate",
empty: false,
},
{
type: "dist-custom-elements",
dir: "custom-element",
empty: true,
},
{
type: "dist",
dir: "dist",
esmLoaderPath: "./loader",
empty: true,
copy: [{ src: "themes", warn: true }],
},
{
type: "docs-readme",
},
{
type: "www",
dir: "www",
serviceWorker: null,
empty: true,
baseUrl: "https://duetds.github.io/",
prerenderConfig: "./prerender.config.ts",
copy: [{ src: "themes", dest: "themes", warn: true }],
},
],
plugins: [sass()],
testing: {
browserHeadless: process.env.TEST_HEADLESS !== "false",
setupFilesAfterEnv: ["<rootDir>/jest/jest-setup.js"],
testPathIgnorePatterns: ["<rootDir>/hydrate/", "<rootDir>/dist/"],
},
}