If you plan to contribute back to this repo, please fork & open a PR.
- Clone this repo to wherever you want:
git clone https://github.com/denysdovhan/vacuum-card.git
- Go into the repo folder:
cd vacuum-card
- Install dependencies (Node.js and npm are required):
npm install
- Run development server. It's going to watch source files, recompile on changes and server compiled file on local server.
npm start
- Add
http://localhost:5000/vacuum-card.js
to your Lovelace resources.
Now you can make changes to files in src
folder. Development server will automatically rebuild on changes. Lovelace will load resource from development server. Refresh the browser to see changes. Make sure cache is cleared or disabled.