SPUnite17 Deep Dive Building Solutions

18
w: rencore.com | e: [email protected] | t: @rencoreab Manage Customization Risk and Save on Maintenance Costs! Customization governance, transformation and risk prevention for SharePoint & Office365 Building SharePoint Framework solutions deep dive

Transcript of SPUnite17 Deep Dive Building Solutions

Page 1: SPUnite17 Deep Dive Building Solutions

w: rencore.com | e: [email protected] | t: @rencoreab

Manage Customization Risk and Save on Maintenance Costs!

Customization governance, transformation and risk prevention for SharePoint & Office365

Building SharePoint Framework solutionsdeep dive

Page 2: SPUnite17 Deep Dive Building Solutions
Page 3: SPUnite17 Deep Dive Building Solutions

One generator to rule them all

rencore.com

@microsoft/generator-sharepoint

Online only

@latest

latest features

≥ SP2016 FP2

@1.1

subset

Page 4: SPUnite17 Deep Dive Building Solutions

Building an SPFx solution over time

SPFx v1.3.2

SPFx v1.4

SPFx v1.5

SPFx v1.6

SPFx v1.7

rencore.com

Page 5: SPUnite17 Deep Dive Building Solutions

Upgrading projects

rencore.com

Create new & move

Beware of IDs

Update existing

Update all version references

Mind new project structure

Beware of npm outdated

Page 6: SPUnite17 Deep Dive Building Solutions

Development environment

Page 7: SPUnite17 Deep Dive Building Solutions

Install SPFx Yeoman generator locally

• npm i yo -g

• npm i @microsoft/generator-sharepoint

• yo @microsoft/sharepoint

• npm i @microsoft/generator-sharepoint -D

rencore.com

Page 8: SPUnite17 Deep Dive Building Solutions

ALM

rencore.com

Dev UAT Prod

Page 9: SPUnite17 Deep Dive Building Solutions

ALM ingredients

rencore.com

• Package management APIs

• Promote package through stages

Page 10: SPUnite17 Deep Dive Building Solutions

Contoso intranet 9:00am

rencore.com

0 2000 4000 6000 8000 10000 12000

spfx-weather-webpart-weatherstrings_en-

us_e7b9950840f4742a1ba71b7cf9b5fcae.js

weather.bundle_ea8f663450667f0760f7b54c6fa15c06.js

9:00am

Page 11: SPUnite17 Deep Dive Building Solutions

Contoso intranet 9:10am

rencore.com

0 2000 4000 6000 8000 10000 12000

spfx-weather-webpart-weatherstrings_en-

us_e7b9950840f4742a1ba71b7cf9b5fcae.js

weather.bundle_ea8f663450667f0760f7b54c6fa15c06.js

9:00am 9:10am

Page 12: SPUnite17 Deep Dive Building Solutions

How your browser loads SPFx solutions

SharePoint Service

Page 13: SPUnite17 Deep Dive Building Solutions

How your browser loads SPFx solutions

SharePoint Service

Page 14: SPUnite17 Deep Dive Building Solutions

Optimize serving your files for performance

rencore.com

• Set far-future expiration (eg. 1 year)

• Allow proxies to cache

• Use HTTP/2

• Enable dynamic compression

Page 15: SPUnite17 Deep Dive Building Solutions

Optimize serving your files for performance

rencore.com

Hosting

CapabilityOffice 365 Public CDN Azure Blob Storage Azure CDN

Expiration 1 hour Configurable Configurable

Allows proxies to cache No Configurable Configurable

Use HTTP/2 Yes No Configurable

Dynamic compression No Manual Configurable

Costs 0 € €€

Page 16: SPUnite17 Deep Dive Building Solutions

Working with JS libraries

Page 17: SPUnite17 Deep Dive Building Solutions

Working with Office UI Fabric

Page 18: SPUnite17 Deep Dive Building Solutions

Next steps

• Check out official documentation at

aka.ms/spfx-docs

• Follow @OfficeDev to keep up with latest news

• Share your experience & feedback at

aka.ms/spfx-feedback

rencore.com