Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e8ed13e982 |
@@ -17,6 +17,7 @@ This repository is a continuation of [Gregory Bouteiller's astro-pocketbase](htt
|
|||||||
## Changes from Original
|
## Changes from Original
|
||||||
|
|
||||||
### Project Structure
|
### Project Structure
|
||||||
|
- Added `flake.nix` for **NixOS** development environment.
|
||||||
- Removed `doc/`, `playground/` and monorepo configuration.
|
- Removed `doc/`, `playground/` and monorepo configuration.
|
||||||
- Replaced `pnpm` and `node` in favor of `bun`.
|
- Replaced `pnpm` and `node` in favor of `bun`.
|
||||||
- Switched `.github/` to `.gitea/` and `gh` to `tea`.
|
- Switched `.github/` to `.gitea/` and `gh` to `tea`.
|
||||||
|
|||||||
29
flake.nix
29
flake.nix
@@ -35,9 +35,13 @@
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Available commands:"
|
echo "Available commands:"
|
||||||
echo " bun install - Install dependencies"
|
echo " bun install - Install dependencies"
|
||||||
echo " bun run dev - Start development"
|
echo " bun run dev - Start development (build with --watch flag)"
|
||||||
echo " bun build - Build with Bun's bundler"
|
echo " bun run build - Build library"
|
||||||
echo " tea releases create - Create Gitea release"
|
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 ""
|
echo ""
|
||||||
|
|
||||||
if [ ! -d "node_modules" ]; then
|
if [ ! -d "node_modules" ]; then
|
||||||
@@ -49,25 +53,6 @@
|
|||||||
NODE_ENV = "development";
|
NODE_ENV = "development";
|
||||||
BUN_RUNTIME = "bun";
|
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/
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "astro-pocketbase-continue",
|
"name": "astro-pocketbase-continue",
|
||||||
"version": "0.13.0",
|
"version": "0.13.1",
|
||||||
"description": "Astro integration to ease the use of PocketBase in your Astro projects",
|
"description": "Astro integration to ease the use of PocketBase in your Astro projects",
|
||||||
"author": {
|
"author": {
|
||||||
"email": "garandplg@garandplg.com",
|
"email": "garandplg@garandplg.com",
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
"astro-integration-kit": "^0.19.1",
|
"astro-integration-kit": "^0.19.1",
|
||||||
"dotenv": "^17.2.3",
|
"dotenv": "^17.2.3",
|
||||||
"es-toolkit": "^1.40.0",
|
"es-toolkit": "^1.40.0",
|
||||||
"zod-pocketbase-continue": "^0.6.0"
|
"zod-pocketbase-continue": "^0.6.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "2.2.6",
|
"@biomejs/biome": "2.2.6",
|
||||||
|
|||||||
Reference in New Issue
Block a user