🙏 Streamline & retire unnecessary prompts in the Yeoman generator SPFx 1.14+ #7585
andrewconnell
started this conversation in
General
Replies: 2 comments 1 reply
-
I would drop the question about web part/extension description as well. I hardly ever have a good description ready at the time of running the generator. So in my case, project generation usualy ends up with an empty description, often never to be filled in. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Great idea, @andrewconnell! Perhaps
could say
since they are not actually following :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some of the prompts in the generator have been retired. Some of the long-standing prompts in the generator are long in the tooth and hard to understand for new users.
Recommendation: remove these confusing/retired prompts & instead, point to a page in the official docs that provide better explanations & guidance
TL/DR;
The generator should be used to create new projects & shouldn't be used to provide documentation or explanations; that's what official DOCS are for.
Why
Docs are better for this because of the following reasons:
Current state
Take the SPFx v1.13.1 generator... when creating a web part with all the default options, you get the following (this almost mirrors the v1.14.0.beta4 version as well):
Proposal
IMHO, questions 2-4 in the generator are no longer necessary to include. I propose SPFx v1.14.[GA] be the following:
Take note of the following:
The title box clearly calls this out as the SharePoint Online generator for SPFx projects. There's no mention of SPFx anywhere in the generator when that's what you're creating. This has always seemed odd to me.
Added a NOTE before the prompts that can direct people to the docs for more information to address changes & potential questions of "what happened to the old prompt X" that I'm about to suggest removing.
Question #Q2 WRT the target environment... remove this... why say "this is for X, not for Y & Z" and force people to accept it. Just retire it... we can cover this in the docs in the aforementioned docs:
Questions #Q3 & #Q4 - these have always been long & wordy and difficult for new users to understand what they mean. Personally, I've always had to read & study both of these to wonder "uh... what are they asking... what are they impacting with my project".
Why not, instead, pick the default options these two questions ask in the scaffolded projects. Then, in the docs, explain the following:
optionally, when the generator has finished creating the project, repeat the "NOTE".
Beta Was this translation helpful? Give feedback.
All reactions