I’ve been playing with Home Assistant frontend for a past month or so, and decided to create a tutorial on how to customize state cards. I just wanted if there are any best practices for HA FE code, other than things in frontend development section?

Things that I’m especially interested in is:

Adding frontend enhancements in a modular way, so that each card customization can be put as a separate git repo that would be checked in (or ideally kept as a package❤, be it bower or npm, tough polymer 2 and npm don’t play together AFAIK).

Customizing card state? Add State Card guide doesn’t cut it for two reasons: It suggest you editing /util/hass-util.html in HA frontend, which is not something you want to do. After digging though links in cookbook, it mentioned one example which used homeassistant.customize to adjust the custom_ui_state_card which would be cool, but it doesn’t always work.

Is there a quickies/easier way to set up the frontend development environment than following steps in the frontend setup? I’m thinking a Docker image that would take care of all of this.

I’d be very grateful for the responses, that will help me to create an article that, I hope, will aid HA community.