1.0.20 • Published 4 years ago

@schauer/sp-sync v1.0.20

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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.

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.12

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago