1.0.3 • Published 3 years ago
react-griffinhill-app-demo v1.0.3
React Griffinhill App
A react library/module/wrapper for griffihill applications
How to use
- Install to your project
npm install react-griffinhill-app-demo --save
- Import to your file
import { Sample } from 'react-griffinhill-app-demo';
- Import the bundle css to your project index scss file
@import '~react-griffinhill-app-demo/dist/bundle.css';
For developer setup
Node version v16.0.0
- Clone this repo
- Checkout or switch to
develop
branch - Use Visual Studio Code, install the following extensions:
prettier
(for same formatting purposes) - Enable auto format on save on VS Code.
Running
- Run story book
npm start
Everytime you have updates on the component (Instead publishing it to npmjs site using
npm publish
, you can install it directly to your working project in order to reflect the latest changes. )Install package using your project local directory (In order to reflect the changes while developing components)
npm install <>Your local folder director of react-griffinhill-app-demo<>
- Build project using roll up
npm run build-lib