-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstencil.config.ts
50 lines (49 loc) · 1.06 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 analyze from 'rollup-plugin-analyzer'
import nodePolyfills from 'rollup-plugin-node-polyfills'
export const config: Config = {
rollupPlugins: {
after: [
analyze({summaryOnly: true, limit: 5}),
nodePolyfills()
]
},
namespace: 'micro-lc-notification-center',
outputTargets: [
{
type: 'dist',
esmLoaderPath: '../loader'
},
{
type: 'www',
copy: [{src: 'assets', warn: true}],
serviceWorker: null
}
],
testing: {
roots: ['src'],
moduleNameMapper: {
'\\.css$': 'identity-obj-proxy'
},
testPathIgnorePatterns: ['/node_modules/', '/src/lib/'],
collectCoverageFrom: [
'src/components/**/*.tsx',
'src/components/**/*.ts',
'src/utils/**/*.ts',
'!/src/lib/'
],
coverageThreshold: {
global: {
statements: 95,
branches: 80,
functions: 95,
lines: 95
}
},
coverageReporters: [
'text',
'lcov'
],
coverageDirectory: 'coverage/webcomponents'
}
}