sp-workbench-api-proxy
v1.0.2
Published
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.
Downloads
5
Maintainers
Readme
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": "[email protected]", "passWord": "**************" } }
Add the following line to .gitignore
/config/sp_deploy_settings.json