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"; + } + ]; }; }; };