- Clone this repository:
git clone https://github.com/accurat/react-composable-charts
cd react-composable-charts
- Install
yarn
(https://yarnpkg.com/en/docs/install)
You can use the example
folder to immediately experiment with the lib.
- Go to example folder and install dependencies:
cd example
yarn install
- Edit
example/index.tsx
, importing the library from../src
If you want to develop new features and see them in a separated project, you can link the lib to your project.
// Inside react-composabe-charts
yarn link
// Inside your awesome project
yarn link react-composable-charts
since react-composable-charts uses hooks, react should be linked too
// Inside react-composabe-charts
cd node_modules/react
yarn link
cd ../react-dom
yarn link
// Inside your awesome project
yarn link react
yarn link react-dom
When you are done, unlink the packages:
// Inside react-composabe-charts
yarn unlink
cd node_modules/react
yarn unlink
cd ../react-dom
yarn unlink
// Inside your awesome project
yarn unlink react-composable-charts
yarn unlink react
yarn unlink react-dom
yarn install
We use np
to publish.
yarn release
If you want to release a beta version use:
yarn release --tag=beta