@schauer/sp-sync v1.0.20
sp-sync
This is a nodejs app that will sync your output directory from your project on your local computer to SharePoint Site Assets library. Used for speeding up writing javascript apps and pushing it to a SharePoint Library
Configurations
Example for development environment:
- Create an .env.development file in the root of the project directory.
- If VUE APP: prefix = VUE
- If REACT APP: prefix = REACT
Edit .env.development file
- add {prefix}_APP_SITE_ASSETS_RELATIVE_URL=/sites/xxx/siteassets
- add {prefix}_APP_VERSION=0
- add {prefix}_APP_WEB_URL=https://yyy.sharepoint.com/sites/xxx
- add {prefix}_APP_WEB_RELATIVE_URL=/sites/xxx
- add {prefix}_APP_OUTDIR=./dist
- add {prefix}_APP_Mode=development
Edit package.json
sp-sync --mode development --action stepversion
- this increments the version # in the .env file
sp-sync --mode development --action sync
- this will take the files in the outdir and upload the {prefix}_APP_SITE_ASSETS_RELATIVE_URL location in the .env file
under scripts for a vue app - example "build:development": "sp-sync --mode development --action stepversion && vue-cli-service build --mode development && sp-sync --mode development --action sync"
Installation
npm install --save-dev @schauer/sp-sync
Disclaimer
THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago