Milestones 0 and 1: foundation and money in (20261007.10)
Foundation: single arm64 container (Hono + SQLite via Drizzle, React + Vite), local sign-in with long-lived sessions and passkeys, roles (read-only, full access, admin), nightly and pre-upgrade backups, light and dark themes, date-based version numbers, and the ideas lightbulb behind IDEAS_ENABLED. Money in: accounts with balances, CSV import with bank detection, a column mapping pop-up for unknown layouts, duplicate checks, transfer pairing and undo; one-tap review with learned rules; activity with search, splits, tags, notes and cash entries. Statement files are blocked from commits by a pre-commit hook; tests use synthetic fixtures only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
19
server/build.mjs
Normal file
19
server/build.mjs
Normal file
@@ -0,0 +1,19 @@
|
||||
// Bundle the server into dist/ with esbuild. npm packages stay external and
|
||||
// are installed in the image; our own shared workspace is bundled in.
|
||||
import { build } from 'esbuild';
|
||||
import { readFileSync } from 'node:fs';
|
||||
|
||||
const pkg = JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf8'));
|
||||
const external = Object.keys(pkg.dependencies).filter((name) => name !== '@spendlight/shared');
|
||||
|
||||
await build({
|
||||
entryPoints: ['src/index.ts', 'src/cli.ts'],
|
||||
outdir: 'dist',
|
||||
bundle: true,
|
||||
platform: 'node',
|
||||
format: 'esm',
|
||||
target: 'node24',
|
||||
sourcemap: true,
|
||||
external,
|
||||
logLevel: 'info',
|
||||
});
|
||||
Reference in New Issue
Block a user