generated from open-wc/cem-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.js
35 lines (32 loc) · 817 Bytes
/
dev.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
import fs from 'fs';
import ts from 'typescript';
import { create } from '@custom-elements-manifest/analyzer/src/create.js';
import docsify from './dist/index.js';
const myCustomElement = fs.readFileSync('fixtures/default/sourcecode/default.js').toString();
const myCustomEvents = fs.readFileSync('fixtures/default/sourcecode/events.js').toString();
const modules = [
ts.createSourceFile(
'my-element.js',
myCustomElement,
ts.ScriptTarget.ES2020,
true,
),
ts.createSourceFile(
'events.js',
myCustomEvents,
ts.ScriptTarget.ES2020,
true,
),
];
create({
modules,
dev: true,
plugins: [
docsify({
name: 'My Great Element',
repoURL: '/~https://github.com/bmpickford/cem-plugin-docsify',
includeStorybook: true,
storybookHeight: 2000,
})
]
});