sp-publish
v1.0.2
Published
File publish to Sharepoint document libraries via command line
Maintainers
Readme
sp-publish
File publish to Sharepoint document libraries via command line. Depends on spsave
How to use
You will need to create a sp-publish-config.json file in your project, which needs to contain all options related to publishing. Possible options available at spsave documentation.
Install
The package needs to be installed globally, in order to run the sp-publish command.
npm install -g sp-publishConfiguration sample
This example is also available in sp-publish-config-example.json
{
"environments": {
"your_environment_name": {
"coreOpts": {
"siteUrl": "http://yoursiteurl.com/sites/examplesite",
"checkin": true,
"checkinType": 1
},
"fileOpts": {
"folder": "Pages/folder",
"glob": [
"dist/**/*.*"
],
"base": "dist"
}
}
}
}Usage
sp-publish --<environment_name>The environment name must match the key under environments object on the sp-publish-config.json file.
