SharePoint Framework On-Premise Deploy via Gulp

SharePoint 2016 Server has support for SharePoint Framework, however there are some features missing that are present in SharePoint Online.

When first learning SharePoint Framework (SPFx), the tutorials provided by Microsoft are geared towards using SPFx in SharePoint Online.  A lot of the knowledge and concepts transfer to SharePoint 2016 Server, however I found a key feature missing: Asset deployment.

SPFx solutions expect you to host your assets (html, javascript, css) in some location that is accessible from your SharePoint site.  In SharePoint Online, the deployment gulp task that comes packaged with SPFx can (and by default, does) deploy your assets to the SharePoint Online App Catalog site.  With SharePoint 2016 Server, asset deployment is your responsibility.  I did not like this at all – I wanted a simple, configurable script/task to run that would deploy my assets where I wanted them to go.

First the setup.  Continue reading “SharePoint Framework On-Premise Deploy via Gulp”