mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
chore(ui-shared-deps): add @kbn/ebt-tools
(#191754)
This commit is contained in:
parent
6ce2d6b056
commit
63ca4367e5
4 changed files with 40 additions and 1 deletions
36
packages/kbn-ebt-tools/BUILD.bazel
Normal file
36
packages/kbn-ebt-tools/BUILD.bazel
Normal file
|
@ -0,0 +1,36 @@
|
|||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
|
||||
|
||||
SRCS = glob(
|
||||
[
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
],
|
||||
exclude = [
|
||||
"**/*.config.js",
|
||||
"**/*.mock.*",
|
||||
"**/*.test.*",
|
||||
"**/*.stories.*",
|
||||
"**/__snapshots__/**",
|
||||
"**/integration_tests/**",
|
||||
"**/mocks/**",
|
||||
"**/scripts/**",
|
||||
"**/storybook/**",
|
||||
"**/test_fixtures/**",
|
||||
"**/test_helpers/**",
|
||||
],
|
||||
)
|
||||
|
||||
SHARED_DEPS = [
|
||||
"@npm//@elastic/ebt",
|
||||
"@npm//@elastic/apm-rum-core",
|
||||
"@npm//react",
|
||||
"@npm//react-router-dom",
|
||||
]
|
||||
|
||||
js_library(
|
||||
name = "kbn-ebt-tools",
|
||||
package_name = "@kbn/ebt-tools",
|
||||
srcs = ["package.json"] + SRCS,
|
||||
deps = SHARED_DEPS,
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
|
@ -24,6 +24,7 @@ webpack_cli(
|
|||
"//packages/kbn-ui-theme",
|
||||
"//packages/kbn-i18n",
|
||||
"//packages/kbn-i18n-react",
|
||||
"//packages/kbn-ebt-tools",
|
||||
"//packages/kbn-esql-ast",
|
||||
"//packages/kbn-monaco",
|
||||
"//packages/kbn-datemath",
|
||||
|
|
|
@ -31,7 +31,7 @@ const jsFilename = 'kbn-ui-shared-deps-src.js';
|
|||
const cssDistFilename = 'kbn-ui-shared-deps-src.css';
|
||||
|
||||
/**
|
||||
* Externals mapping inteded to be used in a webpack config
|
||||
* Externals mapping intended to be used in a webpack config
|
||||
*/
|
||||
const externals = {
|
||||
/**
|
||||
|
@ -102,6 +102,7 @@ const externals = {
|
|||
'@tanstack/react-query-devtools': '__kbnSharedDeps__.ReactQueryDevtools',
|
||||
'@kbn/code-editor': '__kbnSharedDeps__.KbnCodeEditor',
|
||||
'@kbn/esql-ast': '__kbnSharedDeps__.KbnEsqlAst',
|
||||
'@kbn/ebt-tools': '__kbnSharedDeps__.KbnEbtTools',
|
||||
'@elastic/apm-rum-core': '__kbnSharedDeps__.ElasticApmRumCore',
|
||||
};
|
||||
|
||||
|
|
|
@ -75,4 +75,5 @@ export const ReactQuery = require('@tanstack/react-query');
|
|||
export const ReactQueryDevtools = require('@tanstack/react-query-devtools');
|
||||
export const KbnCodeEditor = require('@kbn/code-editor');
|
||||
export const KbnEsqlAst = require('@kbn/esql-ast');
|
||||
export const KbnEbtTools = require('@kbn/ebt-tools');
|
||||
export const ElasticApmRumCore = require('@elastic/apm-rum-core');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue