SharePoint Provisioning engine with pure JavaScript inspired by https://github.com/OfficeDev/PnP-Sites-Core/
Can be as simple as
jQuery.getScript(`${_spPageContextInfo.siteAbsoluteUrl}/SiteAssets/js/pzl.sites.core.js`, () => {
Pzl.Sites.Core.init(siteTemplateConfig, { "On": true }).then(() => {
})
});
or with logging to file
jQuery.getScript(`${_spPageContextInfo.siteAbsoluteUrl}/SiteAssets/js/pzl.sites.core.js`, () => {
Pzl.Sites.Core.init(siteTemplateConfig, { "On": true, "LoggingFolder": _spPageContextInfo.siteServerRelativeUrl + "/SiteAssets/logs" }).then(() => {
})
});
js-sites-core is available through bower.
Package information
bower info js-sites-core
Install package
bower install js-sites-core
Schema is inspired by https://github.com/OfficeDev/PnP-Provisioning-Schema
Most of the differences are due to the available CSOM attributes and functions.