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: move renderers to their own plugin #7166

Merged
merged 4 commits into from May 23, 2023
Merged

Conversation

ematipico
Copy link
Member

Changes

This PR moves the code generated for the renderers in its own plugin.

The reason why this is required is that this is code that will be shared among pages, so it makes more sense to have an entry point just for that.

This will be helpful shortly when we'll split pages into multiple entry points, and they will need to import the same code

Testing

The current tests should pass

Docs

N/A

@changeset-bot
Copy link

changeset-bot bot commented May 22, 2023

🦋 Changeset detected

Latest commit: cfa992b

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label May 22, 2023
@ematipico ematipico force-pushed the feat/plugin-renderes branch 2 times, most recently from 266c33a to c5b63f5 Compare May 23, 2023 08:02
Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

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

Some small nits, but I really like this refactor!

packages/astro/src/core/build/plugins/plugin-pages.ts Outdated Show resolved Hide resolved
packages/astro/src/core/build/plugins/plugin-pages.ts Outdated Show resolved Hide resolved
packages/astro/src/core/build/plugins/plugin-renderers.ts Outdated Show resolved Hide resolved
@ematipico ematipico merged commit 626dd41 into main May 23, 2023
14 checks passed
@ematipico ematipico deleted the feat/plugin-renderes branch May 23, 2023 13:55
@astrobot-houston astrobot-houston mentioned this pull request May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants