/generator-spfx

Open-source generator to extend the capabilities of the Microsoft SPFx generator

Primary LanguageJavaScriptMIT LicenseMIT

@pnp/generator-spfx

This is an open-source extension for native out of the box SPFx generator to introduce additional scaffolding support for Angular Elements, VueJS, Handlebars and many more in future. This generator has a dependency on native SPFx generator from Microsoft.

PnP SPFx Generator

Work is in progress and we'll accept absolutely contributions after the initial version is available.

Current Supported Frameworks and Add-ons

Add-on

The following add-on are supported:

Library Version
jQuery 2.x, 3.x
@pnp/pnpjs > 1.4.

Frameworks

The following frameworks are supported:

Framework Version
Handlebars > 4.0.0
VueJS planned
Angular Elements tbd

Usage

Install the generator:

npm install -g @pnp/generator-spfx

To start your first project using this generator:

yo @pnp/spfx

We will guide you through the your project creation.

Follow the  on screen

Installation for Development

The PnP Community generator is currently only available through the following method.

git clone https://github.com/pnp/generator-spfx.git

Install all required packages:

npm install

Start coding ...

More details on our documentation

SharePoint Patterns and Practices

Sharing is caring!