* Adds boilerplate for new hook-utils package * Move existing, identified utils into our hook-utils package Updates references, and fixes a few missing config that were preventing packages from building. * Extracts a common type and adds a little more JSdoc for clarity * Adds new useObservable hook Similar to useAsync (a nearly identical interface), this is meant to wrap a thunk returning an observable, allowing conditional invocation and progressive updates as the observable continues to emit. * Remove orphaned test This function (and its tests) were moved to the hook-utils package; this was simply missed. * Remove optional chaining from kbn package The build system does not currently support these typescript features. While a valid fix would also have been to build separate browser and node targets a la #99390, the use here was very minimal and so changing to a supported syntax was the most pragmatic fix. * Update old reference in test file Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
52 lines
2.2 KiB
Python
52 lines
2.2 KiB
Python
# Grouping target to call all underlying packages build
|
|
# targets so we can build them all at once
|
|
filegroup(
|
|
name = "build",
|
|
srcs = [
|
|
"//packages/elastic-datemath:build",
|
|
"//packages/elastic-eslint-config-kibana:build",
|
|
"//packages/elastic-safer-lodash-set:build",
|
|
"//packages/kbn-ace:build",
|
|
"//packages/kbn-analytics:build",
|
|
"//packages/kbn-apm-config-loader:build",
|
|
"//packages/kbn-apm-utils:build",
|
|
"//packages/kbn-babel-code-parser:build",
|
|
"//packages/kbn-babel-preset:build",
|
|
"//packages/kbn-common-utils:build",
|
|
"//packages/kbn-config:build",
|
|
"//packages/kbn-config-schema:build",
|
|
"//packages/kbn-crypto:build",
|
|
"//packages/kbn-dev-utils:build",
|
|
"//packages/kbn-docs-utils:build",
|
|
"//packages/kbn-es:build",
|
|
"//packages/kbn-eslint-import-resolver-kibana:build",
|
|
"//packages/kbn-eslint-plugin-eslint:build",
|
|
"//packages/kbn-expect:build",
|
|
"//packages/kbn-i18n:build",
|
|
"//packages/kbn-io-ts-utils:build",
|
|
"//packages/kbn-legacy-logging:build",
|
|
"//packages/kbn-logging:build",
|
|
"//packages/kbn-mapbox-gl:build",
|
|
"//packages/kbn-monaco:build",
|
|
"//packages/kbn-plugin-generator:build",
|
|
"//packages/kbn-rule-data-utils:build",
|
|
"//packages/kbn-securitysolution-list-constants:build",
|
|
"//packages/kbn-securitysolution-io-ts-types:build",
|
|
"//packages/kbn-securitysolution-io-ts-alerting-types:build",
|
|
"//packages/kbn-securitysolution-io-ts-list-types:build",
|
|
"//packages/kbn-securitysolution-io-ts-utils:build",
|
|
"//packages/kbn-securitysolution-list-api:build",
|
|
"//packages/kbn-securitysolution-list-hooks:build",
|
|
"//packages/kbn-securitysolution-list-utils:build",
|
|
"//packages/kbn-securitysolution-utils:build",
|
|
"//packages/kbn-securitysolution-es-utils:build",
|
|
"//packages/kbn-securitysolution-hook-utils:build",
|
|
"//packages/kbn-server-http-tools:build",
|
|
"//packages/kbn-server-route-repository:build",
|
|
"//packages/kbn-std:build",
|
|
"//packages/kbn-telemetry-tools:build",
|
|
"//packages/kbn-tinymath:build",
|
|
"//packages/kbn-utility-types:build",
|
|
"//packages/kbn-utils:build",
|
|
],
|
|
)
|