home-assistant-custom-lovelace-modules.fold-entity-row: init at 2.3.2 (#534753)

This commit is contained in:
Sandro
2026-07-18 17:04:03 +00:00
committed by GitHub
2 changed files with 53 additions and 0 deletions
@@ -0,0 +1,12 @@
diff --git a/package.json b/package.json
index 1ec793b..74e538e 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,7 @@
"author": "Thomas Lovén",
"license": "MIT",
"devDependencies": {
+ "@babel/core": "^7.0.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.1",
@@ -0,0 +1,41 @@
{
buildNpmPackage,
fetchFromGitHub,
lib,
}:
buildNpmPackage (finalAttrs: {
pname = "fold-entity-row";
version = "2.3.2";
src = fetchFromGitHub {
owner = "thomasloven";
repo = "lovelace-fold-entity-row";
tag = "v.${finalAttrs.version}";
hash = "sha256-pbH2XNVrZEq3U9Kugq0X5U/CT9LNaWP9su4qWk6oob0=";
};
patches = [ ./add-babel-core-dependency.patch ];
npmDepsFetcherVersion = 2;
npmFlags = [ "--legacy-peer-deps" ];
npmDepsHash = "sha256-/pm5K088cOa1M/NqlOJ7RtrxKik95Me/d68yzem9ktI=";
installPhase = ''
runHook preInstall
mkdir -p $out
cp fold-entity-row.js $out
runHook postInstall
'';
meta = {
description = "Fold away and hide rows in lovelace entities cards.";
homepage = "https://github.com/thomasloven/lovelace-fold-entity-row";
changelog = "https://github.com/thomasloven/lovelace-fold-entity-row/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ rhoriguchi ];
platforms = lib.platforms.all;
};
})