mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-10-03 05:07:10 +00:00
* Run on Bun: bun install, bun --bun next, both dev2 sites on Bun Moves logicsrc.com and app.logicsrc.com (one image) off Node + npm onto Bun, following the fleet recipe (phonenumbers.bot pilot). - Package manager: bun.lock migrated from package-lock.json, so every resolved version is unchanged; packageManager bun@1.4.2. Root scripts run each workspace with `bun run --cwd <dir>` instead of `npm --workspace`. - Bun 1.4.2, not the fleet's 1.4.0: 1.4.0 re-resolves this workspace's `file:` cross-references differently on every install, so its own lockfile never passes --frozen-lockfile. 1.4.2 is stable on it. - Runtime: logicsrc-web runs `bun --bun next build/start`; apps/pwa (Express, app.logicsrc.com) runs `bun src/server.mjs`. - Image: .nixpacks/Dockerfile (the path both dev2 compose stacks build) is now a hand-written oven/bun image carrying the whole workspace, run as the non-root bun user. ENTRYPOINT stays `bash -l -c` so a compose `command:` is one string, as before; app.logicsrc.com's compose starts it with "npm --workspace @logicsrc/pwa run start", which .nixpacks/npm (the image's only `npm`) turns into `bun run start` in apps/pwa. Port 3000, the PUBLIC_URL build arg and the / health path are unchanged. The nixpacks .nix and build.sh are gone. - CI: both workflows install with bun and run every script through bun (Node stays only as the interpreter for vitest/tsc/node --test/Playwright, as before), and CI now boots the site under Bun. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * ci: boot check on port 3100 and stop it before Playwright needs 3000 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(web): keep next dev on port 5174, which Playwright waits on Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
37 lines
1.2 KiB
JSON
37 lines
1.2 KiB
JSON
{
|
|
"name": "@logicsrc/web",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "LogicSRC standards and open specification PWA (Next.js).",
|
|
"scripts": {
|
|
"dev": "bun --bun next dev -p 5174",
|
|
"build": "bun --bun next build",
|
|
"start": "bun --bun next start",
|
|
"test": "vitest run contract",
|
|
"test:contract": "vitest run contract",
|
|
"test:e2e": "playwright test"
|
|
},
|
|
"dependencies": {
|
|
"@logicsrc/openontology": "file:../../packages/openontology",
|
|
"@logicsrc/openprd": "file:../../packages/openprd",
|
|
"@profullstack/autoblog": "github:profullstack/autoblog#75e54af",
|
|
"@profullstack/stack": "^0.1.3",
|
|
"@profullstack/x402-gateway": "^0.7.0",
|
|
"@supabase/supabase-js": "^2.105.4",
|
|
"marked": "^18.0.5",
|
|
"next": "16.2.6",
|
|
"react": "19.2.0",
|
|
"react-dom": "19.2.0",
|
|
"sanitize-html": "^2.17.5"
|
|
},
|
|
"devDependencies": {
|
|
"@logicsrc/plugin-credential-sharing": "file:../../plugins/credential-sharing",
|
|
"@playwright/test": "^1.57.0",
|
|
"@types/node": "^24.10.1",
|
|
"@types/react": "^19.2.0",
|
|
"@types/react-dom": "^19.2.0",
|
|
"@types/sanitize-html": "^2.16.1",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^4.0.8"
|
|
}
|
|
}
|