What type of PR is this? (put an x to all applicable)
[X] ๐ Feature
[ ] ๐ Bug Fix
[ ] ๐ Documentation Update
[ ] ๐จ Style
[ ] ๐งโ๐ป Code Refactor
[ ] ๐ฅ Performance Improvements
[ ] โ Test
[ ] ๐ค Build
[ ] ๐ CI
[ ] ๐ฆ Chore (Release)
[ ] โฉ Revert
Link to test
Description
This PR adds to the block created with the WP-CLI command wp wds create_portable_block starter styles and changes how styles are built, so single style files are created per each block.
Example:
Run the following to create the block myblock (double-check you don't have a folder named myblock under blocks):
wp wds create_portable_block myblock --title="This is myblock" --desc="This block is used for wds." --keyword="myblock" --icon="table-row-before"
add markup and style code to your block, such as:
and run npm run buld or npm run start. This should result, after adding the custom block to a post or page, in the following:
Closes
38
#WDSUS-37
What type of PR is this? (put an x to all applicable)
Link to test
Description
This PR adds to the block created with the
WP-CLI
commandwp wds create_portable_block
starter styles and changes how styles are built, so single style files are created per each block.Example:
Run the following to create the block
myblock
(double-check you don't have a folder namedmyblock
underblocks
):add markup and style code to your block, such as:
and run
npm run buld
ornpm run start
. This should result, after adding the custom block to a post or page, in the following:on the Frontend
Editor page
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentation?
Others
[optional] Are there any post-deployment tasks we need to perform?