-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom-elements-manifest.config.js
48 lines (46 loc) · 1.47 KB
/
custom-elements-manifest.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
// @ts-check
// import { expandTypesPlugin } from './expand-types.js'
const globs = [
"exports/**/*.{d.ts,js}",
"internal/**/*.{d.ts,js}",
"types/**/*.d.ts",
];
export default {
/** Globs to analyze */
globs,
/** Globs to exclude */
exclude: ["node_modules", "docs"],
/** Directory to output CEM to */
outdir: ".",
/** Run in dev mode, provides extra logging */
dev: process.argv.includes("--verbose"),
/** Run in watch mode, runs on file changes */
watch: process.argv.includes("--watch"),
/** Include third party custom elements manifests */
dependencies: true,
/** Output CEM path to `package.json`, defaults to true */
packagejson: true,
/** Enable special handling for litelement */
litelement: true,
/** Enable special handling for catalyst */
catalyst: false,
/** Enable special handling for fast */
fast: false,
/** Enable special handling for stencil */
stencil: false,
// overrideModuleCreation: ({ts, globs}) => {
// const program = ts.createProgram(globs, {target: ts.ScriptTarget.ESNext, module: ts.ModuleKind.ESNext, allowJs: true, checkJs: true});
//
// // If we dont do this, everything blows up.
// program.getTypeChecker()
//
// return program.getSourceFiles().filter(sf => globs.find(glob => {
// return sf.fileName.includes(glob)
// }))
// },
// /** Provide custom plugins */
// plugins: [
// /** You can now pass the typeChecker to your plugins */
// expandTypesPlugin({ globs })
// ],
};