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

refactor(web): transformation of build-bundler into a common es-bundling command 📜 #10265

Merged
merged 6 commits into from
Jan 8, 2024

Conversation

jahorton
Copy link
Contributor

@jahorton jahorton commented Dec 15, 2023

During the big ES-modularization work (🧩) of this (17.0) release cycle, I created a lot of build-bundler.js scripts - roughly one per .tsconfig project. Many of them are very similar to each other. In #9025, the various configurations were cleaned up and DRY-ed out, but the code using those configurations... that never got reworked and is thus still WET. Until now.

If this is not tackled at least somewhat now, the problem will continue to proliferate when pursuing separate ES6 artifacts for Web builds - they'd need their own custom versions. (See #10257.)

As I did with the lm-worker's other two scripts in #10264, the WET build-bundler script has been reworked with parameterization. But, rather than leave it in the lm-worker's space... I have instead implemented this as a common command-script within the common/web/es-bundling resource project.

While none of the other Web projects aside from lm-worker utilize it - yet - we should be able to replace most build-bundler.js calls, over time, with calls into this common script instead. Much of this will be done within #10267.

@keymanapp-test-bot skip

@jahorton jahorton requested a review from mcdurdin as a code owner December 15, 2023 05:03
@github-actions github-actions bot added web/ and removed web/ labels Dec 20, 2023
Copy link
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@github-actions github-actions bot added web/ and removed web/ labels Dec 20, 2023
@github-actions github-actions bot added web/ and removed web/ labels Dec 22, 2023
@mcdurdin mcdurdin modified the milestones: A17S28, A17S29 Dec 30, 2023
@mcdurdin mcdurdin modified the milestones: A17S29, A17S30 Jan 6, 2024
Base automatically changed from change/web/lm-worker-bundling-cleanup to master January 8, 2024 08:53
@jahorton jahorton merged commit bf9983b into master Jan 8, 2024
19 checks passed
@jahorton jahorton deleted the refactor/web/common-esbundling branch January 8, 2024 08:53
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 17.0.239-alpha

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

Successfully merging this pull request may close these issues.

4 participants