Giter VIP home page Giter VIP logo

generator-sppp's Introduction

generator-sppp (SharePoint Pull-n-Push Generator)

Yeoman generator for SharePoint client-side applications

NPM

npm version Downloads

Yeoman generator for SharePoint - lets you quickly set up a project with sensible defaults for pulling and pushing files between SharePoint asset library and local projects sources.

Generated project allows immediately start developing SharePoint client-side solutions in Visual Studio Code or any other editor with instant publishing changes to SharePoint web site and downloading specific assets from SP Document library folder to local project assets which can be enforced with Git Diff algorithm for tracking changes.


New in v 1.5.0

  • Live reload functionality is integrated
  • Dynamic configuration helpers

Supported SharePoint versions:

  • SharePoint Online
  • SharePoint 2013
  • SharePoint 2016

How to use:

Install:

To use Yeoman, one need to has Node.js and NPM installed on the computer. Basic installation process description can be found in this blog post.

Alter Node.js and NPM are staffed, install Gulp, Bower, Yeoman and generator-sppp globally in your Node.js environment.

npm install -g gulp bower yo generator-sppp

Generate:

Make a new directory or clone a blank Git project of your own and navigate to the created folder.

Inside project directory execulte:

yo sppp [YourProjectName]

Then follow the the Yoman wizard instructions:

Generator in action

Sync with SharePoint:

Now you can run gulp sppull task:

gulp sppull-all

SPPull in action

It will deliver all files from assets folder from SharePoint to local directory.

Run gulp watch task before starting editing files:

gulp watch-assets

On files change they are uploaded and published to SharePoint with use of gulp-spsave.

For publishing all .src project files, publish task can be used:

gulp publish

Additional Gulp tasks:

Config validation and prompting

gulp touch-conf

Checks basic minimal configs and prompts on configuration missing.

Watch assets changes with live reload

gulp watch-live

Chech sp-live-reload project page more information.

SharePoint communication layer

  • sppull library is used for downloading files from SharePoint
  • gulp-spsave library is used for saving files to SharePoint
  • sp-request and node-sp-auth are in charge for low level communication with SharePoint
  • sp-live-reload library is used for instantaneous page reload

Communication layer settings are stored in ./config/_private.conf.json, parameters settings description can be found here.

generator-sppp's People

Contributors

ikru avatar koltyakov avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.