Adding dev commands to flake.nix
This commit is contained in:
parent
3a8c31de81
commit
e9f72f9556
1 changed files with 13 additions and 0 deletions
13
flake.nix
13
flake.nix
|
|
@ -39,6 +39,19 @@
|
||||||
typescript
|
typescript
|
||||||
nodejs_24
|
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";
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue