add api generator

This commit is contained in:
Johannes Kirschbauer
2023-08-25 13:40:52 +02:00
parent fb1376b23d
commit 5a39865622
13 changed files with 9247 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
{ fmod
, pkg
, pkgs
,
, clanPkgs
}:
pkgs.mkShell {
buildInputs = [
@@ -19,8 +19,14 @@ pkgs.mkShell {
echo "floco ok: node_modules updated"
fi
ln -sf ${pkgs.roboto}/share/fonts ./src/fonts
ln -sf ${pkgs.roboto}/share/fonts ./src
export PATH="$PATH:$(realpath ./node_modules)/.bin"
# re-generate the api code
rm -rf api openapi.json
cp ${clanPkgs.clan-openapi}/openapi.json .
orval
'';
}