All rights reserved. 10 SharePoint Framework (SPFx) § Front-end based development model for Pages and Parts § Supports front-end libraries and tools § Tooling • Node.js, Yeoman, Gulp, TypeScript, Visual Studio (Code) § Frameworks • React, Angular 1.*, Knockout
All rights reserved. 13 Setup (Continued) 7. Install Yeoman SharePoint generator Optional tools: Fiddler, Postman, Cmder for Windows, Oh My Zsh for Mac, and Git source control tooling $ npm i -g @microsoft/generator-sharepoint
All rights reserved. 15 New! SharePoint Workbench § New developer design surface § Enables you to quickly preview and test web parts without deploying them in SharePoint § Includes the client-side page and the client-side canvas in which you can add, delete and test your web parts in development
All rights reserved. 16 New! SharePoint Workbench (Continued) § Test your changes immediately (even in offline mode) § Uses gulp-connect to serve with LiveReload § Built-in mobile preview capabilities
All rights reserved. 21 JavaScript Core Component import pnp from "sp-pnp-js" ... pnp.sp.web.select("Title").get().then(() => ...); $ npm install sp-pnp-js --save-dev Add the npm package to your project Import the root object and start interacting with the SharePoint REST API $ bower install sp-pnp-js Add the package from bower
All rights reserved. 22 Roadmap § Developer releases on a 7-10 day cadence • August 17, 2016: Drop 1 • September 1, 2016: Drop 2 • September 14, 2016: Drop 3