sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Request for Yeoman generator to reshow the framework prompt when adding a second web part

Open waldekmastykarz opened this issue 10 years ago • 6 comments

Category

[ ] Question [ ] Typo [x] Mistake [ ] Additional article idea

Expected or Desired Behavior

When adding another Web Part to an existing project, I would expect the Yeoman generator to prompt which framework I want to use. That way I can decide for each Web Part what the starting point should be.

Observed Behavior

When adding another Web Part the generator doesn't prompt to choose the framework.

Steps to Reproduce

Call yo @microsoft/sharepoint on an existing project.

waldekmastykarz avatar Sep 06 '16 08:09 waldekmastykarz

@chakkaradeep - You can speak to this.

iclanton avatar Oct 18 '16 22:10 iclanton

We discussed this internally. We decided not to pursue with this - adding web parts built in different frameworks using yeoman for obvious performance and bundling optimizations. While the SharePoint Framework is framework agnostic, we recommend to choose a framework of your choice across your projects/web parts for the above mentioned reasons.

If your scenario is to build web parts in different frameworks, you should create a new client-side solution project. If you still wish to manage different frameworks within the same client-side solution project, then you can do so manually.

chakkaradeep avatar Oct 20 '16 05:10 chakkaradeep

In that case I would suggest that you clarify it in the generator that the framework you choose, applies to the whole project rather than to a single web part.

waldekmastykarz avatar Oct 20 '16 05:10 waldekmastykarz

@waldekmastykarz Good point. Let me figure out the right text/experience :)

chakkaradeep avatar Oct 20 '16 05:10 chakkaradeep

We did some targeted work to change the experience and, although it might not be sufficient, we didn't receive further feedbacks on this area.

Waldek, I'm going to close this for now. As always, thanks a lot for your help here and please fell free to absolutely re-open this issue if you believe that we still have significant issues in this area.

lucaband avatar Mar 19 '18 21:03 lucaband

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 30 '20 06:01 msft-github-bot