We have already performed various tasks to understand and setup environment for SharePoint framework development. Above mentioned suggested topics are providing references to those articles.
In this article, I’ll describe about setting up development environment for SharePoint Online customization using SharePoint Framework SPFx. Let’s complete it step by step.
Install development tools
You can see installed version on your machine by running following command
After installing Node, you have to update it by running following command in command prompt
npm install -g npm
Following is a list of editors which supports client-side development to build your web part, we can use anyone of these.
- Visual Studio Code
I have used Visual Studio Code in my environment.
Install Yeoman and gulp
Yeoman helps to kick-start new projects and suggests best practices and tools to keep us productive. SharePoint client side development tools include Yeoman generator for creating new web parts. It provides common building tools, code and web site to host web parts for testing.
You can run following command to install Yeoman and gulp.
npm install –g yo gulp
You can see that few packages are deprecated which can be upgraded later as well.
Install Yeoman SharePoint generator
Yeoman SharePoint web part generator is used to create SharePoint client side solution project with right toolchain and project structure.
You can install it using following command
npm install -g @microsoft/generator-sharepoint
Yeoman generator for SharePoint is deployed globally with initial General Availability (GA) version. There are some known issue if it is installed locally to the project which will be resolved in next releases of GA.
Some of the optional tools are listed below:
- Postman plugin for Google Chrome
- Cmder for Windows
- Oh My Zsh for Mac
- Git Source Code tools
However, I have not installed any optional tool as of now. I’ll install it as and when needed.
You are now ready to start with first client side web part.
In next article, I’ll demonstrate, building first hello world client side web part.