Skip to content

Commit

Permalink
Migrate logstash, monitoring, url_drilldowns, xpack_legacy to ts proj…
Browse files Browse the repository at this point in the history
…ects (elastic#91194)

* migrate drilldowns to ts project

* monitoring to ts project

* xpack legacy to ts project

* logstash to ts projects

* missing comma

* list deep project

* export type to refer in d.ts
  • Loading branch information
mshustov authored and kibanamachine committed Feb 17, 2021
1 parent 22ad261 commit 99b6ccd
Show file tree
Hide file tree
Showing 9 changed files with 93 additions and 16 deletions.
3 changes: 3 additions & 0 deletions src/dev/typescript/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export const PROJECTS = [
new Project(resolve(REPO_ROOT, 'x-pack/tsconfig.json')),
new Project(resolve(REPO_ROOT, 'x-pack/test/tsconfig.json'), { name: 'x-pack/test' }),
new Project(resolve(REPO_ROOT, 'src/core/tsconfig.json')),
new Project(resolve(REPO_ROOT, 'x-pack/plugins/drilldowns/url_drilldown/tsconfig.json'), {
name: 'security_solution/cypress',
}),
new Project(resolve(REPO_ROOT, 'x-pack/plugins/security_solution/cypress/tsconfig.json'), {
name: 'security_solution/cypress',
}),
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.refs.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
{ "path": "./x-pack/plugins/data_enhanced/tsconfig.json" },
{ "path": "./x-pack/plugins/dashboard_mode/tsconfig.json" },
{ "path": "./x-pack/plugins/discover_enhanced/tsconfig.json" },
{ "path": "./x-pack/plugins/drilldowns/url_drilldown/tsconfig.json" },
{ "path": "./x-pack/plugins/embeddable_enhanced/tsconfig.json" },
{ "path": "./x-pack/plugins/encrypted_saved_objects/tsconfig.json" },
{ "path": "./x-pack/plugins/enterprise_search/tsconfig.json" },
Expand All @@ -84,6 +85,7 @@
{ "path": "./x-pack/plugins/lens/tsconfig.json" },
{ "path": "./x-pack/plugins/license_management/tsconfig.json" },
{ "path": "./x-pack/plugins/licensing/tsconfig.json" },
{ "path": "./x-pack/plugins/logstash/tsconfig.json" },
{ "path": "./x-pack/plugins/maps_legacy_licensing/tsconfig.json" },
{ "path": "./x-pack/plugins/maps/tsconfig.json" },
{ "path": "./x-pack/plugins/ml/tsconfig.json" },
Expand Down Expand Up @@ -112,6 +114,7 @@
{ "path": "./x-pack/plugins/remote_clusters/tsconfig.json" },
{ "path": "./x-pack/plugins/cross_cluster_replication/tsconfig.json" },
{ "path": "./x-pack/plugins/index_lifecycle_management/tsconfig.json" },
{ "path": "./x-pack/plugins/uptime/tsconfig.json" }
{ "path": "./x-pack/plugins/uptime/tsconfig.json" },
{ "path": "./x-pack/plugins/xpack_legacy/tsconfig.json" },
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ interface PanelValues extends EmbeddableInput {
savedObjectId?: string;
}

interface ContextValues {
export interface ContextValues {
panel: PanelValues;
}

Expand Down
20 changes: 20 additions & 0 deletions x-pack/plugins/drilldowns/url_drilldown/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": ["public/**/*"],
"references": [
{ "path": "../../../../src/core/tsconfig.json" },
{ "path": "../../ui_actions_enhanced/tsconfig.json" },
{ "path": "../../../../src/plugins/embeddable/tsconfig.json" },
{ "path": "../../../../src/plugins/expressions/tsconfig.json" },
{ "path": "../../../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../../../src/plugins/kibana_utils/tsconfig.json" },
{ "path": "../../../../src/plugins/ui_actions/tsconfig.json" }
]
}
26 changes: 26 additions & 0 deletions x-pack/plugins/logstash/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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": "../../../src/core/tsconfig.json" },
{ "path": "../../../src/plugins/home/tsconfig.json"},
{ "path": "../../../src/plugins/management/tsconfig.json"},

{ "path": "../features/tsconfig.json" },
{ "path": "../licensing/tsconfig.json"},
{ "path": "../monitoring/tsconfig.json"},
{ "path": "../security/tsconfig.json"},
]
}
15 changes: 10 additions & 5 deletions x-pack/plugins/monitoring/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,30 @@
"declaration": true,
"declarationMap": true
},
"include": ["common/**/*", "public/**/*", "server/**/*"],
"include": [
"common/**/*",
"public/**/*",
"server/**/*"
],
"references": [
{ "path": "../../../src/core/tsconfig.json" },
{ "path": "../../../src/plugins/data/tsconfig.json" },
{ "path": "../../../src/plugins/home/tsconfig.json" },
{ "path": "../../../src/plugins/kibana_legacy/tsconfig.json" },
{ "path": "../../../src/plugins/kibana_utils/tsconfig.json" },
{ "path": "../../../src/plugins/navigation/tsconfig.json" },
{ "path": "../../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../../src/plugins/kibana_utils/tsconfig.json" },
{ "path": "../../../src/plugins/usage_collection/tsconfig.json" },
{ "path": "../actions/tsconfig.json" },
{ "path": "../alerts/tsconfig.json" },
{ "path": "../actions/tsconfig.json" },
{ "path": "../cloud/tsconfig.json" },
{ "path": "../encrypted_saved_objects/tsconfig.json" },
{ "path": "../features/tsconfig.json" },
{ "path": "../infra/tsconfig.json" },
{ "path": "../license_management/tsconfig.json" },
{ "path": "../licensing/tsconfig.json" },
{ "path": "../license_management/tsconfig.json" },
{ "path": "../observability/tsconfig.json" },
{ "path": "../telemetry_collection_xpack/tsconfig.json" },
{ "path": "../triggers_actions_ui/tsconfig.json" }
{ "path": "../triggers_actions_ui/tsconfig.json" },
]
}
18 changes: 18 additions & 0 deletions x-pack/plugins/xpack_legacy/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"server/**/*",
],
"references": [
{ "path": "../../../src/core/tsconfig.json" },
{ "path": "../../../src/plugins/usage_collection/tsconfig.json" },
{ "path": "../monitoring/tsconfig.json" },
]
}
8 changes: 5 additions & 3 deletions x-pack/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"types": ["node", "flot"]
},
"include": ["**/*", "../typings/**/*", "../../packages/kbn-test/types/ftr_globals/**/*"],
"exclude": ["../typings/jest.d.ts"],
"references": [
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/bfetch/tsconfig.json" },
Expand Down Expand Up @@ -53,6 +52,7 @@
{ "path": "../plugins/global_search_providers/tsconfig.json" },
{ "path": "../plugins/features/tsconfig.json" },
{ "path": "../plugins/data_enhanced/tsconfig.json" },
{ "path": "../plugins/drilldowns/url_drilldown/tsconfig.json" },
{ "path": "../plugins/embeddable_enhanced/tsconfig.json" },
{ "path": "../plugins/encrypted_saved_objects/tsconfig.json" },
{ "path": "../plugins/enterprise_search/tsconfig.json" },
Expand All @@ -68,6 +68,7 @@
{ "path": "../plugins/lens/tsconfig.json" },
{ "path": "../plugins/license_management/tsconfig.json" },
{ "path": "../plugins/licensing/tsconfig.json" },
{ "path": "../plugins/logstash/tsconfig.json" },
{ "path": "../plugins/ml/tsconfig.json" },
{ "path": "../plugins/monitoring/tsconfig.json" },
{ "path": "../plugins/observability/tsconfig.json" },
Expand All @@ -89,7 +90,8 @@
{ "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" }
{ "path": "../plugins/index_lifecycle_management/tsconfig.json"},
{ "path": "../plugins/uptime/tsconfig.json" },
{ "path": "../plugins/xpack_legacy/tsconfig.json" }
]
}
12 changes: 6 additions & 6 deletions x-pack/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"tasks/**/*",
"plugins/case/**/*",
"plugins/lists/**/*",
"plugins/logstash/**/*",
"plugins/security_solution/**/*",
"plugins/xpack_legacy/**/*",
"plugins/drilldowns/url_drilldown/**/*"
],
"exclude": [
"test/**/*",
Expand Down Expand Up @@ -69,6 +66,7 @@
{ "path": "./plugins/data_enhanced/tsconfig.json" },
{ "path": "./plugins/dashboard_mode/tsconfig.json" },
{ "path": "./plugins/discover_enhanced/tsconfig.json" },
{ "path": "./plugins/drilldowns/url_drilldown/tsconfig.json" },
{ "path": "./plugins/embeddable_enhanced/tsconfig.json" },
{ "path": "./plugins/encrypted_saved_objects/tsconfig.json" },
{ "path": "./plugins/enterprise_search/tsconfig.json" },
Expand All @@ -86,6 +84,7 @@
{ "path": "./plugins/lens/tsconfig.json" },
{ "path": "./plugins/license_management/tsconfig.json" },
{ "path": "./plugins/licensing/tsconfig.json" },
{ "path": "./plugins/logstash/tsconfig.json" },
{ "path": "./plugins/maps_legacy_licensing/tsconfig.json" },
{ "path": "./plugins/maps/tsconfig.json" },
{ "path": "./plugins/ml/tsconfig.json" },
Expand All @@ -111,8 +110,9 @@
{ "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" }
{ "path": "./plugins/cross_cluster_replication/tsconfig.json"},
{ "path": "./plugins/index_lifecycle_management/tsconfig.json"},
{ "path": "./plugins/uptime/tsconfig.json" },
{ "path": "./plugins/xpack_legacy/tsconfig.json" }
]
}

0 comments on commit 99b6ccd

Please sign in to comment.