Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create block: Ensure $slug is replaced with passed slug (WordPress#66528
) * Add --targetDir flag to allow targeting a directory where to scaffold the plugin/files. * Not using the targetDir when in --no-plugin mode * Change the name of the flag to match others and update changelog. * WIP commit. * Add logic to generate the paths for the root and block files in one place. * Add a new parameter to allow passing the path once rather than generating it in the function. * Modify the other functions to use the generated paths. * Update the command description. * Update packages/create-block/CHANGELOG.md * Refactor the handling for the root directory * Improve the documentation for target dir * Reorder CLI options in the docs * Ensure that $slug is replaced. --------- Co-authored-by: Greg Ziółkowski <[email protected]> Co-authored-by: ryanwelcher <[email protected]> Co-authored-by: gziolo <[email protected]> Co-authored-by: t-hamano <[email protected]>
- Loading branch information