Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Build process for Gutenberg blocks #8

Merged
merged 4 commits into from Nov 16, 2022
Merged

Build process for Gutenberg blocks #8

merged 4 commits into from Nov 16, 2022

Conversation

ahegyes
Copy link
Contributor

@ahegyes ahegyes commented Oct 26, 2022

Changes proposed in this Pull Request

  • Add a multi-block mu-plugin
  • Build all the blocks in the mu-plugin using the root-level package.json

Discussion points

  • wp-scripts supports an entry point with either one of the extensions js, jsx, ts, or tsx so I wanted to leave on block in vanilla JS and have on block in TS; however, while it would compile, TS wouldn't actually do any type checking because we would be missing the ts-loader in the bundled webpack config; I didn't want to add a custom webpack config for that, so it might be best to wait until this is officially supported; however, feel free to build complicated TypeScript-blocks with TS-style classes and all that -- compiling will work;

@ahegyes
Copy link
Contributor Author

ahegyes commented Nov 16, 2022

Approved on Nov 16th meeting by majority.

@ahegyes
Copy link
Contributor Author

ahegyes commented Nov 16, 2022

Approved by majority in meeting on Nov 16th.

@ahegyes ahegyes merged commit 0a9e4a4 into trunk Nov 16, 2022
@ahegyes ahegyes deleted the feat/gb-blocks-build branch November 16, 2022 16:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant