-
Notifications
You must be signed in to change notification settings - Fork 1
/
stencil.config.ts
31 lines (30 loc) · 1.12 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
import { Config } from '@stencil/core';
import { reactOutputTarget } from '@stencil/react-output-target';
import { angularOutputTarget } from '@stencil/angular-output-target';
export const config: Config = {
namespace: 'ecl-webcomponents',
globalScript: './src/globals/global.ts',
outputTargets: [
{
type: 'dist',
esmLoaderPath: '../loader',
dir: 'packages/ecl-webcomponents/dist',
},
{
type: 'dist-custom-elements',
dir: 'packages/ecl-webcomponents/dist/custom-elements',
},
{
type: 'docs-readme',
},
reactOutputTarget({
componentCorePackage: '@ecl/ecl-webcomponents',
proxiesFile: 'packages/ecl-webcomponents-react/lib/components/stencil-generated/index.ts',
}),
angularOutputTarget({
componentCorePackage: '@ecl/ecl-webcomponents',
directivesProxyFile: 'packages/ecl-webcomponents-angular-workspace/projects/ecl-webcomponents-angular/src/lib/stencil-generated/components.ts',
directivesArrayFile: 'packages/ecl-webcomponents-angular-workspace/projects/ecl-webcomponents-angular/src/lib/stencil-generated/index.ts',
}),
],
};