Coder Social home page Coder Social logo

toumash / spfx-office-fabric Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 293 KB

Simple demo of sharepoint spfx webpart using office fabric ui (the default install isnt working)

JavaScript 6.46% TypeScript 67.98% SCSS 25.56%
react office-ui-fabric spfx sharepoint-online

spfx-office-fabric's Introduction

Demo Spfx Sharepoint Online package with Office UI Fabric

demo If you would just install spfx and npm install office-ui-fabric-react it wouldnt work.

This article explains everything http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2019/03/14/spfx-1-8-now-support-office-fabric-react-6-156-0.aspx

How to DIY!

  1. Install a new spfx generetor for yeoman
npm install -g @microsoft/generator-sharepoint
  1. Install Office UI Fabric
npm install office-ui-fabric-react
  1. In package.json change @microsoft/rush-stack-compiler-2.7 into:
"@microsoft/rush-stack-compiler-3.0": "0.5.9"
  1. And then in tslint.config
"extends": "./node_modules/@microsoft/rush-stack-compiler-3.0/includes/tsconfig-web.json"
  1. Fabric components should work just fine!

Building the code

git clone the repo
npm i
npm i -g gulp
gulp

This package produces the following:

  • lib/* - intermediate-stage commonjs build artifacts
  • dist/* - the bundled script, along with other resources
  • deploy/* - all resources which should be uploaded to a CDN.

Build options

gulp clean - TODO gulp test - TODO gulp serve - TODO gulp bundle - TODO gulp package-solution - TODO

spfx-office-fabric's People

Contributors

dependabot[bot] avatar toumash avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.