Small library to construct SharePoint manifest files from different partial files.
It can only update App.AppPermissionRequests node.
Run npm command:
npm i https://github.com/Inmeta/sp-manifest --save-dev
Sets the path of AppManifest.xml files. All files has to be in the same directory. The partial manifest files must have a name like: AppManifest.{build}.xml.
Example:
AppManifest.xml // Main AppManifest
AppManifest.version1.xml // build type 1 (holds partial manifest elements )
AppManifest.version2.xml // build type 1 (holds partial manifest elements )
Updates the main AppManifest file with nodes from the provided build
manifest.
var manifest = require("sp-manifest");
// update AppPermissionRequests node
// give AppManifest partial name
// f.ex. AppManifest.AppCatalog.xml
manifest.updatePermissions("AppCatalog", function(error){
console.log(error || "Done");
})