Repository navigation
Conversation
Convert the card to a TypeScript project and modernize the dev/build workflow. Adds TypeScript sources (src/const.ts, src/list-card.ts, src/editor.ts, src/types.ts), Rollup dev/prod configs, ESLint/Prettier config, package.json and yarn setup, and build scripts. Introduces VS Code devcontainer config and sample Home Assistant config for local development (.devcontainer/*), repository metadata (.gitattributes, .gitignore), and contributor templates. Adds GitHub Actions for build, release and disallowing npm lockfiles; release job bumps package.json and src/const.ts from the release tag and uploads dist/list-card.js. Removes the legacy list-card.js and VERSION file and updates README with editor/card notes. CARD_VERSION initialized to 1.0.0.
iantrich
marked this pull request as draft
March 4, 2026 17:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request sets up a full-featured development environment for a Home Assistant Lovelace custom card, including devcontainer configuration, code quality tooling, GitHub workflows, and contributor documentation. The main changes establish a reproducible VS Code dev container, enforce coding standards, automate builds and releases, and provide clear instructions for contributors.
Development environment and tooling:
.devcontainer/devcontainer.jsonto define a VS Code dev container using a custom Home Assistant image, with workspace mounts, environment variables, port forwarding, and recommended extensions for TypeScript, Lit, and YAML development..devcontainer/config/configuration.yamlfor a pre-populated Home Assistant demo configuration, including a template sensor with example feed data for card testing..devcontainer/README.mdwith setup instructions, troubleshooting tips, and workflow details for building and testing the card in the dev container.Code quality and standards:
.prettierrc.jsonfor code formatting rules and.yarnrc.ymlto enforce Yarn as the package manager. [1] [2].gitattributesto enforce LF line endings and declare file types for consistent cross-platform development.GitHub workflows and contributor guidance:
.github/workflows/build.yml), release automation (.github/workflows/release.yml), and prevention of npm lockfiles (.github/workflows/no-npm-lockfiles.yml). [1] [2] [3](Top refs: [1] [2] [3] [4] [5]