Giter Site home page Giter Site logo

spfx-boilerplate's Introduction

SPFx Boilerplate

Boilerplate for making SPFx project for SharePoint 2019 with updated versions of key component (React, TypeScript) and DI container.

Usage

git clone the repo
npm run preinstall
npm install

If you use windows OS run

npm run fixbuildw

for Linux/MacOS run

npm run fixbuildu

This command you need to run always after package installation for changing version of TypeScript from 2 to 4.

To rename your project run

npm run-script config <Your_Name>

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.

CLI options

  • gulp clean - Clean bundle and package
  • gulp test - Run test (in progress)
  • gulp serve - Run for debugging (commonly for using with --nobrowser key and connecting debugger from vs code)
  • gulp bundle - Make bundle (for production with --ship param)
  • gulp package-solution - Make SPFx package (for production with --ship param)

###Issues roundedCorner2 Error& Add this line to webpart constructor: loadTheme({effects:{roundedCorner2: '0px'}})

spfx-boilerplate's People

Contributors

drcote avatar gamu avatar gamucool 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.