1.0.2 • Published 7 years ago

sp-workbench-api-proxy v1.0.2

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

sp-workbench-api-proxy

Provides an authenticated proxy to Office 365 + SharePoint Online or an on-prem SharePoint installation. Use as a part of development with SpFx Workbench or a custom toolchain.

Setup

npm i --save-dev sp-workbench-api-proxy

for Workbench dev:

const gulp = require('gulp'); const build = require('@microsoft/sp-build-web'); const spApiProxy = require('sp-workbench-api-proxy')

build.initialize(gulp);

gulp.task('serve2', 'serve', function(){ spApiProxy(require('./config/sp_deploy_settings.json')) })

Create file ./config/sp_deploy_settings.json

{ "siteUrl": "https://.sharepoint.com/sites//", "projectName": "project", "credentials": { "userName": "user@tenant.onmicrosoft.com", "passWord": "**" } }

Add the following line to .gitignore

/config/sp_deploy_settings.json