Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples build rework #7314

Merged
merged 11 commits into from
Jan 28, 2025
Merged

Examples build rework #7314

merged 11 commits into from
Jan 28, 2025

Conversation

kpal81xd
Copy link
Contributor

Motivation

This PR converts the old build system which generated all examples manually inside a rollup plugin to using rollup itself to watch and rebuild each example independently. This should also minimise the hot reload latency that accumulates over time.

Overview

  • Converts html and share build into rollup plugins
  • Clean up of dependencies

@kpal81xd kpal81xd self-assigned this Jan 28, 2025
@kpal81xd kpal81xd merged commit 27b93c7 into main Jan 28, 2025
7 checks passed
@kpal81xd kpal81xd deleted the examples-build branch January 28, 2025 16:31
kpal81xd added a commit that referenced this pull request Jan 28, 2025
* Converted build examples script into rollup build step

* Refactored rollup

* minor refactor

* Added share to rollup build

* Removed injecting nodeEnv into rollup plugin

* Cleaned up scripts

* Fixed lint issue

* Removed comment (not required)

* Removed not await in loop

* Fixed lint issue

* Moved example template to templates folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants