-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-elements-manifest.config.js
46 lines (43 loc) · 1.28 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
import { customElementJetBrainsPlugin } from "custom-element-jet-brains-integration"
import { customElementVsCodePlugin } from "custom-element-vs-code-integration"
import { customElementVuejsPlugin } from "custom-element-vuejs-integration"
export default {
globs: ["src/components/*/*.js"],
exclude: ["src/**/test/**/*.js", "src/**/stories/**/*.js"],
outdir: "./dist",
/** Enable special handling for litelement */
litelement: true,
plugins: [
// Generate custom VS Code data
customElementVsCodePlugin({
outdir: "./dist",
cssFileName: null,
referencesTemplate: (_, tag) => [
{
name: "Documentation",
url: `https://statistikzh.github.io/leu/?path=/story/${tag.replace(
"leu-",
""
)}`,
},
],
}),
customElementJetBrainsPlugin({
outdir: "./dist",
excludeCss: true,
packageJson: false,
referencesTemplate: (_, tag) => ({
name: "Documentation",
url: `https://statistikzh.github.io/leu/?path=/story/${tag.replace(
"leu-",
""
)}`,
}),
}),
customElementVuejsPlugin({
outdir: "./dist/vue",
fileName: "index.d.ts",
componentTypePath: (name) => `../${name.replace("Leu", "")}.js`,
}),
],
}