mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Migrate most kibana app plugins to TS projects (#87636)
This commit is contained in:
parent
f4a348f762
commit
94ca8ab1c3
32 changed files with 458 additions and 26 deletions
20
src/plugins/lens_oss/tsconfig.json
Normal file
20
src/plugins/lens_oss/tsconfig.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"common/**/*",
|
||||
"public/**/*",
|
||||
"server/**/*",
|
||||
"*.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../visualizations/tsconfig.json" }
|
||||
]
|
||||
}
|
|
@ -69,5 +69,5 @@ export function createSavedSheetClass(savedObjects: SavedObjectsStart, config: I
|
|||
}
|
||||
}
|
||||
|
||||
return SavedSheet;
|
||||
return SavedSheet as unknown;
|
||||
}
|
||||
|
|
23
src/plugins/timelion/tsconfig.json
Normal file
23
src/plugins/timelion/tsconfig.json
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"public/**/*",
|
||||
"server/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../visualizations/tsconfig.json" },
|
||||
{ "path": "../navigation/tsconfig.json" },
|
||||
{ "path": "../vis_type_timelion/tsconfig.json" },
|
||||
{ "path": "../saved_objects/tsconfig.json" },
|
||||
{ "path": "../kibana_legacy/tsconfig.json" },
|
||||
]
|
||||
}
|
20
src/plugins/vis_default_editor/tsconfig.json
Normal file
20
src/plugins/vis_default_editor/tsconfig.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"public/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../visualize/tsconfig.json" },
|
||||
{ "path": "../kibana_utils/tsconfig.json" },
|
||||
{ "path": "../kibana_react/tsconfig.json" },
|
||||
]
|
||||
}
|
22
src/plugins/vis_type_markdown/tsconfig.json
Normal file
22
src/plugins/vis_type_markdown/tsconfig.json
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"public/**/*",
|
||||
"server/**/*",
|
||||
"*.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../expressions/tsconfig.json" },
|
||||
{ "path": "../visualizations/tsconfig.json" },
|
||||
{ "path": "../kibana_react/tsconfig.json" },
|
||||
{ "path": "../vis_default_editor/tsconfig.json" },
|
||||
]
|
||||
}
|
20
src/plugins/vis_type_metric/tsconfig.json
Normal file
20
src/plugins/vis_type_metric/tsconfig.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": ["public/**/*", "server/**/*", "*.ts"],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../visualizations/tsconfig.json" },
|
||||
{ "path": "../charts/tsconfig.json" },
|
||||
{ "path": "../expressions/tsconfig.json" },
|
||||
{ "path": "../kibana_utils/tsconfig.json" },
|
||||
{ "path": "../vis_default_editor/tsconfig.json" }
|
||||
]
|
||||
}
|
|
@ -42,8 +42,8 @@ export function getTableVisualizationControllerClass(
|
|||
context: PluginInitializerContext
|
||||
) {
|
||||
return class TableVisualizationController {
|
||||
private tableVisModule: IModule | undefined;
|
||||
private injector: auto.IInjectorService | undefined;
|
||||
tableVisModule: IModule | undefined;
|
||||
injector: auto.IInjectorService | undefined;
|
||||
el: JQuery<Element>;
|
||||
$rootScope: IRootScopeService | null = null;
|
||||
$scope: (IScope & { [key: string]: any }) | undefined;
|
||||
|
|
27
src/plugins/vis_type_table/tsconfig.json
Normal file
27
src/plugins/vis_type_table/tsconfig.json
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"public/**/*",
|
||||
"server/**/*",
|
||||
"*.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../visualizations/tsconfig.json" },
|
||||
{ "path": "../share/tsconfig.json" },
|
||||
{ "path": "../usage_collection/tsconfig.json" },
|
||||
{ "path": "../expressions/tsconfig.json" },
|
||||
{ "path": "../kibana_utils/tsconfig.json" },
|
||||
{ "path": "../kibana_legacy/tsconfig.json" },
|
||||
{ "path": "../kibana_react/tsconfig.json" },
|
||||
{ "path": "../vis_default_editor/tsconfig.json" },
|
||||
]
|
||||
}
|
25
src/plugins/vis_type_tagcloud/tsconfig.json
Normal file
25
src/plugins/vis_type_tagcloud/tsconfig.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"public/**/*",
|
||||
"server/**/*",
|
||||
"*.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../expressions/tsconfig.json" },
|
||||
{ "path": "../visualizations/tsconfig.json" },
|
||||
{ "path": "../charts/tsconfig.json" },
|
||||
{ "path": "../kibana_utils/tsconfig.json" },
|
||||
{ "path": "../kibana_react/tsconfig.json" },
|
||||
{ "path": "../vis_default_editor/tsconfig.json" },
|
||||
]
|
||||
}
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
type TimelionFunctionArgsTypes = 'seriesList' | 'number' | 'string' | 'boolean' | 'null';
|
||||
|
||||
interface TimelionFunctionArgsSuggestion {
|
||||
export interface TimelionFunctionArgsSuggestion {
|
||||
name: string;
|
||||
help: string;
|
||||
}
|
||||
|
|
|
@ -30,23 +30,21 @@ import { KibanaContext, Filter, Query, TimeRange } from '../../data/public';
|
|||
|
||||
type Input = KibanaContext | null;
|
||||
type Output = Promise<Render<TimelionRenderValue>>;
|
||||
interface Arguments {
|
||||
expression: string;
|
||||
interval: string;
|
||||
}
|
||||
|
||||
export interface TimelionRenderValue {
|
||||
visData: TimelionSuccessResponse;
|
||||
visType: 'timelion';
|
||||
visParams: TimelionVisParams;
|
||||
}
|
||||
|
||||
export type TimelionVisParams = Arguments;
|
||||
export interface TimelionVisParams {
|
||||
expression: string;
|
||||
interval: string;
|
||||
}
|
||||
|
||||
export type TimelionExpressionFunctionDefinition = ExpressionFunctionDefinition<
|
||||
'timelion_vis',
|
||||
Input,
|
||||
Arguments,
|
||||
TimelionVisParams,
|
||||
Output
|
||||
>;
|
||||
|
||||
|
|
25
src/plugins/vis_type_timelion/tsconfig.json
Normal file
25
src/plugins/vis_type_timelion/tsconfig.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"common/**/*",
|
||||
"public/**/*",
|
||||
"server/**/*",
|
||||
"*.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../visualizations/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../expressions/tsconfig.json" },
|
||||
{ "path": "../kibana_utils/tsconfig.json" },
|
||||
{ "path": "../kibana_react/tsconfig.json" },
|
||||
{ "path": "../vis_default_editor/tsconfig.json" },
|
||||
]
|
||||
}
|
|
@ -37,7 +37,7 @@ const units: Record<Unit, number> = {
|
|||
|
||||
const sortedUnits = sortBy(Object.keys(units), (key: Unit) => units[key]);
|
||||
|
||||
interface ParsedInterval {
|
||||
export interface ParsedInterval {
|
||||
value: number;
|
||||
unit: Unit;
|
||||
}
|
||||
|
|
27
src/plugins/vis_type_timeseries/tsconfig.json
Normal file
27
src/plugins/vis_type_timeseries/tsconfig.json
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"common/**/*",
|
||||
"public/**/*",
|
||||
"server/**/*",
|
||||
"*.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../charts/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../expressions/tsconfig.json" },
|
||||
{ "path": "../visualizations/tsconfig.json" },
|
||||
{ "path": "../visualize/tsconfig.json" },
|
||||
{ "path": "../kibana_utils/tsconfig.json" },
|
||||
{ "path": "../kibana_react/tsconfig.json" },
|
||||
{ "path": "../usage_collection/tsconfig.json" },
|
||||
]
|
||||
}
|
|
@ -22,7 +22,7 @@ import { buildExpression } from '../../expressions/public';
|
|||
|
||||
import { BasicVislibParams } from './types';
|
||||
import { toExpressionAst } from './to_ast';
|
||||
import { sampleAreaVis } from './sample_vis.test.mocks';
|
||||
import { sampleAreaVis } from '../../vis_type_xy/public/sample_vis.test.mocks';
|
||||
|
||||
jest.mock('../../expressions/public', () => ({
|
||||
...(jest.requireActual('../../expressions/public') as any),
|
||||
|
|
|
@ -21,7 +21,7 @@ import { Vis } from '../../visualizations/public';
|
|||
import { buildExpression } from '../../expressions/public';
|
||||
|
||||
import { PieVisParams } from './pie';
|
||||
import { samplePieVis } from './sample_vis.test.mocks';
|
||||
import { samplePieVis } from '../../vis_type_xy/public/sample_vis.test.mocks';
|
||||
import { toExpressionAst } from './to_ast_pie';
|
||||
|
||||
jest.mock('../../expressions/public', () => ({
|
||||
|
|
|
@ -44,8 +44,8 @@ export const createVislibVisController = (
|
|||
charts: ChartsPluginSetup
|
||||
) => {
|
||||
return class VislibVisController {
|
||||
private removeListeners?: () => void;
|
||||
private unmountLegend?: () => void;
|
||||
removeListeners?: () => void;
|
||||
unmountLegend?: () => void;
|
||||
|
||||
legendRef: RefObject<VisLegend>;
|
||||
container: HTMLDivElement;
|
||||
|
|
26
src/plugins/vis_type_vislib/tsconfig.json
Normal file
26
src/plugins/vis_type_vislib/tsconfig.json
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"common/**/*",
|
||||
"public/**/*",
|
||||
"server/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../charts/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../expressions/tsconfig.json" },
|
||||
{ "path": "../visualizations/tsconfig.json" },
|
||||
{ "path": "../kibana_legacy/tsconfig.json" },
|
||||
{ "path": "../kibana_utils/tsconfig.json" },
|
||||
{ "path": "../vis_default_editor/tsconfig.json" },
|
||||
{ "path": "../vis_type_xy/tsconfig.json" },
|
||||
]
|
||||
}
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
import { Vis } from '../../visualizations/public';
|
||||
import { buildExpression } from '../../expressions/public';
|
||||
import { sampleAreaVis } from '../../vis_type_vislib/public/sample_vis.test.mocks';
|
||||
import { sampleAreaVis } from './sample_vis.test.mocks';
|
||||
|
||||
import { toExpressionAst } from './to_ast';
|
||||
import { VisParams } from './types';
|
||||
|
|
|
@ -52,7 +52,7 @@ export const getAdjustedDomain = (
|
|||
data: Datatable['rows'],
|
||||
{ accessor, params }: Aspect,
|
||||
timeZone: string,
|
||||
domain?: DomainRange,
|
||||
domain: DomainRange | undefined,
|
||||
hasBars?: boolean
|
||||
): DomainRange => {
|
||||
if (
|
||||
|
|
25
src/plugins/vis_type_xy/tsconfig.json
Normal file
25
src/plugins/vis_type_xy/tsconfig.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"common/**/*",
|
||||
"public/**/*",
|
||||
"server/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../charts/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../expressions/tsconfig.json" },
|
||||
{ "path": "../visualizations/tsconfig.json" },
|
||||
{ "path": "../usage_collection/tsconfig.json" },
|
||||
{ "path": "../kibana_utils/tsconfig.json" },
|
||||
{ "path": "../vis_default_editor/tsconfig.json" },
|
||||
]
|
||||
}
|
24
src/plugins/visualizations/public/legacy/vis_update_state.d.ts
vendored
Normal file
24
src/plugins/visualizations/public/legacy/vis_update_state.d.ts
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import { SavedVisState } from '../types';
|
||||
|
||||
declare function updateOldState(oldState: unknown): SavedVisState;
|
||||
|
||||
export { updateOldState };
|
|
@ -21,7 +21,6 @@ import { cloneDeep, get, omit, has, flow } from 'lodash';
|
|||
|
||||
import { SavedObjectMigrationFn } from 'kibana/server';
|
||||
|
||||
import { ChartType } from '../../../vis_type_xy/common';
|
||||
import { DEFAULT_QUERY_LANGUAGE } from '../../../data/common';
|
||||
|
||||
const migrateIndexPattern: SavedObjectMigrationFn<any, any> = (doc) => {
|
||||
|
@ -804,6 +803,11 @@ const decorateAxes = <T extends { labels: { filter?: boolean } }>(
|
|||
},
|
||||
}));
|
||||
|
||||
// Inlined from vis_type_xy
|
||||
const CHART_TYPE_AREA = 'area';
|
||||
const CHART_TYPE_LINE = 'line';
|
||||
const CHART_TYPE_HISTOGRAM = 'histogram';
|
||||
|
||||
/**
|
||||
* Migrate vislib bar, line and area charts to use new vis_type_xy plugin
|
||||
*/
|
||||
|
@ -819,11 +823,11 @@ const migrateVislibAreaLineBarTypes: SavedObjectMigrationFn<any, any> = (doc) =>
|
|||
}
|
||||
if (
|
||||
visState &&
|
||||
[ChartType.Area, ChartType.Line, ChartType.Histogram].includes(visState?.params?.type)
|
||||
[CHART_TYPE_AREA, CHART_TYPE_LINE, CHART_TYPE_HISTOGRAM].includes(visState?.params?.type)
|
||||
) {
|
||||
const isHorizontalBar = visState.type === 'horizontal_bar';
|
||||
const isLineOrArea =
|
||||
visState?.params?.type === ChartType.Area || visState?.params?.type === ChartType.Line;
|
||||
visState?.params?.type === CHART_TYPE_AREA || visState?.params?.type === CHART_TYPE_LINE;
|
||||
return {
|
||||
...doc,
|
||||
attributes: {
|
||||
|
|
29
src/plugins/visualizations/tsconfig.json
Normal file
29
src/plugins/visualizations/tsconfig.json
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"common/**/*",
|
||||
"public/**/*",
|
||||
"server/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../dashboard/tsconfig.json" },
|
||||
{ "path": "../expressions/tsconfig.json" },
|
||||
{ "path": "../ui_actions/tsconfig.json" },
|
||||
{ "path": "../embeddable/tsconfig.json" },
|
||||
{ "path": "../inspector/tsconfig.json" },
|
||||
{ "path": "../saved_objects/tsconfig.json" },
|
||||
{ "path": "../saved_objects_tagging_oss/tsconfig.json" },
|
||||
{ "path": "../usage_collection/tsconfig.json" },
|
||||
{ "path": "../kibana_utils/tsconfig.json" },
|
||||
{ "path": "../discover/tsconfig.json" },
|
||||
]
|
||||
}
|
34
src/plugins/visualize/tsconfig.json
Normal file
34
src/plugins/visualize/tsconfig.json
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"common/**/*",
|
||||
"public/**/*",
|
||||
"server/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../url_forwarding/tsconfig.json" },
|
||||
{ "path": "../navigation/tsconfig.json" },
|
||||
{ "path": "../saved_objects/tsconfig.json" },
|
||||
{ "path": "../visualizations/tsconfig.json" },
|
||||
{ "path": "../embeddable/tsconfig.json" },
|
||||
{ "path": "../dashboard/tsconfig.json" },
|
||||
{ "path": "../ui_actions/tsconfig.json" },
|
||||
{ "path": "../home/tsconfig.json" },
|
||||
{ "path": "../share/tsconfig.json" },
|
||||
{ "path": "../saved_objects_tagging_oss/tsconfig.json" },
|
||||
{ "path": "../kibana_utils/tsconfig.json" },
|
||||
{ "path": "../kibana_react/tsconfig.json" },
|
||||
{ "path": "../home/tsconfig.json" },
|
||||
{ "path": "../presentation_util/tsconfig.json" },
|
||||
{ "path": "../discover/tsconfig.json" },
|
||||
]
|
||||
}
|
|
@ -24,6 +24,7 @@
|
|||
"src/plugins/kibana_react/**/*",
|
||||
"src/plugins/kibana_usage_collection/**/*",
|
||||
"src/plugins/kibana_utils/**/*",
|
||||
"src/plugins/lens_oss/**/*",
|
||||
"src/plugins/management/**/*",
|
||||
"src/plugins/navigation/**/*",
|
||||
"src/plugins/newsfeed/**/*",
|
||||
|
@ -34,10 +35,22 @@
|
|||
"src/plugins/spaces_oss/**/*",
|
||||
"src/plugins/telemetry/**/*",
|
||||
"src/plugins/telemetry_collection_manager/**/*",
|
||||
"src/plugins/timelion/**/*",
|
||||
"src/plugins/ui_actions/**/*",
|
||||
"src/plugins/url_forwarding/**/*",
|
||||
"src/plugins/usage_collection/**/*",
|
||||
"src/plugins/presentation_util/**/*"
|
||||
"src/plugins/presentation_util/**/*",
|
||||
"src/plugins/vis_default_editor/**/*",
|
||||
"src/plugins/vis_type_markdown/**/*",
|
||||
"src/plugins/vis_type_metric/**/*",
|
||||
"src/plugins/vis_type_table/**/*",
|
||||
"src/plugins/vis_type_tagcloud/**/*",
|
||||
"src/plugins/vis_type_timelion/**/*",
|
||||
"src/plugins/vis_type_timeseries/**/*",
|
||||
"src/plugins/vis_type_vislib/**/*",
|
||||
"src/plugins/vis_type_xy/**/*",
|
||||
"src/plugins/visualizations/**/*",
|
||||
"src/plugins/visualize/**/*",
|
||||
// In the build we actually exclude **/public/**/* from this config so that
|
||||
// we can run the TSC on both this and the .browser version of this config
|
||||
// file, but if we did it during development IDEs would not be able to find
|
||||
|
@ -63,6 +76,7 @@
|
|||
{ "path": "./src/plugins/kibana_react/tsconfig.json" },
|
||||
{ "path": "./src/plugins/kibana_usage_collection/tsconfig.json" },
|
||||
{ "path": "./src/plugins/kibana_utils/tsconfig.json" },
|
||||
{ "path": "./src/plugins/lens_oss/tsconfig.json" },
|
||||
{ "path": "./src/plugins/management/tsconfig.json" },
|
||||
{ "path": "./src/plugins/navigation/tsconfig.json" },
|
||||
{ "path": "./src/plugins/newsfeed/tsconfig.json" },
|
||||
|
@ -73,8 +87,20 @@
|
|||
{ "path": "./src/plugins/spaces_oss/tsconfig.json" },
|
||||
{ "path": "./src/plugins/telemetry/tsconfig.json" },
|
||||
{ "path": "./src/plugins/telemetry_collection_manager/tsconfig.json" },
|
||||
{ "path": "./src/plugins/timelion/tsconfig.json" },
|
||||
{ "path": "./src/plugins/ui_actions/tsconfig.json" },
|
||||
{ "path": "./src/plugins/url_forwarding/tsconfig.json" },
|
||||
{ "path": "./src/plugins/usage_collection/tsconfig.json" }
|
||||
{ "path": "./src/plugins/usage_collection/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_default_editor/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_markdown/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_metric/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_table/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_tagcloud/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_timelion/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_timeseries/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_vislib/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_xy/tsconfig.json" },
|
||||
{ "path": "./src/plugins/visualizations/tsconfig.json" },
|
||||
{ "path": "./src/plugins/visualize/tsconfig.json" },
|
||||
]
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
{ "path": "./src/plugins/kibana_react/tsconfig.json" },
|
||||
{ "path": "./src/plugins/kibana_usage_collection/tsconfig.json" },
|
||||
{ "path": "./src/plugins/kibana_utils/tsconfig.json" },
|
||||
{ "path": "./src/plugins/lens_oss/tsconfig.json" },
|
||||
{ "path": "./src/plugins/management/tsconfig.json" },
|
||||
{ "path": "./src/plugins/navigation/tsconfig.json" },
|
||||
{ "path": "./src/plugins/newsfeed/tsconfig.json" },
|
||||
|
@ -31,9 +32,20 @@
|
|||
{ "path": "./src/plugins/spaces_oss/tsconfig.json" },
|
||||
{ "path": "./src/plugins/telemetry/tsconfig.json" },
|
||||
{ "path": "./src/plugins/telemetry_collection_manager/tsconfig.json" },
|
||||
{ "path": "./src/plugins/timelion/tsconfig.json" },
|
||||
{ "path": "./src/plugins/ui_actions/tsconfig.json" },
|
||||
{ "path": "./src/plugins/url_forwarding/tsconfig.json" },
|
||||
{ "path": "./src/plugins/usage_collection/tsconfig.json" },
|
||||
{ "path": "./src/plugins/management/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_default_editor/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_markdown/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_metric/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_table/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_tagcloud/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_timelion/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_timeseries/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_vislib/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_xy/tsconfig.json" },
|
||||
{ "path": "./src/plugins/visualizations/tsconfig.json" },
|
||||
{ "path": "./src/plugins/visualize/tsconfig.json" },
|
||||
]
|
||||
}
|
||||
|
|
24
x-pack/plugins/discover_enhanced/tsconfig.json
Normal file
24
x-pack/plugins/discover_enhanced/tsconfig.json
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": ["*.ts", "common/**/*", "public/**/*", "server/**/*"],
|
||||
"references": [
|
||||
{ "path": "../../../src/core/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/data/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/discover/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/share/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/kibana_legacy/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/kibana_utils/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/url_forwarding/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/usage_collection/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/embeddable/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/visualizations/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/ui_actions/tsconfig.json" }
|
||||
]
|
||||
}
|
15
x-pack/plugins/vis_type_timeseries_enhanced/tsconfig.json
Normal file
15
x-pack/plugins/vis_type_timeseries_enhanced/tsconfig.json
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": ["*.ts", "server/**/*"],
|
||||
"references": [
|
||||
{ "path": "../../../src/core/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/vis_type_timeseries/tsconfig.json" }
|
||||
]
|
||||
}
|
|
@ -5,6 +5,7 @@
|
|||
"plugins/apm/e2e/cypress/**/*",
|
||||
"plugins/apm/scripts/**/*",
|
||||
"plugins/data_enhanced/**/*",
|
||||
"plugins/discover_enhanced/**/*",
|
||||
"plugins/dashboard_enhanced/**/*",
|
||||
"plugins/global_search/**/*",
|
||||
"plugins/graph/**/*",
|
||||
|
@ -16,6 +17,7 @@
|
|||
"plugins/telemetry_collection_xpack/**/*",
|
||||
"plugins/translations/**/*",
|
||||
"plugins/ui_actions_enhanced/**/*",
|
||||
"plugins/vis_type_timeseries_enhanced/**/*",
|
||||
"test/**/*"
|
||||
],
|
||||
"compilerOptions": {
|
||||
|
@ -55,6 +57,7 @@
|
|||
{ "path": "../src/plugins/usage_collection/tsconfig.json" },
|
||||
|
||||
{ "path": "./plugins/data_enhanced/tsconfig.json" },
|
||||
{ "path": "./plugins/discover_enhanced/tsconfig.json" },
|
||||
{ "path": "./plugins/global_search/tsconfig.json" },
|
||||
{ "path": "./plugins/features/tsconfig.json" },
|
||||
{ "path": "./plugins/graph/tsconfig.json" },
|
||||
|
@ -62,7 +65,8 @@
|
|||
{ "path": "./plugins/licensing/tsconfig.json" },
|
||||
{ "path": "./plugins/task_manager/tsconfig.json" },
|
||||
{ "path": "./plugins/telemetry_collection_xpack/tsconfig.json" },
|
||||
{ "path": "./plugins/ui_actions_enhanced/tsconfig.json" },
|
||||
{ "path": "./plugins/vis_type_timeseries_enhanced/tsconfig.json" },
|
||||
{ "path": "./plugins/translations/tsconfig.json" },
|
||||
{ "path": "./plugins/ui_actions_enhanced/tsconfig.json" }
|
||||
]
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"references": [
|
||||
{ "path": "./plugins/dashboard_enhanced/tsconfig.json" },
|
||||
{ "path": "./plugins/licensing/tsconfig.json" },
|
||||
{ "path": "./plugins/discover_enhanced/tsconfig.json" },
|
||||
{ "path": "./plugins/data_enhanced/tsconfig.json" },
|
||||
{ "path": "./plugins/global_search/tsconfig.json" },
|
||||
{ "path": "./plugins/features/tsconfig.json" },
|
||||
|
@ -10,7 +11,8 @@
|
|||
{ "path": "./plugins/embeddable_enhanced/tsconfig.json" },
|
||||
{ "path": "./plugins/task_manager/tsconfig.json" },
|
||||
{ "path": "./plugins/telemetry_collection_xpack/tsconfig.json" },
|
||||
{ "path": "./plugins/ui_actions_enhanced/tsconfig.json" },
|
||||
{ "path": "./plugins/vis_type_timeseries_enhanced/tsconfig.json" },
|
||||
{ "path": "./plugins/translations/tsconfig.json" },
|
||||
{ "path": "./plugins/ui_actions_enhanced/tsconfig.json" }
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue