qanoonisharedpackage
v1.1.95
Published
A package containing reusable React components
Downloads
3,988
Readme
Qanooni Package Setup Guide
This guide will help you set up the qanoonisharedpackage
and link it to your Outlook and Word projects.
Activating the Qanooni Package
- Update the project to add the componants you want to use from Outlook and Word
- Make sure to update the package.json (for example package version)
- Run these commands to create your package
npm install npm run build
- Publish on npm by following these steps
- Create an account npmjs
- Get a classic publish token
- Set it as a variable
export NPM_TOKEN=npm_rkq...
- Run this to publish
npm publish --//registry.npmjs.org/:_authToken=$NPM_TOKEN
- Update the versions of the package in Outlook and Word package.json
- Reinstall packages
npm isntall
- You can now import items like this
import {Spinner} from 'qanoonisharedpackage';
NOTE
This setup was made by someone who has never published packages before. If you have a suggestion to improve this process please get in touch.