From the course: SharePoint Framework for Developers: 2 Authoring and Debugging Solutions

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Run our SPFx web part

Run our SPFx web part

- [Instructor] Now that we have generated a SharePoint Framework solution project with a single web part in it, it is time to see how to run this. Now you see there's a file here called gulpfile.js. And it is referencing a number of tasks that come out of node packages that Microsoft has written. Well, they have chosen gulp to be their task runner. So we can use various gulp concepts there to see what tasks they support. How do you find out what tasks they support? You just type gulp --tasks. And by running this command, it writes out the various tasks that this project supports. You can add to this list, certainly. I think in more complicated projects, you'll probably end up adding to this list. The tasks that we are interested in is gulp serve but when I run gulp serve, it'll fire open the local workbench and you know everything would want to work over https and you know that if the SSL cert is not trusted by the browser, the browser won't load the files. So the first thing you need…

Contents