Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Create Block] Adding a
--no-plugin
flag to scaffold only block fil…
…es. (#41642) * Add npmDevDependencies as a template variable. Update messaging to show what packages are being installed. * Adding --block-only to available flags. * Adding --block-only to available flags * Remove extra dependeny loop. * Apply suggestions from code review * Remove extra code block added in error. * Add correct messaging based on existence of --block-only flag. * Scaffold the block in the directory where the command is run. * Add changelog and readme entries for the new flag. * Change the flag to --no-plugin and adjust internal logic accordingly. * Abstract messaging out. * Add new customize message for blocks Don't display plugin customization prompts in --no-plugin mode. * Use lodash get instead of optional chaining as Node 12 doesn't support it. * Update packages/create-block/CHANGELOG.md Co-authored-by: Greg Ziółkowski <grzegorz@gziolo.pl> * Remove the messaging helper * Remove negation logic in order to more clear. * Adding process.cwd() back as per code review. * Check to ensure that a template supports the blockTemplatesPath property. * Revert adding process.cwd() back. * Adds example to README. * Make the slug prompt for universal Co-authored-by: Greg Ziółkowski <grzegorz@gziolo.pl>
- Loading branch information
1 parent
260521a
commit a175df3
Showing
7 changed files
with
121 additions
and
70 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
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