sp-publish

1.0.2 • Public • Published

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.

Package Sidebar

Install

npm i sp-publish

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

6.75 kB

Total Files

7

Last publish

Collaborators

  • victorasantos10