-
Notifications
You must be signed in to change notification settings - Fork 903
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy block.json files over to root blocks folder
For the block registration, we need access to the `block.json` file. Therefore, we need to ensure the path is the same in development and production (zip). This commit solves that by effectively making the root blocks folder the "dist" or "build" folder for our block.json files. When bundling, any `block.json` files found (within our entry scripts) are copied over to the root blocks folder. Keeping the folder structure in place from `packages/js/src` onwards. When creating an artifact, the blocks root folder is copied to the artifact folder. Note: the webpack copy currently has no support for any CSS or JS alongside, but the artifact copy ignore extensions already.
- Loading branch information
1 parent
01f20eb
commit 123ecf3
Showing
4 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters