From 522f7eb65be1b65722ed49870b1213588d58e817 Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Sat, 28 Jan 2023 12:29:28 -0500 Subject: [PATCH] Add a tool to monitor and re-run the client build process The Javascript ecosystem is rubbish. --- flake.nix | 1 + music-player/client/package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 46d3e70..8d5fb12 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,7 @@ name = "ld-tools-devshell"; buildInputs = [ pkgs.clang + pkgs.entr pkgs.glade pkgs.gtk4 pkgs.nodejs diff --git a/music-player/client/package.json b/music-player/client/package.json index afd7fe8..0034ed0 100644 --- a/music-player/client/package.json +++ b/music-player/client/package.json @@ -5,7 +5,8 @@ "main": "main.js", "scripts": { "build": "browserify src/main.ts -p [ tsify ] > dist/bundle.js", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "watch": "exa index.html styles.css src/* | entr -s 'npm run build'" }, "author": "Savanni D'Gerinel ", "license": "GPL-3.0-or-later",