From 38d2a9c499fb8807f1da253141706c499e394fb6 Mon Sep 17 00:00:00 2001 From: Niaz Faridani-Rad Date: Mon, 7 Jun 2021 16:41:54 +0200 Subject: [PATCH] Add section on how to develop react-pig --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 008de8f..61d0be8 100644 --- a/README.md +++ b/README.md @@ -61,10 +61,29 @@ class App extends Component { export default App ``` +## Development +You have to install yarn: +``` +npm install --global yarn +``` +Use the yarn commands to install and continuously build react-pig: +``` +yarn install +yarn run build +yarn start +``` +To test your changes to the component, build and serve the example: +``` +cd /example +yarn install +yarn start +``` +You should now be able to see the website, with the changed component, at localhost:3000 This React library was packaged with https://github.com/transitive-bullshit/create-react-library + ## License MIT © [nickmcmillan](https://github.com/nickmcmillan)