Skip to content

Conversation

@weronikaolejniczak
Copy link
Contributor

@weronikaolejniczak weronikaolejniczak commented Dec 3, 2025

Summary

Resolves #8636

This PR simplifies the workflow for testing local EUI changes in Kibana. It adds a serve script which launches a new JS script scripts/serve_eui. It watches for changes in packages/eui/src and runs compile_eui script. If --kibana flag is passed, it additionally runs yarn pack and extracts it in ../kibana/node_modules/@elastic/eui. If --no-declarations flag is passed, it skips the d.ts files 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_eui script. It adds a new serve script.

QA

  • verify that running yarn workspace @elastic/eui serve works and generates type declarations
  • verify that running yarn workspace @elastic/eui serve --no-declarations works and doesn't generates type declarations
  • verify that running yarn workspace @elastic/eui serve --no-declarations --kibana works and doesn't generates type declarations, tars and unpacks the archive in Kibana node_modules

@weronikaolejniczak weronikaolejniczak self-assigned this Dec 3, 2025
@weronikaolejniczak weronikaolejniczak force-pushed the chore/serve-eui branch 2 times, most recently from 2237460 to 0851d6b Compare December 3, 2025 16:47
@weronikaolejniczak weronikaolejniczak added the skip-changelog-eui Use on PRs to skip changelog requirement (for @elastic/eui) label Dec 3, 2025
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @weronikaolejniczak

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @weronikaolejniczak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog-eui Use on PRs to skip changelog requirement (for @elastic/eui)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Watch mode] EUI workspace

2 participants