Skip to content

Commit 1163c3f

Browse files
authored
Update scaffolding-projects-using-yeoman-sharepoint-generator.md
Enhanced format of code example
1 parent ea41099 commit 1163c3f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/spfx/toolchain/scaffolding-projects-using-yeoman-sharepoint-generator.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.prod: sharepoint
1313

1414
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:
1515

16-
```
16+
```console
1717
npm install @microsoft/generator-sharepoint -g
1818
```
1919

@@ -26,7 +26,7 @@ We recommend that you follow the [set up your development environment](../set-up
2626

2727
After the generator is installed, you can invoke the generator by just typing the following command in a console:
2828

29-
```
29+
```console
3030
yo
3131
```
3232

@@ -39,7 +39,7 @@ The command lists all the generators available on your machine. Select `@microso
3939

4040
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:
4141

42-
```
42+
```console
4343
yo @microsoft/sharepoint --help
4444
```
4545

@@ -81,7 +81,7 @@ Following is an example of a command that creates a solution called "hello-world
8181

8282
Notice that some of the options have dependencies between each other. You cannot, for example, create an extension with an on-premises option.
8383

84-
```
84+
```console
8585
yo @microsoft/sharepoint
8686
--solution-name "hello-world"
8787
--framework "react"
@@ -100,14 +100,14 @@ yo @microsoft/sharepoint
100100
101101
> 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:
102102
103-
> ```
103+
> ```console
104104
> Local gulp not found in ~/<project-name>
105105
> Try running: npm install gulp
106106
> ```
107107
108108
> You can execute the following command to install the dependencies:
109109
110-
> ```
110+
> ```console
111111
> npm install
112112
> ```
113113

0 commit comments

Comments
 (0)