This is a demo project that includes hardhat-react as a plugin to generate the react component that is used to display some example content.
Here is the code for the hardhat react plugin. Lerna will symlink this package to @symfoni/hardhat-demo so we can use it there.
npm i -g lerna
yarn run bootstrap// This will install all packages and build
You need three processes running for the full development enviroment
yarn run watchwatches changes in hardhat-react plugin. Lerna will then symlink this package to be used in hardhat-demo.
yarn run noderuns up a blockchain node, generate typechain interfaces, compile and deploy smart-contracts then watch for changes in smart contracts and deploy them.
yarn run frontendruns a dev-server for a create-react-application from packages/hardhat-demo/frontend that is served on http://localhost:3000/ with hot-reloading. This will also reload when you change smart contracts
yarn run pubishbuilds all packages and published them to npm with version bump.
Demo should be working!