@quantr/quantr-spfx-library
v2.0.7
Published
Our useful functions for SPFx development
Downloads
22
Readme
Introduction
We heavily doing SPFx, so this library contains our useful functions
www.quantr.hk
Usage
npm i --save @quantr/quantr-spfx-library
import * as q from '@quantr/quantr-spfx-library';
q.widerDevMode();
Development
cd quantr-spfx-library
npm link
npm run deploy
Jump to testing project
cd test-spfx
npm link @quantr/quantr-spfx-library
gulp serve --nobrowser
When you change a line of code in this Library
- Delete lib
- Delete node_modules
- Deploy the library using this command
npm run deploy --ship
- go to test project
- run this command
gulp clean;npm run build;gulp serve
Compile the source and deploy to npmjs
npm run deploy npm login
change version number
npm publish
Troubleshoot
- If the a line of code is changed in this library, but its does not take effect in the test project
- run this command
npm unlink @quantr/quantr-spfx-library
- remove the folders, lib, node_modules, temp, and a file package-lock.json
- run this command
npm i