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

Revise project structure #70

Merged
merged 9 commits into from
Dec 10, 2023
Merged

Revise project structure #70

merged 9 commits into from
Dec 10, 2023

Conversation

ralfstx
Copy link
Member

@ralfstx ralfstx commented Dec 10, 2023

No description provided.

In an effort to structure the codebase better, this commit moves the
modules that are responsible for the layout to a subfolder `layout/` and
the modules that implement the rendering to a subfolder `render/`.
To eliminate circular dependencies, `Frame` and related types are moved
to a dedicated module `frame`.
To eliminate circular dependencies, `MakerCtx` is moved
to a dedicated module `maker-ctx`.
To eliminate circular dependencies, `FontStore` and `ImageStore` are
moved into the `font-loader` and `image-loader` modules, respectively.
In order to distinguish the public API from internal code, this commit
moves all modules that contribute to the public API to a dedicated
folder.
This commit improves the typing of the `namedColors` object, whose
values are tuples of exactly three numbers.
Node.js supports importing built-in modules using `node:` URLs. These
imports are also supported by Deno and Bun. This commit updates all
imports of Node.js built-in modules to use `node:` URLs.
@ralfstx ralfstx changed the title Mr node Revise project structure Dec 10, 2023
@ralfstx ralfstx merged commit a5f131d into main Dec 10, 2023
1 check passed
@ralfstx ralfstx deleted the mr-node branch December 10, 2023 17:09
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.

1 participant