From e9f72f95563a8187dbda92b91a2bf9a578e36abb Mon Sep 17 00:00:00 2001 From: April Eaton Date: Thu, 18 Dec 2025 12:41:15 +0100 Subject: [PATCH] Adding dev commands to `flake.nix` --- flake.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/flake.nix b/flake.nix index ad5d791..136e7f0 100644 --- a/flake.nix +++ b/flake.nix @@ -39,6 +39,19 @@ typescript nodejs_24 ]; + + commands = [ + { + help = "Launch HTTP server for local testing"; + name = "run"; + command = "http-server src -c-1"; + } + { + help = "Build files for deployment to server"; + name = "build"; + command = "mkdir artifacts; cp -r src/* artifacts; ${pkgs.zip}/bin/zip -r9 bundle.zip artifacts"; + } + ]; }; }; };