SharePoint
Framework
(SPFx)
Gosia Borzecka
@gosiaborzecka
About me
@gosiaborzecka
www.gosiaborzecka.net
What is SharePoint?
SharePoint
on-premises
SharePoint
Online
What is Office 365?
Office 365 Roadmap
SharePoint Development
Farm based
Sanboxes
SharePoint Add-ins
Manual injecting JS file
What is SharePoint Framework (SPFx)?
Client-side SharePoint development
Open Source tooling
Responsive and mobile-ready
Works for SharePoint Online and SharePoint on-premises
Main Components
• build & run the applications
NodeJS
• manages the dependencies required for the application
Npmjs
• automate the tasks of building and running the solution
Gulp
• Build the application and compile into clean, simple
JavaScript codeTypeScript
• create a solution structure for the application
Yeoman
Extra Components
• edit and manage the source code
Visual Studio Code
• contribute the source
GitHub
• use any type of JS Framework
(React, AngularJS, KnockoutJS etc..)JS Frameworks
How to start?
npm install –g bower npm install –g yo npm install –g tsd npm install –g gulp-cli
npm i
@microsoft/generator-
sharepoint
DEMO
Helpful commands
yo
@microsoft/sharepoint
create new project / add new web part
gulp bundle
build and bundle project
gulp serve
bundle project and start Workbench
gulp package-solution
build solution package (.spapp)
gulp nuke
delete build and intermediate folders
gulp test
run tests
--ship
argument to execute a release build
Property Pane
PropertyPaneTextField – get this by default with project
PropertyPaneButton
PropertyPaneCheckbox
PropertyPaneChoiceGroup
PropertyPaneCustomField
PropertyPaneDropdown
PropertyPaneHorizontalRule
PropertyPaneLabel
PropertyPaneLink
PropertyPaneSlider
Environment
import { EnvironmentType } from '@microsoft/sp-
client-base';
this.context.environment.type
Values:
•EnvironmentType.Tests – Tests context
•EnvironmentType.Local – SharePoint Workbench
•EnvironmentType.SharePoint – Modern SharePoint page
•EnvironmentType.ClassicSharePoint – Classic SharePoint Page
UI Fabric
Fonts, icon Colour
Microsoft Graph
SPFx is open source
https://github.com/OfficeDev/office-ui-fabric-react
https://github.com/OfficeDev/generator-office
https://github.com/SharePoint/sp-dev-docs
If you want to know more!
Dev Office
• https://dev.office.com/sharepoint/docs/spfx/sharepoint-
framework-overview
Waldek Mastykarz • https://blog.mastykarz.nl/
Andrew Connell • http://www.andrewconnell.com/
SharePoint Saturday • http://www.spsevents.org/
UK Community Days • http://uk.communities.tech/
https://resources.office.com/ww-landing-sharepoint-virtual-
summit-2017
https://dev.office.com/
@gosiaborzecka
www.gosiaborzecka.net

SPFx (SharePoint Framework)