- Install NodeJS
- Install yarn
- Install Prettier ESLint VSCode Extension
- Locate the repository in terminal/bash
- Install dependencies -
yarn install
in the repository directory - Follow the instructions below in order 👇🏻
- Run
yarn storybook
in repository directory - Open browser and navigate to http://localhost:6006/
- In the project that you want to use this library in, run the following in the root folder:
cd node_modules/react && yarn link && cd .. && cd react-dom && yarn link && cd ../..
- Run
yarn link:react
in the root of the library directory - Run
yarn link
in the root of the library directory - In the project, run
yarn link "name-of-library"
in project that want to use this library)
import { SampleComponent } from 'name-of-library'
- Run
yarn test
in the repository directory
- Run
yarn generate "ComponentName"
in the repository directory
- Run
yarn publish
in the repository and follow the CLI instructions
- ReactJS - Frontend Javascript web framework
- TypeScript - Open-source language which builds on JavaScript
- Storybook - UI development tool
- Jest - JavaScript testing framework
- Irvin Ives Lau - lauirvin
- https://www.irviniveslau.com