forked from revolist/revogrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stencil.config.ts
59 lines (57 loc) · 1.66 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
51
52
53
54
55
56
57
58
59
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 = '@revolist/revogrid';
const directivesProxyFile = (name: string) => `../revogrid-proxy/${name}/src/revogrid.ts`;
export const config: Config = {
buildEs5: 'prod',
namespace: 'revo-grid',
taskQueue: 'async',
globalScript: './src/global/global.ts',
plugins: [
sass({
injectGlobalPaths: ['src/global/_colors.scss', 'src/global/_icons.scss', 'src/global/_mixins.scss', 'src/global/_buttons.scss'],
}),
],
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: 'utilsExternal' }],
serviceWorker: null, // disable service workers
},
],
};