You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/spfx/toolchain/scaffolding-projects-using-yeoman-sharepoint-generator.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Scaffold projects by using Yeoman SharePoint generator
3
3
description: Use the Yeoman SharePoint generator to scaffold new client-side solution projects to build, package, and deploy SharePoint solutions.
4
-
ms.date: 03/14/2019
4
+
ms.date: 07/21/2019
5
5
ms.prod: sharepoint
6
6
---
7
7
@@ -13,7 +13,7 @@ ms.prod: sharepoint
13
13
14
14
Yeoman SharePoint generator is available as part of the framework as an [npm package](https://www.npmjs.com/package/@microsoft/generator-sharepoint). You can install the generator by executing the following command in a console:
15
15
16
-
```
16
+
```console
17
17
npm install @microsoft/generator-sharepoint -g
18
18
```
19
19
@@ -26,7 +26,7 @@ We recommend that you follow the [set up your development environment](../set-up
26
26
27
27
After the generator is installed, you can invoke the generator by just typing the following command in a console:
28
28
29
-
```
29
+
```console
30
30
yo
31
31
```
32
32
@@ -39,7 +39,7 @@ The command lists all the generators available on your machine. Select `@microso
39
39
40
40
You can use the command-line options available with the Yeoman SharePoint generator to scaffold projects in one command instead of going through the prompts. Execute the following command to see the list of command-line options available for the SharePoint generator:
41
41
42
-
```
42
+
```console
43
43
yo @microsoft/sharepoint --help
44
44
```
45
45
@@ -81,7 +81,7 @@ Following is an example of a command that creates a solution called "hello-world
81
81
82
82
Notice that some of the options have dependencies between each other. You cannot, for example, create an extension with an on-premises option.
83
83
84
-
```
84
+
```console
85
85
yo @microsoft/sharepoint
86
86
--solution-name "hello-world"
87
87
--framework "react"
@@ -100,14 +100,14 @@ yo @microsoft/sharepoint
100
100
101
101
> If you try to build your project without installing the dependencies, you get the following error. This indicates that you need to install the dependencies before building the project:
102
102
103
-
> ```
103
+
> ```console
104
104
> Local gulp not found in~/<project-name>
105
105
> Try running: npm install gulp
106
106
> ```
107
107
108
108
> You can execute the following command to install the dependencies:
0 commit comments