Skip to content

Commit f27deab

Browse files
celiasclaude
andcommitted
chore: consolidate dev scripts and update docs
Removed redundant `dev` and `dev:all` scripts; merged `dev:manual` and `dev:full` into a single `dev:manual` that starts all three processes (API server, dashboard, poller). Updated CLAUDE.md, README.md, MONOREPO.md, and dashboard/README.md to reflect the new command. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f42774f commit f27deab

5 files changed

Lines changed: 16 additions & 24 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@ npm run server
3030
# Start Reddit poller
3131
npm run start
3232

33-
# Start both API + dashboard (recommended for local dev)
33+
# Start all three processes (API server + dashboard + poller)
3434
npm run dev:manual
3535

36-
# Start everything via Turborepo
37-
npm run dev:all
38-
3936
# Build dashboard
4037
npm run dashboard:build
4138

MONOREPO.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ comic-hunter/ # Workspace root
2121

2222
## ⚡ Quick Commands
2323

24-
| Command | Description |
25-
| ------------------- | ------------------------------------------------- |
26-
| `npm install` | Install all dependencies (both root + workspaces) |
27-
| `npm run dev:all` | Run API server + dashboard in parallel |
28-
| `npm run build` | Build production assets (with caching) |
29-
| `npm start` | Reddit poller only |
30-
| `npm run server` | API server only |
31-
| `npm run dashboard` | Frontend dev server only |
32-
| `npm run test:api` | Test Discord webhook |
24+
| Command | Description |
25+
| -------------------- | ------------------------------------------------- |
26+
| `npm install` | Install all dependencies (both root + workspaces) |
27+
| `npm run dev:manual` | Run API server + dashboard + poller in parallel |
28+
| `npm run build` | Build production assets (with caching) |
29+
| `npm start` | Reddit poller only |
30+
| `npm run server` | API server only |
31+
| `npm run dashboard` | Frontend dev server only |
32+
| `npm run test:api` | Test Discord webhook |
3333

3434
## 🚀 Development Workflow
3535

@@ -44,7 +44,7 @@ npm run build # Build dashboard once
4444
### Daily development:
4545

4646
```bash
47-
npm run dev:all # Both servers + hot reload
47+
npm run dev:manual # API server + dashboard + poller
4848
# Work on features...
4949
npm run build # Rebuild (only changed files)
5050
```
@@ -126,7 +126,7 @@ When adding new scrapers (eBay, Facebook):
126126
### Development
127127

128128
```bash
129-
npm run dev:all # Local development
129+
npm run dev:manual # Local development
130130
```
131131

132132
### Production

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ DISCORD_WEBHOOK_URL=your_discord_webhook_url
3838
**For development (recommended):**
3939

4040
```bash
41-
# Single command runs both API server + dashboard in parallel
42-
npm run dev:all
41+
# Single command runs API server + dashboard + Reddit poller
42+
npm run dev:manual
4343
```
4444

4545
**Individual processes:**
@@ -53,9 +53,6 @@ npm run server
5353

5454
# Dashboard only (port 5173)
5555
npm run dashboard
56-
57-
# Alternative parallel method
58-
npm run dev:manual
5956
```
6057

6158
Verify the API is up:

dashboard/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ React dashboard for monitoring comic alerts collected by the Comic Hunter poller
1515
The dashboard depends on the API server running on port 3001.
1616

1717
```bash
18-
# From the repo root — starts both API server and dashboard
18+
# From the repo root — starts API server, dashboard, and Reddit poller
1919
npm run dev:manual
2020

2121
# Or start just the dashboard (requires API server already running)

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@
77
"dashboard"
88
],
99
"scripts": {
10-
"dev": "npx tsx api-server.ts",
1110
"start": "npx tsx reddit-poller.ts",
1211
"server": "npx tsx api-server.ts",
1312
"dashboard": "npm run dev --workspace=comic-hunter-dashboard",
1413
"dashboard:build": "npm run build --workspace=comic-hunter-dashboard",
15-
"dev:all": "turbo run dev --parallel",
1614
"build": "turbo run build",
17-
"dev:manual": "concurrently \"npm run server\" \"npm run dashboard\"",
15+
"dev:manual": "concurrently \"npm run server\" \"npm run dashboard\" \"npm run start\"",
1816
"test:api": "npx tsx test-discord.ts",
1917
"format": "prettier --write .",
2018
"format:check": "prettier --check .",

0 commit comments

Comments
 (0)