From 9b4e0a43edcd634f9397246cbf74954ab65c693b 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 0ae7851..61120b8 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,7 @@ pkgs.openssl pkgs.pkg-config pkgs.nodejs + pkgs.entr rust ]; LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib"; 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",