This guide explains how to test changes to BubbleCard during development.
npm installnpm testWhen making modifications to BubbleCard, follow this workflow to test your changes:
npm installAfter making your changes to the source files, build the distribution:
npm run distThis will compile your changes and update the files in the dist/ directory, including bubble-card.js.
Make sure to commit both your source changes and the built distribution files:
git add .
git commit -m "Your commit message"Important: Always include the built bubble-card.js file in your commits, as this is what Home Assistant will actually use.
Push your changes to your GitHub fork:
git push origin your-branch-nameBe sure to remove any existing Bubble Card installations. If you previously installed BubbleCard with HACS:
- In HACS, search for "Bubble Card"
- Click the three dots menu (⋮) and select "Remove"
To test your changes in Home Assistant:
- Open Home Assistant and go to HACS
- Click the three dots menu (⋮) in the top right corner
- Select Custom repositories
- Add your fork URL:
https://github.com/your-user/Bubble-Card - Set the category to Dashboard
- Click Add
- Reload Home Assistant
- In HACS, search for "Bubble Card"
- You should now see your fork listed as an option
- Install it (or update if you already have it installed)
- Restart Home Assistant or clear your browser cache
- Your changes should now be active