npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-sppp

v3.14.0

Published

SharePoint Pull-n-Push - Yeoman generator for client-side development

Downloads

161

Readme

SPPP Generator

Yeoman generator for SharePoint client-side applications

NPM

npm version Downloads Build Status FOSSA Status Gitter chat

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 project's sources.

The 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.

SPPP generated projects suite perfectly for SPA development scenarios having local serve workbench with SharePoint API proxy server integrated from OOTB. Starting a local server your app refreshes instantly on changes using hot reload and incremental build at the same time the app is fully powered with real data from the API without any extra configuration.

React, PnPjs, Office UI Fabric, TypeScript, SCSS, Linting rules, polyfills, Webpack bundling, Live server, SharePoint interactive connection, pipeline tasks, all of these just work from the start. The batteries are included, but maybe you need configuration changes? No problem, just override or provide yours, or extend a task, this is a part of the design.

Don't need React or Office UI Fabric? Don't worry, these guys are installed as a presets only when you decided to.

Development scenarios

  • Web-parts development
    • classic CEWPs
    • SPA applications
  • Branding
    • masterpages
    • page layouts development
  • Custom actions (ScriptLink User Custom Action)
  • Custom scripts and portal libraries
  • Custom styles
  • Direct edit assets with Git backup (like in SPD days, or SPGo but using CLI)

Supported SharePoint versions

  • SharePoint Online
  • SharePoint On-Prem (2019/2016/2013)
  • SharePoint 2010 (limited support)

How to use

Using NPX (without Yeoman and generator global installation)

Create and navigate to project folder then run:

npx -p yo -p generator-sppp -c 'yo sppp'

NPM v6 is required.

Global install (classic approach)

Install

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

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

npm install -g gulp-cli yo generator-sppp

gulp-cli global installation can be omitted while using NPM tasks.

Generate

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

Inside project directory execute:

yo sppp

Then follow the Yeoman wizard instructions:

Generator in action

Package managers switch

With --package-manager (or --pm), a package manager can be selected. Possible managers are: pnpm, yarm and npm. npm is used by default and also as a fallback option.

Use yarn:

yo sppp --pm yarn

Use pnpm:

yo sppp --pm pnpm

Define connection with SharePoint

npm run connect

Connect with SharePoint

Dev Server & API Proxy

npm run start

Dev Server

Sync with SharePoint

Now you can run gulp sppull task:

gulp pull

SPPull in action

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

Run npm watch task before starting editing files:

npm run watch

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

For publishing files from ./dist folder the publish task can be used:

npm run publish

Additional Gulp tasks

Available tasks list:

gulp --tasks

Watch changes of the assets with live reload

gulp live

Check sp-live-reload project page more information.

Tasks detail information

Please check a reference in this wiki page.

Build configuration details

SPPP is powered with sp-build-tasks, build configs can be found in a wiki section of the project.

app.json settings

Configuring CI/CD

Checkout this end-to-end sample.

SharePoint communication layer

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

License

FOSSA Status