kibana/packages
Alejandro Fernández Haro 7226982759
[EBT] Add Elastic V3 Shippers (#130696)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-04 09:22:34 -07:00
..
analytics [EBT] Add Elastic V3 Shippers (#130696) 2022-05-04 09:22:34 -07:00
elastic-apm-synthtrace Fixes worker silent failure after style violations fixes (#131415) 2022-05-04 13:37:25 +02:00
elastic-eslint-config-kibana break out parts of @kbn/dev-utils (#130509) 2022-04-19 12:24:58 -05:00
elastic-safer-lodash-set fix all violations 2022-04-16 01:37:30 -05:00
kbn-ace fix all violations 2022-04-16 01:37:30 -05:00
kbn-alerts fix all violations 2022-04-16 01:37:30 -05:00
kbn-ambient-storybook-types [typescript] Create Ambient Types package (#129368) 2022-04-06 19:21:24 -05:00
kbn-ambient-ui-types [typescript] Create Ambient Types package (#129368) 2022-04-06 19:21:24 -05:00
kbn-analytics fix all violations 2022-04-16 01:37:30 -05:00
kbn-apm-config-loader [type-summarizer] enable @kbn/analytics, @kbn/apm-config-loader and @kbn/apm-utils (#128206) 2022-03-22 16:28:49 -06:00
kbn-apm-utils [type-summarizer] enable @kbn/analytics, @kbn/apm-config-loader and @kbn/apm-utils (#128206) 2022-03-22 16:28:49 -06:00
kbn-axe-config [axe-config] extract module to it's own package (#128815) 2022-03-29 15:12:14 -07:00
kbn-babel-plugin-synthetic-packages [plugins] use module ids to import across plugins 2022-04-16 01:19:05 -05:00
kbn-babel-preset [Synthetics] Rename uptime plugin to synthetics (#130037) 2022-04-20 11:53:28 -07:00
kbn-bazel-packages [EBT] Add Elastic V3 Shippers (#130696) 2022-05-04 09:22:34 -07:00
kbn-bazel-runner [jest] automatically determine run order (attempt 2) (#131091) 2022-04-27 11:18:15 -07:00
kbn-ci-stats-core [jest] automatically determine run order (attempt 2) (#131091) 2022-04-27 11:18:15 -07:00
kbn-ci-stats-reporter [ci-stats-reporter] use a default timeout of 60 seconds (#131428) 2022-05-03 11:00:55 -07:00
kbn-cli-dev-mode [jest] try running unit tests in parallel (#130823) 2022-04-21 16:37:06 -05:00
kbn-coloring [Step 3] Cleanup charts plugin (#130132) 2022-04-19 11:47:37 +05:00
kbn-config fix all violations 2022-04-16 01:37:30 -05:00
kbn-config-schema fix all violations 2022-04-16 01:37:30 -05:00
kbn-crypto [ts] enable sourcemaps in summarized types of @kbn/crypto (#126410) 2022-03-04 08:02:02 -06:00
kbn-datemath fix all violations 2022-04-16 01:37:30 -05:00
kbn-dev-utils add kibana.json json-schema for VSCode users (#130625) 2022-04-20 08:25:41 -07:00
kbn-doc-links Improve saved objects migrations failure errors and logs (#131359) 2022-05-03 18:03:48 -07:00
kbn-docs-utils [@kbn/docs-utils] Support ConstructSignatures (#131287) 2022-05-02 22:30:12 +02:00
kbn-es break out parts of @kbn/dev-utils (#130509) 2022-04-19 12:24:58 -05:00
kbn-es-archiver break out parts of @kbn/dev-utils (#130509) 2022-04-19 12:24:58 -05:00
kbn-es-query fix all violations 2022-04-16 01:37:30 -05:00
kbn-eslint-plugin-eslint [plugins] use module ids to import across plugins 2022-04-16 01:19:05 -05:00
kbn-eslint-plugin-imports [jest] automatically determine run order (attempt 2) (#131091) 2022-04-27 11:18:15 -07:00
kbn-expect chore(NA): use internal pkg_npm on @kbn/expect (#120941) 2021-12-10 02:45:49 +00:00
kbn-field-types fix all violations 2022-04-16 01:37:30 -05:00
kbn-find-used-node-modules [plugins] use module ids to import across plugins 2022-04-16 01:19:05 -05:00
kbn-flot-charts Tweak Canvas plot renderer (#126862) 2022-03-04 10:00:03 -05:00
kbn-generate [jest] automatically determine run order (attempt 2) (#131091) 2022-04-27 11:18:15 -07:00
kbn-i18n fix all violations 2022-04-16 01:37:30 -05:00
kbn-i18n-react Bump @testing-library (#128659) 2022-04-06 21:11:33 +02:00
kbn-import-resolver fix missing testing dep for windows dev (#130579) 2022-04-19 10:41:44 -07:00
kbn-interpreter fix all violations 2022-04-16 01:37:30 -05:00
kbn-io-ts-utils fix all violations 2022-04-16 01:37:30 -05:00
kbn-jest-serializers [jest] automatically determine run order (attempt 2) (#131091) 2022-04-27 11:18:15 -07:00
kbn-kibana-json-schema [jest] automatically determine run order (attempt 2) (#131091) 2022-04-27 11:18:15 -07:00
kbn-logging [bazel] avoid a little boilerplate in packages (#126309) 2022-02-24 12:43:12 -06:00
kbn-logging-mocks [bazel] avoid a little boilerplate in packages (#126309) 2022-02-24 12:43:12 -06:00
kbn-mapbox-gl [Maps] update MapLibre to 2.1.latest (#127501) 2022-04-21 07:02:57 -06:00
kbn-monaco [eslint] ensure that all imports are resolvable (#129002) 2022-04-04 15:37:06 -04:00
kbn-optimizer [EBT] Add Elastic V3 Shippers (#130696) 2022-05-04 09:22:34 -07:00
kbn-plugin-discovery [jest] automatically determine run order (attempt 2) (#131091) 2022-04-27 11:18:15 -07:00
kbn-plugin-generator break out parts of @kbn/dev-utils (#130509) 2022-04-19 12:24:58 -05:00
kbn-plugin-helpers break out parts of @kbn/dev-utils (#130509) 2022-04-19 12:24:58 -05:00
kbn-pm [ci-stats-reporter] use a default timeout of 60 seconds (#131428) 2022-05-03 11:00:55 -07:00
kbn-react-field Add type murmur3 into the lens fields list (#129029) 2022-04-12 18:03:15 +02:00
kbn-rule-data-utils [Security Solution][Alerts] Replace schemas derived from FieldMaps with versioned alert schema (#127218) 2022-03-29 20:11:55 -07:00
kbn-securitysolution-autocomplete [Unified Search] Move autocomplete logic to unified search plugin (#129977) 2022-04-22 11:02:56 +05:00
kbn-securitysolution-es-utils [bazel] avoid a little boilerplate in packages (#126309) 2022-02-24 12:43:12 -06:00
kbn-securitysolution-hook-utils [bazel] avoid a little boilerplate in packages (#126309) 2022-02-24 12:43:12 -06:00
kbn-securitysolution-io-ts-alerting-types [Response Ops] Renaming Alert to Rule (#129136) 2022-04-04 07:32:32 -04:00
kbn-securitysolution-io-ts-list-types fix all violations 2022-04-16 01:37:30 -05:00
kbn-securitysolution-io-ts-types fix all violations 2022-04-16 01:37:30 -05:00
kbn-securitysolution-io-ts-utils chore(NA): upgrades bazel rules nodejs to v5 (#129522) 2022-04-08 20:42:37 +01:00
kbn-securitysolution-list-api Set filter to undefined when it's empty on findExceptionLists method (#128455) 2022-03-29 12:44:31 +02:00
kbn-securitysolution-list-constants [Security Solution] add blocklist list (#126390) 2022-03-01 09:46:13 -06:00
kbn-securitysolution-list-hooks Bump @testing-library (#128659) 2022-04-06 21:11:33 +02:00
kbn-securitysolution-list-utils [data views] Type cleanup, monitoring uses data views service instead of faking data view (#128853) 2022-04-14 09:13:07 -05:00
kbn-securitysolution-rules [Security Solution][Detections] Adds rule execution log table (#126215) 2022-03-28 16:42:46 -06:00
kbn-securitysolution-t-grid [bazel] avoid a little boilerplate in packages (#126309) 2022-02-24 12:43:12 -06:00
kbn-securitysolution-utils fix all violations 2022-04-16 01:37:30 -05:00
kbn-server-http-tools [bazel] avoid a little boilerplate in packages (#126309) 2022-02-24 12:43:12 -06:00
kbn-server-route-repository [bazel] avoid a little boilerplate in packages (#126309) 2022-02-24 12:43:12 -06:00
kbn-shared-ux-components [SharedUX] Implement KibanaNoDataPage component (#130716) 2022-04-28 12:00:44 +02:00
kbn-shared-ux-services [SharedUX] Implement KibanaNoDataPage component (#130716) 2022-04-28 12:00:44 +02:00
kbn-shared-ux-storybook [SharedUX] Implement KibanaNoDataPage component (#130716) 2022-04-28 12:00:44 +02:00
kbn-shared-ux-utility [sharedUX] Move to Package-based Architecture (#127546) 2022-03-16 17:13:58 -04:00
kbn-sort-package-json [jest] automatically determine run order (attempt 2) (#131091) 2022-04-27 11:18:15 -07:00
kbn-spec-to-console fix all violations 2022-04-16 01:37:30 -05:00
kbn-std Upgrade RxJS to 7 (#129087) 2022-04-12 12:40:55 -07:00
kbn-stdio-dev-helpers [jest] automatically determine run order (attempt 2) (#131091) 2022-04-27 11:18:15 -07:00
kbn-storybook [storybook] Watch for changes in packages (#131467) 2022-05-03 16:24:22 -07:00
kbn-synthetic-package-map [plugins] use module ids to import across plugins 2022-04-16 01:19:05 -05:00
kbn-telemetry-tools [plugins] use module ids to import across plugins 2022-04-16 01:19:05 -05:00
kbn-test Upgrade EUI to v55.0.1 (#130593) 2022-04-27 17:06:15 -05:00
kbn-test-jest-helpers [axe-config] extract module to it's own package (#128815) 2022-03-29 15:12:14 -07:00
kbn-test-subj-selector fix all violations 2022-04-16 01:37:30 -05:00
kbn-timelion-grammar [eslint] ensure that all imports are resolvable (#129002) 2022-04-04 15:37:06 -04:00
kbn-tinymath fix all violations 2022-04-16 01:37:30 -05:00
kbn-tooling-log [bootstrap] fix windows support (#130938) 2022-04-26 10:20:46 -05:00
kbn-type-summarizer chore(NA): downgrades rules nodejs into v4.7.0 (#130347) 2022-04-15 04:11:08 +01:00
kbn-typed-react-router-config [APM] Improve error message for route matching (#126455) 2022-03-01 14:49:27 +01:00
kbn-ui-framework chore(NA): use internal pkg_npm on @kbn/ui-framework (#121922) 2021-12-23 02:53:36 +00:00
kbn-ui-shared-deps-npm Move node-libs-browser to ui-shared-deps-npm (#130877) 2022-04-26 20:27:30 +02:00
kbn-ui-shared-deps-src chore(NA): upgrades bazel rules nodejs to v5 (#129522) 2022-04-08 20:42:37 +01:00
kbn-ui-theme [bazel] avoid a little boilerplate in packages (#126309) 2022-02-24 12:43:12 -06:00
kbn-utility-types Change ContextContainer to lazily initialize providers (#129896) 2022-04-22 13:15:58 +02:00
kbn-utils fix all violations 2022-04-16 01:37:30 -05:00
shared-ux [jest/configs] fix checks for nested packages (#130583) 2022-04-19 15:11:12 -05:00
BUILD.bazel [EBT] Add Elastic V3 Shippers (#130696) 2022-05-04 09:22:34 -07:00
README.md Remove grunt (#111882) 2021-09-16 15:24:42 -04:00

Kibana-related packages

This folder contains packages that are intended for use in Kibana and Kibana plugins.

tl;dr:

  • Don't publish to npm registry
  • Always use the @kbn namespace
  • Always set "private": true in package.json

Using these packages

We no longer publish these packages to the npm registry. Now, instead of specifying a version when including these packages, we rely on yarn workspaces, which sets up a symlink to the package.

For example if you want to use the @kbn/i18n package in Kibana itself, you can specify the dependency like this:

"@kbn/i18n": "1.0.0"

However, if you want to use this from a Kibana plugin, you need to use a link: dependency and account for the relative location of the Kibana repo, so it would instead be:

"@kbn/i18n": "link:../../kibana/packages/kbn-i18n"

How all of this works is described in more detail in the @kbn/pm docs.

Creating a new package

Create a new sub-folder. The name of the folder should mirror the name in the package's package.json. E.g. if the name is @kbn/i18n the folder name should be kbn-i18n.

All new packages should use the @kbn namespace, and should be marked with "private": true.

Unit tests for a package

Currently there is only one tool being used in order to test packages which is Jest. Below we will explain how it should be done.

Jest

A package should follow the pattern of having .test.js files as siblings of the source code files, and these run by Jest.

A package using the .test.js naming convention will have those tests automatically picked up by Jest and run by the unit test runner, currently mapped to the Kibana test script in the root package.json.

  • yarn test runs all unit tests.
  • yarn jest runs all Jest tests in Kibana.

In order for the plugin or package to use Jest, a jest.config.js file must be present in it's root. However, there are safeguards for this in CI should a test file be added without a corresponding config file.


Each package can also specify its own test script in the package's package.json, for cases where you'd prefer to run the tests from the local package directory.