-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
72 lines (57 loc) · 1.46 KB
/
Copy pathmise.toml
File metadata and controls
72 lines (57 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[tools]
node = "26.3.0"
"npm:pnpm" = "11.8.0"
[tasks.setup]
description = "Complete all local environment setup (pnpm install, .env creation, etc.)"
run = '''
#!/usr/bin/env bash
set -e
echo "📦 Installing dependencies with pnpm..."
pnpm install
if [ ! -f .env ]; then
echo "📝 Creating .env from .env.sample..."
cp .env.sample .env
else
echo "✅ .env file already exists."
fi
echo "✅ Local environment setup completed!"
'''
[tasks.dev]
description = "Start development server (MongoDB container auto-start)"
run = '''
docker compose up -d db
pnpm dev
'''
[tasks.build]
description = "Build application for production"
run = "pnpm build"
[tasks.lint]
description = "Run Biome linter on all files"
run = "pnpm lint"
[tasks.format]
description = "Format code with Biome"
run = "pnpm format"
[tasks.check]
description = "Run full Biome checks (lint + format)"
run = "pnpm check"
[tasks.typecheck]
description = "Run TypeScript type checking"
run = "pnpm typecheck"
[tasks.fetch]
description = "Fetch station data from API (MongoDB container auto-start)"
run = '''
docker compose up -d db
pnpm run fetch
'''
[tasks."docker:build"]
description = "Build Docker images"
run = "docker compose build"
[tasks."docker:up"]
description = "Start Docker containers"
run = "docker compose up -d"
[tasks."docker:down"]
description = "Stop Docker containers"
run = "docker compose down"
[tasks."docker:logs"]
description = "Display Docker container logs"
run = "docker compose logs -f"