-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(NA): @kbn/pm new commands to support development on Bazel packa…
…ges (#96465) * chore(NA): add warnings both to run and watch commands about Bazel built packages * chore(NA): add new commands to build and watch bazel packages * docs(NA): add documentation about how to deal with bazel packages * chore(NA): addressed majority of the feedback received except for improved error logging * chore(NA): disable ibazel info notification. * chore(NA): remove iBazel notification * chore(NA): remove iBazel notification - kbn pm dist * chore(NA): move show_results option to kbn-pm only * chore(NA): patch build bazel command to include packages target list * chore(NA): add pretty logging for elastic-datemath * chore(NA): remove double error output from commands ran with Bazel * fix(NA): include simple error message to preserve subprocess failure state * docs(NA): missing docs about how to independentely watch non bazel packages Co-authored-by: Kibana Machine <[email protected]>
- Loading branch information
1 parent
c218ba8
commit e3f5249
Showing
13 changed files
with
1,184 additions
and
921 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
[[monorepo-packages]] | ||
== {kib} Monorepo Packages | ||
|
||
Currently {kib} works as a monorepo composed by a core, plugins and packages. | ||
The latest are located in a folder called `packages` and are pieces of software that | ||
composes a set of features that can be isolated and reused across the entire repository. | ||
They are also supposed to be able to imported just like any other `node_module`. | ||
|
||
Previously we relied solely on `@kbn/pm` to manage the development tools of those packages, but we are | ||
now in the middle of migrating those responsibilities into Bazel. Every package already migrated | ||
will contain in its root folder a `BUILD.bazel` file and other `build` and `watching` strategies should be used. | ||
|
||
Remember that any time you need to make sure the monorepo is ready to be used just run: | ||
|
||
[source,bash] | ||
---- | ||
yarn kbn bootstrap | ||
---- | ||
|
||
[discrete] | ||
=== Building Non Bazel Packages | ||
|
||
Non Bazel packages can be built independently with | ||
|
||
[source,bash] | ||
---- | ||
yarn kbn run build -i PACKAGE_NAME | ||
---- | ||
|
||
[discrete] | ||
=== Watching Non Bazel Packages | ||
|
||
Non Bazel packages can be watched independently with | ||
|
||
[source,bash] | ||
---- | ||
yarn kbn watch -i PACKAGE_NAME | ||
---- | ||
|
||
[discrete] | ||
=== Building Bazel Packages | ||
|
||
Bazel packages are built as a whole for now. You can use: | ||
|
||
[source,bash] | ||
---- | ||
yarn kbn build-bazel | ||
---- | ||
|
||
[discrete] | ||
=== Watching Bazel Packages | ||
|
||
Bazel packages are watched as a whole for now. You can use: | ||
|
||
[source,bash] | ||
---- | ||
yarn kbn watch-bazel | ||
---- | ||
|
||
|
||
[discrete] | ||
=== List of Already Migrated Packages to Bazel | ||
|
||
- @elastic/datemath | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.