PocketBase (v0.23.xx, Extend with JavaScript) project initializer in Bun
- designed for PocketBase v0.23.xx and Bundler by Bun (https://bun.sh)
/app/**
contains TS files that will be loaded as JSVM libs and hooks (CJS bundled)/app/app.build.ts
- build script for pb_hooks/app/lib.build.ts
- build script for reusable JSVM libs inside pb_hooksconst lib = require(`${__hooks}/app/lib`);
To use this stack
-
use degit; https://github.com/Rich-Harris/degit
bunx degit copongcopong/pb-baker
-
or use as template
To install dependencies:
bun install
To run for the first time (will get pocketbase v0.23.1, then create Superuser)
bun run initialize!
To start local development (auto reload and builds pb-related hooks and jsvm libraries):
bun run dev
To build pb-related hooks and jsvm libraries:
bun run build
This project was created using bun init
in bun v1.1.35. Bun is a fast all-in-one JavaScript runtime.