This will be first step towards developing on SharePoint Framework. You will use npm to manage the packages and Yoeman for generate SharePoint framework.
[code language="powershell"]
#check for existence of Node.js; install if following not returns version
node -v
#install Yeoman
npm install -g yo
#install generator
#Office template https://github.com/officedev/generator-office
npm install -g generator-office
#move to your working folder or create folders if required
cd D:\location
mkdir "Folder Name"
#Yeoman console..and pick your generator..it should be office generator
yo
#Or else directly call callout below
yo office
[/code]
After execution of above code your can select default selections and also able to provide customized values if required.
You can be used either Powershell or Cmder. But I prefer Cmder since it gives better experience if your are a windows user. But for other OS users, you can pick as you wish.
Note: Now, your source template is generated(scaffolded) and can be startup editing with any favorite code editor such as VS, VS code, Sublime, NotePad++ or any.
[code language="powershell"]
#check for existence of Node.js; install if following not returns version
node -v
#install Yeoman
npm install -g yo
#install generator
#Office template https://github.com/officedev/generator-office
npm install -g generator-office
#move to your working folder or create folders if required
cd D:\location
mkdir "Folder Name"
#Yeoman console..and pick your generator..it should be office generator
yo
#Or else directly call callout below
yo office
[/code]
After execution of above code your can select default selections and also able to provide customized values if required.
You can be used either Powershell or Cmder. But I prefer Cmder since it gives better experience if your are a windows user. But for other OS users, you can pick as you wish.
Note: Now, your source template is generated(scaffolded) and can be startup editing with any favorite code editor such as VS, VS code, Sublime, NotePad++ or any.
Comments
Post a Comment