forked from syntaxbullet/aurorabot
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.
This commit is contained in:
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
@@ -43,9 +43,7 @@ jobs:
|
|||||||
bun-version: latest
|
bun-version: latest
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: bun install --frozen-lockfile
|
||||||
bun install --frozen-lockfile
|
|
||||||
cd web && bun install --frozen-lockfile
|
|
||||||
|
|
||||||
- name: Create Config File
|
- name: Create Config File
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
14
AGENTS.md
14
AGENTS.md
@@ -8,11 +8,10 @@ AuroraBot is a Discord bot with a web dashboard built using Bun, Discord.js, Rea
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Development
|
# Development
|
||||||
bun --watch bot/index.ts # Run bot with hot reload
|
bun --watch bot/index.ts # Run bot + web dashboard with hot reload
|
||||||
bun --hot web/src/index.ts # Run web dashboard with hot reload
|
|
||||||
|
|
||||||
# Testing
|
# 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 path/to/file.test.ts # Run single test file
|
||||||
bun test --watch # Watch mode
|
bun test --watch # Watch mode
|
||||||
bun test shared/modules/economy # Run tests in directory
|
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:push:local # Push schema changes (local)
|
||||||
bun run db:studio # Open Drizzle Studio
|
bun run db:studio # Open Drizzle Studio
|
||||||
|
|
||||||
# Web Dashboard
|
# Docker (recommended for local dev)
|
||||||
cd web && bun run build # Build production web assets
|
docker compose up # Start bot, web, and database
|
||||||
cd web && bun run dev # Development server
|
docker compose up app # Start just the app (bot + web)
|
||||||
|
docker compose up db # Start just the database
|
||||||
```
|
```
|
||||||
|
|
||||||
## Project Structure
|
## Project Structure
|
||||||
@@ -187,7 +187,7 @@ return await withTransaction(async (tx) => {
|
|||||||
|
|
||||||
- Use `bigint` mode for Discord IDs and currency amounts
|
- Use `bigint` mode for Discord IDs and currency amounts
|
||||||
- Relations defined separately from table definitions
|
- Relations defined separately from table definitions
|
||||||
- Schema location: `shared/db/schema.ts`
|
- Schema modules: `shared/db/schema/*.ts` (users, inventory, economy, quests, moderation)
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user