Forum Discussion
Robin Güldenpfennig
Apr 26, 2017Brass Contributor
SharePoint Framework - ALM best practices with CDN
Hi folks, I'm currently developing a Client Side Web Part which is deployed https://www.eliostruyf.com/automate-publishing-of-your-sharepoint-framework-scripts-to-office-365-public-cdn/ to a Offi...
Bill_Ayers1
Apr 26, 2017MVP
There is a ship flag for the upload-to-sharepoint task but it doesn't do much at present. You could use this flag to control publication of your scripts to test or production using custom code until something better shows up. Elio Struyf has an example: https://github.com/estruyf/UploadToOffice365SPFx.
There is a similar issue for the target URLs for different environments. Wictor Wilen has written a node package that can fix this up: http://www.wictorwilen.se/how-to-generate-sharepoint-framework-bundles-for-multiple-tenants. You could use a similar approach.
As the SharePoint Framework matures I think this will get integrated into the tooling, probably using that ship flag to specify different target environments.