mirror of
https://github.com/elastic/kibana.git
synced 2025-04-18 23:21:39 -04:00
## Summary The `/packages` folder at the root of the Kibana repository used to contain a lot of packages. In the context of SKA, they have been gradually moved to various locations: * `src/platform/packages` * `x-pack/platform/packages` * `src/core/packages` Currently, only `devOnly: true` packages are left in this folder. This comprises libraries for CLI scripts as well as testing utilities. With this PR, we are moving ~half of these packages under `src/platform/packages/(private|shared)/`. In particular, we are moving those packages that are being used from platform and/or solutions. Since they are `"devOnly": true`, this means they are ONLY used from tests, cypress tests, storybook configs, ./scripts/ folders inside some modules, or other non-prod-time logic. Nonetheless, they are effectively referenced from platform and/or solutions code, hence I decided they should be placed under `platform` folders. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
35 lines
672 B
Text
35 lines
672 B
Text
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
|
|
|
|
SRCS = glob(
|
|
[
|
|
"**/*.js",
|
|
"**/*.ts",
|
|
],
|
|
exclude = [
|
|
"**/*.config.js",
|
|
"**/*.mock.*",
|
|
"**/*.test.*",
|
|
"**/*.stories.*",
|
|
"**/__snapshots__/**",
|
|
"**/integration_tests/**",
|
|
"**/mocks/**",
|
|
"**/scripts/**",
|
|
"**/storybook/**",
|
|
"**/test_fixtures/**",
|
|
"**/test_helpers/**",
|
|
],
|
|
)
|
|
|
|
BUNDLER_DEPS = [
|
|
"//src/platform/packages/private/kbn-peggy",
|
|
"@npm//peggy",
|
|
"@npm//webpack",
|
|
]
|
|
|
|
js_library(
|
|
name = "kbn-peggy-loader",
|
|
package_name = "@kbn/peggy-loader",
|
|
srcs = ["package.json"] + SRCS,
|
|
deps = BUNDLER_DEPS,
|
|
visibility = ["//visibility:public"],
|
|
)
|