3.0.4 • Published 4 years ago
irfer-ui-lib v3.0.4
React Component Library
Preview link: https://ui.montblanc.frida.casa/
Development
Testing
npm run testBuilding
npm run buildStorybook
To run a live-reload Storybook server on your local machine:
npm run storybookTo export Storybook as static files:
npm run build-storybookPrettier
To format code:
npm run prettierPublishing
To login to the npm account:
npm loginRemember to check the version and remove private: true from package.json every time before publishing.
To publish run:
npm publishUsing
To use locally:
- In the root of montblanc-ui directory run:
npm install
npm link- npm link montblanc-ui to react in your app to fix react hook error:
npm link '../YOUR_APP_NAME/node_modules/react'- In the root of your app directory link your app to montblanc-ui:
npm link montblanc-ui-lib- Import nessessary components
import { Button } from 'montblanc-ui-lib'To use published npm package:
- Install
npm i montblanc-ui-lib- Import nessessary components
import { Button } from 'montblanc-ui-lib'