Develop mini-graph-card locally
masterTo develop or modify the mini-graph-card, clone the repository into your Home Assistant config/www folder and use the dev branch. You must have nodejs and npm installed.
- Clone the repository:
$ git clone https://github.com/kalkih/mini-graph-card.git- Add the resource reference to your
ui-lovelace.yaml:
resources:
- url: /local/mini-graph-card/dist/mini-graph-card-bundle.js
type: module- Set up the development environment:
$ cd mini-graph-card && git checkout dev && npm install- Build the project:
$ npm run build- (Optional) Watch for changes and rebuild automatically:
$ npm run watchAfter building, the mini-graph-card-bundle.js will be available in the /dist directory. Refresh your browser (clearing cache if necessary) to see changes.
$ git clone https://github.com/kalkih/mini-graph-card.git
$ cd mini-graph-card && git checkout dev && npm install
$ npm run build