Update development scripts and bump dependencies
This commit is contained in:
29
flake.nix
29
flake.nix
@@ -35,9 +35,13 @@
|
||||
echo ""
|
||||
echo "Available commands:"
|
||||
echo " bun install - Install dependencies"
|
||||
echo " bun run dev - Start development"
|
||||
echo " bun build - Build with Bun's bundler"
|
||||
echo " tea releases create - Create Gitea release"
|
||||
echo " bun run dev - Start development (build with --watch flag)"
|
||||
echo " bun run build - Build library"
|
||||
echo " bun run lint - Run Biome check"
|
||||
echo " bun run lint:w - Run Biome check (with --write)"
|
||||
echo " bun run format - Run Biome format"
|
||||
echo " bun run format:w - Run Biome format (with --write)"
|
||||
echo " bun run release - Run release script"
|
||||
echo ""
|
||||
|
||||
if [ ! -d "node_modules" ]; then
|
||||
@@ -49,25 +53,6 @@
|
||||
NODE_ENV = "development";
|
||||
BUN_RUNTIME = "bun";
|
||||
};
|
||||
|
||||
packages.default = pkgs.stdenv.mkDerivation {
|
||||
name = "astro-pocketbase-continue";
|
||||
src = ./.;
|
||||
|
||||
buildInputs = [ bun ];
|
||||
|
||||
buildPhase = ''
|
||||
export HOME=$TMPDIR
|
||||
bun install --frozen-lockfile
|
||||
bun run build
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r dist $out/
|
||||
cp package.json $out/
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user