Skip to content

Commit

Permalink
TS project refs: Converts rollup, remoteClusters, crossClusterReplica…
Browse files Browse the repository at this point in the history
…tion, indexLifecycleManagement to a TS project refs (elastic#90713)

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
TinaHeiligers and kibanamachine committed Feb 9, 2021
1 parent 684edff commit 84a6c63
Show file tree
Hide file tree
Showing 11 changed files with 200 additions and 7 deletions.
31 changes: 31 additions & 0 deletions x-pack/plugins/cross_cluster_replication/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"common/**/*",
"public/**/*",
"server/**/*",
],
"references": [
{ "path": "../../../src/core/tsconfig.json" },
// required plugins
{ "path": "../../../src/plugins/home/tsconfig.json" },
{ "path": "../licensing/tsconfig.json" },
{ "path": "../../../src/plugins/management/tsconfig.json" },
{ "path": "../remote_clusters/tsconfig.json" },
{ "path": "../index_management/tsconfig.json" },
{ "path": "../features/tsconfig.json" },
// optional plugins
{ "path": "../../../src/plugins/usage_collection/tsconfig.json" },
// required bundles
{ "path": "../../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../../src/plugins/es_ui_shared/tsconfig.json" },
{ "path": "../../../src/plugins/data/tsconfig.json" },
]
}
32 changes: 32 additions & 0 deletions x-pack/plugins/index_lifecycle_management/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"__jest__/**/*",
"common/**/*",
"public/**/*",
"server/**/*",
"../../typings/**/*",
],
"references": [
{ "path": "../../../src/core/tsconfig.json" },
// required plugins
{ "path": "../licensing/tsconfig.json" },
{ "path": "../../../src/plugins/management/tsconfig.json" },
{ "path": "../features/tsconfig.json" },
{ "path": "../../../src/plugins/share/tsconfig.json" },
// optional plugins
{ "path": "../cloud/tsconfig.json" },
{ "path": "../../../src/plugins/usage_collection/tsconfig.json" },
{ "path": "../index_management/tsconfig.json" },
{ "path": "../../../src/plugins/home/tsconfig.json" },
// required bundles
{ "path": "../../../src/plugins/kibana_react/tsconfig.json" },
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,26 @@ import { register } from './add_route';
import { API_BASE_PATH } from '../../../common/constants';
import { LicenseStatus } from '../../types';

import { xpackMocks } from '../../../../../mocks';
import { licensingMock } from '../../../../../plugins/licensing/server/mocks';

import {
elasticsearchServiceMock,
httpServerMock,
httpServiceMock,
coreMock,
} from '../../../../../../src/core/server/mocks';

// Re-implement the mock that was imported directly from `x-pack/mocks`
function createCoreRequestHandlerContextMock() {
return {
core: coreMock.createRequestHandlerContext(),
licensing: licensingMock.createRequestHandlerContext(),
};
}

const xpackMocks = {
createRequestHandlerContext: createCoreRequestHandlerContextMock,
};
interface TestOptions {
licenseCheckResult?: LicenseStatus;
apiResponses?: Array<() => Promise<unknown>>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,26 @@ import { register } from './delete_route';
import { API_BASE_PATH } from '../../../common/constants';
import { LicenseStatus } from '../../types';

import { xpackMocks } from '../../../../../mocks';
import { licensingMock } from '../../../../../plugins/licensing/server/mocks';

import {
elasticsearchServiceMock,
httpServerMock,
httpServiceMock,
coreMock,
} from '../../../../../../src/core/server/mocks';

// Re-implement the mock that was imported directly from `x-pack/mocks`
function createCoreRequestHandlerContextMock() {
return {
core: coreMock.createRequestHandlerContext(),
licensing: licensingMock.createRequestHandlerContext(),
};
}

const xpackMocks = {
createRequestHandlerContext: createCoreRequestHandlerContextMock,
};
interface TestOptions {
licenseCheckResult?: LicenseStatus;
apiResponses?: Array<() => Promise<unknown>>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,26 @@ import { register } from './get_route';
import { API_BASE_PATH } from '../../../common/constants';
import { LicenseStatus } from '../../types';

import { xpackMocks } from '../../../../../mocks';
import { licensingMock } from '../../../../../plugins/licensing/server/mocks';

import {
elasticsearchServiceMock,
httpServerMock,
httpServiceMock,
coreMock,
} from '../../../../../../src/core/server/mocks';

// Re-implement the mock that was imported directly from `x-pack/mocks`
function createCoreRequestHandlerContextMock() {
return {
core: coreMock.createRequestHandlerContext(),
licensing: licensingMock.createRequestHandlerContext(),
};
}

const xpackMocks = {
createRequestHandlerContext: createCoreRequestHandlerContextMock,
};
interface TestOptions {
licenseCheckResult?: LicenseStatus;
apiResponses?: Array<() => Promise<unknown>>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,26 @@ import { register } from './update_route';
import { API_BASE_PATH } from '../../../common/constants';
import { LicenseStatus } from '../../types';

import { xpackMocks } from '../../../../../mocks';
import { licensingMock } from '../../../../../plugins/licensing/server/mocks';

import {
elasticsearchServiceMock,
httpServerMock,
httpServiceMock,
coreMock,
} from '../../../../../../src/core/server/mocks';

// Re-implement the mock that was imported directly from `x-pack/mocks`
function createCoreRequestHandlerContextMock() {
return {
core: coreMock.createRequestHandlerContext(),
licensing: licensingMock.createRequestHandlerContext(),
};
}

const xpackMocks = {
createRequestHandlerContext: createCoreRequestHandlerContextMock,
};
interface TestOptions {
licenseCheckResult?: LicenseStatus;
apiResponses?: Array<() => Promise<unknown>>;
Expand Down
30 changes: 30 additions & 0 deletions x-pack/plugins/remote_clusters/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"common/**/*",
"fixtures/**/*",
"public/**/*",
"server/**/*",
],
"references": [
{ "path": "../../../src/core/tsconfig.json" },
// required plugins
{ "path": "../licensing/tsconfig.json" },
{ "path": "../../../src/plugins/management/tsconfig.json" },
{ "path": "../index_management/tsconfig.json" },
{ "path": "../features/tsconfig.json" },
// optional plugins
{ "path": "../../../src/plugins/usage_collection/tsconfig.json" },
{ "path": "../cloud/tsconfig.json" },
// required bundles
{ "path": "../../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../../src/plugins/es_ui_shared/tsconfig.json" },
]
}
35 changes: 35 additions & 0 deletions x-pack/plugins/rollup/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"common/**/*",
"fixtures/**/*",
"public/**/*",
"server/**/*",
],
"references": [
{ "path": "../../../src/core/tsconfig.json" },
// required plugins
{ "path": "../../../src/plugins/index_pattern_management/tsconfig.json" },
{ "path": "../../../src/plugins/management/tsconfig.json" },
{ "path": "../licensing/tsconfig.json" },
{ "path": "../features/tsconfig.json" },
// optional plugins
{ "path": "../../../src/plugins/home/tsconfig.json" },
{ "path": "../index_management/tsconfig.json" },
{ "path": "../../../src/plugins/usage_collection/tsconfig.json" },
{ "path": "../../../src/plugins/vis_type_timeseries/tsconfig.json" },
// required bundles
{ "path": "../../../src/plugins/kibana_utils/tsconfig.json" },
{ "path": "../../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../../src/plugins/es_ui_shared/tsconfig.json" },
{ "path": "../../../src/plugins/data/tsconfig.json" },

]
}
7 changes: 4 additions & 3 deletions x-pack/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@
{ "path": "../plugins/ui_actions_enhanced/tsconfig.json" },
{ "path": "../plugins/upgrade_assistant/tsconfig.json" },
{ "path": "../plugins/watcher/tsconfig.json" },
{ "path": "../plugins/runtime_fields/tsconfig.json" },
{ "path": "../plugins/index_management/tsconfig.json" },
{ "path": "../plugins/watcher/tsconfig.json" },
{ "path": "../plugins/rollup/tsconfig.json" },
{ "path": "../plugins/remote_clusters/tsconfig.json" },
{ "path": "../plugins/cross_cluster_replication/tsconfig.json" },
{ "path": "../plugins/index_lifecycle_management/tsconfig.json"},
{ "path": "../plugins/uptime/tsconfig.json" }
]
}
8 changes: 8 additions & 0 deletions x-pack/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
"plugins/index_management/**/*",
"plugins/grokdebugger/**/*",
"plugins/upgrade_assistant/**/*",
"plugins/rollup/**/*",
"plugins/remote_clusters/**/*",
"plugins/cross_cluster_replication/**/*",
"plugins/index_lifecycle_management/**/*",
"plugins/uptime/**/*",
"test/**/*"
],
Expand Down Expand Up @@ -148,6 +152,10 @@
{ "path": "./plugins/runtime_fields/tsconfig.json" },
{ "path": "./plugins/index_management/tsconfig.json" },
{ "path": "./plugins/watcher/tsconfig.json" },
{ "path": "./plugins/rollup/tsconfig.json" },
{ "path": "./plugins/remote_clusters/tsconfig.json" },
{ "path": "./plugins/cross_cluster_replication/tsconfig.json"},
{ "path": "./plugins/index_lifecycle_management/tsconfig.json"},
{ "path": "./plugins/uptime/tsconfig.json" }
]
}
4 changes: 4 additions & 0 deletions x-pack/tsconfig.refs.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
{ "path": "./plugins/runtime_fields/tsconfig.json" },
{ "path": "./plugins/index_management/tsconfig.json" },
{ "path": "./plugins/watcher/tsconfig.json" },
{ "path": "./plugins/rollup/tsconfig.json"},
{ "path": "./plugins/remote_clusters/tsconfig.json"},
{ "path": "./plugins/cross_cluster_replication/tsconfig.json"},
{ "path": "./plugins/index_lifecycle_management/tsconfig.json"},
{ "path": "./plugins/uptime/tsconfig.json" }
]
}

0 comments on commit 84a6c63

Please sign in to comment.