1.0.2 • Published 5 years ago
sp-publish v1.0.2
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-publish
Configuration 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.