feat: docs

This commit is contained in:
2025-03-14 05:19:43 -04:00
parent 6ab00206df
commit d382485a7c
21 changed files with 4451 additions and 79 deletions

View File

@ -38,7 +38,7 @@
pname = "${pname}-client";
inherit version;
src = gitignore.lib.gitignoreSource ./client;
npmDepsHash = "sha256-hOmZZrCSuHyRQhG6M7Yu5uRLTdCYOL/giT4zUm9iTRE=";
npmDepsHash = "sha256-YCmx+XNir+6iI0zqIBIjlNxyQ5iz4j9Is+unfSMEgQE=";
nodejs = pkgs.nodejs_22;
installPhase = ''
@ -68,6 +68,9 @@
# Svelte frontend
nodejs_22
# Openapi gen
openapi-generator-cli
# Helper scripts
(writeShellApplication {
name = "run";
@ -91,25 +94,6 @@
'';
})
(writeShellApplication {
name = "build";
text = ''
gitroot=$(git rev-parse --show-toplevel)
cd "''${gitroot}"
buf lint
buf generate
cd "''${gitroot}/client"
npm run build
cp -r build ../server/client
cd "''${gitroot}/server"
go build -o ../build/trevstack .
'';
})
(writeShellApplication {
name = "protobufwatch";