These steps are common for any project type (React, etc). In addition we'll use the extension, but that is optional. Install and set up your project is created, you must install and set up package. "initialPage": " tenant name}/sites/dev/_layouts/15/workbench.aspx" Set up the location of your SharePoint hosted workbench by modifying the initialPage value in the config/serve.json to point to your tenant/site. To open the directory within Visual Studio Code, enter the following in the console: code. The screenshots shown here demonstrate Visual Studio Code. Open the project in the code editor of your choosing. PnPJSExample description as the description.PnPJSExample as the name of the web part.SharePoint Online only (latest) as the baseline packages version.spfx-pnp-js-example description as the solution description (keep default).spfx-pnp-js-example as the solution name (keep default).Run the Yeoman generator for SPFx: yo the following values when prompted during the setup of the new project: Create a new projectĬreate a new folder for the project by using your console of choice: md spfx-pnp-js-exampleĮnter that folder: cd spfx-pnp-js-example Before following the steps in this article, be sure to set up your SharePoint client-side web part development environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |