This project contains react libraries for Openchannel templates.
This libs used for react-common-components and react-common-services
- npm 6.15.15
- node 14.18.1
- react 17.0.2
Follow these instructions for installing npm & node:
- Download and install nvm manager. (Helps to set required versions).
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
- Install npm and node:
nvm install 10.15.2
- Set current node version:
nvm use 10.15.2
- Print npm and node versions:
echo npm : $(npm -v), node : $(node -v)
npm i
npm run build:components
Note: this command build and run documentation for components on the http://127.0.0.1:8802
npm i
npm run build:services
Note: this command build and run documentation for services on the http://127.0.0.1:8801
Run in the root:
yarn add _package_ -W
Go to the package directory and write the new dependencies in its own package.json.
Go to the root directory and link the dependency versions to the child package:
yarn run link
Run in the root:
yarn run storybook
Run in the root:
yarn run build
All packages will be built using lerna.
Website: https://openchannel.io