-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Block: Make it easier to provide most popular CLI options #21751
Conversation
Size Change: 0 B Total Size: 835 kB ℹ️ View Unchanged
|
6dafe2c
to
b83e8fa
Compare
b83e8fa
to
3ad8ede
Compare
3ad8ede
to
92440d5
Compare
Props to @aduth for suggestions that helped to improve the code.
ac5fdf2
to
934bed4
Compare
It turned out that |
https://travis-ci.com/github/WordPress/gutenberg/jobs/323443103 fails because of |
) * Create Block: Make it possible to provide most popular options as CLI options * Improve handling for options passed from CLI Props to @aduth for suggestions that helped to improve the code.
Description
Add more CLI options:
--namespace
,--title
,--description
and--category
. The goal is to make it easier to override default values used for block scaffolding. Full specification:There are more prompts than that but I picked those which are the most important. We probably could support all of them. I'm happy to tackle that in the follow-up PR.
How has this been tested?
ES5 template + quick mode:
ESNext template + interactive mode where provided options are skipped:
Types of changes
New feature (non-breaking change which adds functionality).
Checklist: