Adding dev commands to flake.nix

This commit is contained in:
April Eaton 2025-12-18 12:41:15 +01:00
parent 3a8c31de81
commit e9f72f9556

View file

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