propeller-sharepoint
v1.1.0
Published
A SharePoint deployer plugin for Propeller.
Downloads
22
Maintainers
Readme
propeller-sharepoint
A SharePoint deployer plugin for Propeller. This deployer uses gulp-spsave to handle authentication and file transfers during deployment. This package is compatible with SharePoint 2013, SharePoint 2016, and Office 365/SharePoint Online environments.
Getting Started
Install Propeller and propeller-sharepoint using npm:
npm install gulp-propeller --save-dev
npm install propeller-sharepoint --save-dev
Create a propeller.json
file in your project directory that contains your SharePoint connection information. Specify the connection type as sharepoint
:
{
"environments": {
"o365": {
"type": "sharepoint",
"src": "build/**",
"dest": "_catalogs/masterpage/test",
"gitignore": false,
"connection": {
"site": "https://mytenant.sharepoint.com/",
"user": "[email protected]",
"pass": "mypassword"
}
}
}
}
Create a Gulp task to deploy your files:
const gulp = require('gulp');
const propeller = require('gulp-propeller');
const propellersp = require('propeller-sharepoint');
gulp.task('default', function(){
// add sharepoint deployer to propeller
propeller.extend(propellersp);
// deploy to 'o365' environment
propeller.deploy('o365');
});
See the Propeller documentation for more information.