package OuterWildsTextAdventureWeb as caddy service

This commit is contained in:
ulic-youthlic 2025-05-31 03:42:12 +08:00
parent 5844040624
commit cae1182840
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
10 changed files with 119 additions and 16 deletions

View file

@ -0,0 +1,30 @@
{
srcs,
buildNpmPackage,
importNpmLock,
...
}: let
inherit (srcs.OuterWildsTextAdventure) src date version;
in
buildNpmPackage {
pname = "OuterWildsTextAdventure";
version = "0-unstable.${date}-git${version}";
inherit src;
npmDeps = importNpmLock {
npmRoot = src;
};
npmBuildScript = "bundle";
installPhase = ''
runHook preInstall
mkdir -p $out
cp -rt $out/ index.html data p5.min.js bundle.js bundle.js.map
runHook postInstall
'';
npmConfigHook = importNpmLock.npmConfigHook;
}