-
Notifications
You must be signed in to change notification settings - Fork 4
/
stencil.config.ts
51 lines (49 loc) · 1.48 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
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';
import { angularOutputTarget } from '@stencil/angular-output-target';
import { reactOutputTarget } from '@stencil/react-output-target';
// @ts-ignore
import path from 'path';
// @ts-ignore
import glob from 'glob';
export const config: Config = {
namespace: 'wcs',
nodeResolve: {
browser: true
},
testing: {
rootDir: './src',
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/example/'],
browserArgs: ['--no-sandbox', '--disable-setuid-sandbox']
},
globalStyle: 'src/style/global.scss',
plugins: [
sass({
// Allows to write @import '@material/*' from scss
// Importing all node_modules stylesheet
includePaths: [path.join(__dirname, 'node_modules')],
})
],
outputTargets: [
angularOutputTarget({
componentCorePackage: 'wcs-core',
directivesProxyFile: './angular/projects/wcs-angular/src/lib/proxies.ts',
outputType: 'component'
}),
{
type: 'dist',
esmLoaderPath: '../loader',
},
{
type: 'docs-readme'
},
{
type: 'docs-json',
file: './stories/documentation/generated/docs.json'
},
reactOutputTarget({
componentCorePackage: 'wcs-core',
proxiesFile: './react/lib/components/stencil-generated/index.ts',
})
]
};