This project uses
Before doing anything else, run these commands:
git clone [email protected]:timelessco/chakra-components.git
cd chakra-components
yarn boot # To install deps, bootstrap lerna
# And link the local packages.
yarn docs # To start the docs development server
yarn clean # to clean the repo of all hidden files
# node_modules, .next & etc.,
yarn install # to install all the project deps
yarn bootstrap # bootstraps lerna so all dependencies get
# linked for cross-component development
yarn build # build the component library
yarn docs # runs the documentation site locally
yarn commit # to commit the stagged files
yarn contributors:add # add yourself as a contributors
# usage https://allcontributors.org/docs/en/cli/usage
yarn contributors:generate # generate allcontributors to readme
Install yarn add -g nodemon
and run
nodemon --exec "yarn build" --watch packages/chakra-components/src --ignore dist/
OR
Start the development server with yarn docs
.
Install Save and Run extension in VSCode.
Add the below setting to your vscode settings
"saveAndRun": {
"commands": [
{
"match": "/packages/chakra-components/src",
"cmd": "yarn build",
"silent": true
},
]
},
Make changes to your components, save & the docs site udpates to the latest change.