Should the build directory of a block plugin be committed to a repo? #48227
-
I'm learning how to create Gutenberg blocks and following the Create Block Tutorial. The Is the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm not sure if there's quite any consensus yet and I wouldn't be too worried if you don't. Personally, I do commit it because if someone (including myself) has an issue with their build process locally and cannot build it, they can at least use the block without any extra actions. If you do include the build directory, just make sure that it is synced with your src directory. Some (@ndiego , @ryanwelcher do include the build directory; Others ( @richtabor (https://github.com/richtabor/share-on-twitter-block) 10up don't. cc @ryanwelcher |
Beta Was this translation helpful? Give feedback.
I'm not sure if there's quite any consensus yet and I wouldn't be too worried if you don't.
Personally, I do commit it because if someone (including myself) has an issue with their build process locally and cannot build it, they can at least use the block without any extra actions.
If you do include the build directory, just make sure that it is synced with your src directory.
Some (@ndiego , @ryanwelcher do include the build directory;
Others ( @richtabor (https://github.com/richtabor/share-on-twitter-block) 10up don't.
cc @ryanwelcher