forked from visa/visa-chart-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstencil.config.ts
More file actions
44 lines (42 loc) · 1.26 KB
/
stencil.config.ts
File metadata and controls
44 lines (42 loc) · 1.26 KB
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
/**
* Copyright (c) 2020, 2021 Visa, Inc.
*
* This source code is licensed under the MIT license
* https://github.com/visa/visa-chart-components/blob/master/LICENSE
*
**/
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';
import { reactOutputTarget } from '@stencil/react-output-target';
import { angularOutputTarget } from '@stencil/angular-output-target';
let excludeSrc = ['**/app-*/*', '**/*.spec*', '**/*.test*', '**/*.e2e*'];
// @ts-ignore
const dev: boolean = process.argv && process.argv.indexOf('--dev') > -1;
if (dev) {
excludeSrc = [];
}
export const config: Config | any = {
namespace: 'visa-charts-data-table',
excludeSrc,
outputTargets: [
reactOutputTarget({
componentCorePackage: '@visa/visa-charts-data-table',
loaderDir: 'dist/loader',
proxiesFile: '../charts-react/src/components/visa-charts-data-table.ts'
}),
angularOutputTarget({
componentCorePackage: '@visa/visa-charts-data-table',
directivesProxyFile: '../charts-angular/src/lib/directives/visa-charts-data-table.ts'
}),
{ type: 'dist' },
{ type: 'www' }
],
plugins: [
sass({
injectGlobalPaths: ['src/scss/objects.scss']
})
],
commonjs: {
include: ['../utils/dist/visa-charts-utils.umd.js']
}
};