From efb50916b27c327ec2a1327e8ad0b64f83051cbe Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Thu, 12 Feb 2026 12:21:37 +0100 Subject: [PATCH] docs: update CI workflow and AGENTS.md for consolidated deps Update references to removed web/package.json: - CI workflow: Remove 'cd web && bun install' step - AGENTS.md: Remove web-specific dev commands (cd web && bun run dev/build) - AGENTS.md: Update schema location to reflect domain module split - Add Docker commands as recommended local dev approach All dependencies now installed from root package.json. --- .github/workflows/deploy.yml | 4 +--- AGENTS.md | 14 +++++++------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f9bbdd2..d4bb217 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,9 +43,7 @@ jobs: bun-version: latest - name: Install Dependencies - run: | - bun install --frozen-lockfile - cd web && bun install --frozen-lockfile + run: bun install --frozen-lockfile - name: Create Config File run: | diff --git a/AGENTS.md b/AGENTS.md index 627ccf0..04a22e6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -8,11 +8,10 @@ AuroraBot is a Discord bot with a web dashboard built using Bun, Discord.js, Rea ```bash # Development -bun --watch bot/index.ts # Run bot with hot reload -bun --hot web/src/index.ts # Run web dashboard with hot reload +bun --watch bot/index.ts # Run bot + web dashboard with hot reload # Testing -bun test # Run all tests ( expect some tests to fail when running all at once like this due to the nature of the tests ) +bun test # Run all tests bun test path/to/file.test.ts # Run single test file bun test --watch # Watch mode bun test shared/modules/economy # Run tests in directory @@ -24,9 +23,10 @@ bun run db:push # Push schema changes (Docker) bun run db:push:local # Push schema changes (local) bun run db:studio # Open Drizzle Studio -# Web Dashboard -cd web && bun run build # Build production web assets -cd web && bun run dev # Development server +# Docker (recommended for local dev) +docker compose up # Start bot, web, and database +docker compose up app # Start just the app (bot + web) +docker compose up db # Start just the database ``` ## Project Structure @@ -187,7 +187,7 @@ return await withTransaction(async (tx) => { - Use `bigint` mode for Discord IDs and currency amounts - Relations defined separately from table definitions -- Schema location: `shared/db/schema.ts` +- Schema modules: `shared/db/schema/*.ts` (users, inventory, economy, quests, moderation) ## Testing