-
Notifications
You must be signed in to change notification settings - Fork 7
/
stencil.config.ts
50 lines (49 loc) · 1.46 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';
import { angularOutputTarget } from '@stencil/angular-output-target';
import { reactOutputTarget } from '@stencil/react-output-target';
import { vueOutputTarget } from '@stencil/vue-output-target';
import { svelteOutputTarget } from '@stencil/svelte-output-target';
const componentCorePackage = '../../../';
const directivesProxyFile = (name: string) => `./framework/${name}/src/revodropdown.ts`;
export const config: Config = {
buildEs5: 'prod',
namespace: 'revo-dropdown',
plugins: [sass()],
outputTargets: [
angularOutputTarget({
componentCorePackage,
directivesProxyFile: directivesProxyFile('angular'),
valueAccessorConfigs: [],
}),
reactOutputTarget({
componentCorePackage,
proxiesFile: directivesProxyFile('react'),
}),
vueOutputTarget({
componentCorePackage,
proxiesFile: directivesProxyFile('vue'),
componentModels: [{
elements: 'revo-dropdown',
event: 'changeValue',
targetAttr: 'changeValue'
}]
}),
svelteOutputTarget({
componentCorePackage,
proxiesFile: directivesProxyFile('svelte'),
}),
{
type: 'dist',
esmLoaderPath: '../loader',
},
{
type: 'docs-readme',
},
{
type: 'www',
copy: [{ src: 'temp' }, { src: '../node_modules/vue/dist', dest: 'vue' }],
serviceWorker: null, // disable service workers
},
],
};