arjunumenon / M365SatBLR-2022

Repository created for holding the artefacts for M365 Saturday Bangalore 2022

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

M365 Saturday - Bangalore - 2022

This repository has the artifacts which is used by Arjun Menon in M365 Saturday Bangalore for the session Turbo-boost your SPFx upgrades and deployment

Session Information

Session Link : M365 Saturday Bangalore

Agenda Link : Agenda

M365 Saturday Bangalore

Session Abstract

In this session, Arjun talks about CLI for Microsoft 365 and through the tool how you can turbo-boost your SPFx upgrades and deployment.

Demo Details

Pre-requisites

  1. Node.JS
  2. CLI for Microsoft 365
  3. Node Version Manager (NVM)
    1. For switching between Node.JS versions
  4. CodeTour VS Code Extension. Here is the link for the same

Demo Codes

For the complete demo, we have used one of the PnP WebParts, which is available in the link.

Following are the demo which as showcased in the session.

1) Demo 1 - SPFx Doctor

Command : m365 spfx doctor

1.1) Steps
  1. Go to the Demo Folder : Source Original
  2. Run npm install to install the dependencies
  3. Switch to an older Node Version (10.6.0)
  4. Run the command m365 spfx doctor --output text
  5. It will show the result and the suggestions.

2) Demo 2 - SPFx Project Upgrade

Here we will be upgrading the SPFx project from Version 1.12.0 to 1.13.0

Command : m365 spfx project upgrade

2.1) Steps
  1. Go to the Demo Folder : Source Original
  2. Run npm install to install the dependencies
  3. Run the command m365 spfx project upgrade --toVersion 1.13.0 --shell powershell --output md > "upgrade-report.md"
    1. You can also run m365 spfx project upgrade --toVersion 1.13.0 --shell powershell --output tour
    2. The above will give the result in CodeTour format
    3. You can get more details on getting the result from this link
  4. It will show the result in the report format
  5. Execute the actions either one by one or via summary
  6. The sample of the upgraded project could be found from Source Upgraded
  7. Run gulp build

3) Demo 3 - SPFx Project Doctor

Command : m365 spfx project upgrade

3.1) Steps
  1. Go to the Demo Folder : Source Upgraded
  2. Run gulp bundle
  3. You can see some errors on the code
  4. Run the command m365 spfx project doctor --output text
  5. Complete the actions mentioned in the report
  6. Run gulp bundle
  7. You can see that the errors which was there after the upgrade is fixed now

4) Demo 4 - SPFx in CI/CD Pipeline

The demo was planned to be shown based on the blog from here. You can follow the same steps which is explained on the blog. Here is the blog which you can follow : SPFx in CI/CD Pipeline

About

Repository created for holding the artefacts for M365 Saturday Bangalore 2022

License:MIT License


Languages

Language:TypeScript 64.9%Language:SCSS 29.9%Language:Shell 3.5%Language:JavaScript 1.7%