Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #8636
This PR simplifies the workflow for testing local EUI changes in Kibana. It adds a
servescript which launches a new JS scriptscripts/serve_eui. It watches for changes inpackages/eui/srcand runscompile_euiscript. If--kibanaflag is passed, it additionally runsyarn packand extracts it in../kibana/node_modules/@elastic/eui. If--no-declarationsflag is passed, it skips thed.tsfiles generation which saves ~30s.Why are we making this change?
We are making this change to improve local development in EUI.
The goal is, along with the changes in Kibana, to have a seamless way to test local EUI changes in Kibana without having to repack EUI on each change and bootstrap Kibana which can last from 10 to 20 minutes. Now, it lasts up to 1 minute and eliminates the manual chore.
Please read the linked task to learn more.
Screenshots #
Kapture.2025-12-03.at.13.50.16.mp4
Impact to users
🟢 This is not a breaking change. It doesn't affect existing
compile_euiscript. It adds a newservescript.QA
yarn workspace @elastic/eui serveworks and generates type declarationsyarn workspace @elastic/eui serve --no-declarationsworks and doesn't generates type declarationsyarn workspace @elastic/eui serve --no-declarations --kibanaworks and doesn't generates type declarations, tars and unpacks the archive in Kibananode_modules