Creating your first SharePoint Framework project
Creating a first SharePoint Framework project starts by creating a folder location for the project. The next step is to create and scaffold the project using Yeoman:
yo @microsoft/sharepoint
Figure 16.1 – Project creation using Yeoman generator
If you don’t remember the exact name of the generator, you can just type yo
, and Yeoman will list all the added generators. The yo
command can also be used to update the generator to the latest version:
Figure 16.2 – Listing all installed Yeoman generators
Yeoman will guide through the project creation and ask for details about the project. For this first example, let’s choose web parts as the component type and React as the JavaScript framework to be used. After that, the project scaffolding phase starts, and it may take a few minutes to complete, depending on the network capacity. During project creation...