Provision SharePoint assets in SharePoint Framework

Suggested Articles


What is SharePoint Framework (SPFx)

Future prospects of SharePoint Framework (SPFx)

Required tools and libraries for SharePoint Framework (SPFx) development

Setup Office 365 tenant for SharePoint Framework development

Setup SharePoint Framework client side web part development environment

Build SharePoint client side web part using SharePoint Framework (SPFx) – I

Build SharePoint client side web part using SharePoint Framework (SPFx) – II

Build SharePoint client side web part using SharePoint Framework (SPFx) – III

How to Debug SharePoint Framework Solutions in Visual Studio Code

What is the Developers Point of View on SharePoint Framework

What is Required Toolchain for SharePoint Framework

How to Integrate gulp tasks with SharePoint Framework Toolchain


It is a continuation of previous articles on SharePoint Framework, if you’ve missed it. I recommend you to first walkthrough the links provided above in suggestion.



Now, open existing project in Visual Studio Code.




Right click on sharepoint folder and add a subfolder “assets”. In “assets” folder, add an XML file named as “element.xml”.




This file contains CAML based declaration to create list instance in SharePoint.




Now, select “package-solution.json” under config folder and add “element.xml” entry.




After saving above file, run below command.

gulp bundle –ship




SharePoint Framework supports two types of builds, which are a debug build and a release build. Both are triggered, using the Gulp bundle task.



If you request a release build, using the gulp bundle –ship command. SharePoint Framework will generate optimized bundles and copy them to the temp/deploy folder.




Once we run the commands given above, then get the bundle file from your project folder, open your project folder – temp – deploy.




In deploy folder, copy all the files and add in SharePoint library path or CDN, which you mentioned in write-manifests.json file in the project.




Once you completed the steps given above, upload the app in an app catalog and install in your SharePoint site.



Get .sppkg file from <project folder> – sharepoint – solution – <helloworldsample-webpart.sppkg>




Inside solution folder, copy the .sppkg file and upload it in an app catalog.




After you uploaded the app file, you will get the pop up, as shown below and click Deploy to trust the client side Webpart.

Now, install the app using the option “add an app” Site Contents. You will see that new list is created automatically.




Add the client app part in your pages or modern site pages.







What’s next?

In this article, we have explored how to take the build for client side Web part and deploy the Web part in SharePoint Online. Similarly you cane provision other SharePoint components using SharePoint Framework (SPFx).


Thank you for reading…

Please like, share and subscribe!



About Satyendra Mishra

An Engineer by education, Satyendra is a PMP certified Project Manager, Author, Blogger and Learner with 13+ years of experience on Project Management, Microsoft Technologies including ASP.NET, ASP.NET MVC, C#, SharePoint (On premises & Office 365), JavaScript Framework (Angular), Xamarin for Android and related technologies. He is a person with belief, sky is limit for a hard working and dedicated individual. That’s why he devoted himself to field of Software Development and now both are growing with each other. Every year for him turned out to be best year and he received enormous support and love from his companies and his clients from around the world. Now with vast knowledge of software development and its outsourcing process, he decided to move himself into knowledge sharing. Keep a fact in your mind about the comfort level of your clients and this will make you king/queen of your area.
View all posts by Satyendra Mishra →