This sample illustrates how you can include a SharePoint Framework Library in your SharePoint Framework project
Switch branches/tags
Nothing to show
Clone or download
Latest commit b3fe3e2 Sep 10, 2016
Permalink
Failed to load latest commit information.
.vscode Initial commit Sep 12, 2016
config Initial commit Sep 12, 2016
src Initial commit Sep 12, 2016
typings Initial commit Sep 12, 2016
.editorconfig Initial commit Sep 12, 2016
.gitattributes Initial commit Sep 12, 2016
.gitignore Initial commit Sep 12, 2016
.npmignore Initial commit Sep 12, 2016
README.md Initial commit Sep 12, 2016
gulpfile.js Initial commit Sep 12, 2016
package.json Initial commit Sep 12, 2016
spfx-sharedlib.njsproj Initial commit Sep 12, 2016
tsconfig.json Initial commit Sep 12, 2016

README.md

Building dll-code in SharePoint Framework

This sample illustrates how you can add custom tasks to the build process of SharePoint Framework projects.

Minimal Path to Awesome

  • clone this repo
  • $ npm i
  • $ gulp update-greetings-typings
  • $ gulp bundle

Features

This sample illustrates the following concepts on the SharePoint Framework:

  • separating shared code from Web Parts into a Library
  • building SharePoint Framework Library
  • adding support for working with a SharePoint Framework Library both design- and runtime
  • loading SharePoint Framework Library from an external URL
  • using Gulp for defining additional build-automation tasks
  • building ambient module definitions from code typings using a custom Gulp task
  • building custom Gulp pipe function for processing file contents
  • combining multiple file streams into one using Gulp
  • building watcher task using Gulp to automatically execute tasks on file changes