This commit is contained in:
uwap 2026-01-20 15:43:05 +01:00
commit f5d9aece1e
13 changed files with 313 additions and 0 deletions

21
flake.nix Normal file
View file

@ -0,0 +1,21 @@
{
description = "A prisma test project";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/master";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [ pkgs.bashInteractive ];
buildInputs = with pkgs; [
deno
];
shellHook = with pkgs; ''
alias build="deno bundle --platform=browser index.html --outdir dist"
alias serve="deno run -ENR jsr:@std/http/file-server dist/"
'';
};
});
}