Repository navigation
Expand file tree
/
Copy pathJustfile
More file actions
145 lines (122 loc) · 3.65 KB
/
Copy pathJustfile
File metadata and controls
145 lines (122 loc) · 3.65 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# This Justfile isn't strictly necessary, but it's
# a convenient way to run commands in the repo
# without needing to remember all commands.
[private]
@help:
just --list
# Aliases
alias new-pkg := new-package
alias new-worker := gen
alias up := update
alias i := install
# =============================== #
# DEV COMMANDS #
# =============================== #
# Install dependencies
[group('1. dev')]
install:
pnpm install --child-concurrency=10
# Check for issues with deps, lint, types, format, etc.
[group('1. dev')]
[positional-arguments]
[no-cd]
check *args:
bun runx check "$@"
# Fix issues with deps, lint, format, etc.
[group('1. dev')]
[positional-arguments]
[no-cd]
fix *args:
bun runx fix "$@"
[group('1. dev')]
[positional-arguments]
[no-cd]
test *args:
bun vitest "$@"
[group('1. dev')]
[positional-arguments]
[no-cd]
build *args:
bun turbo build "$@"
# =============================== #
# LOCAL DEV COMMANDS #
# =============================== #
# Run dev script. Runs turbo dev if not in a specific project directory.
[group('2. local dev')]
[positional-arguments]
[no-cd]
dev *args:
bun runx dev "$@"
# Run Workers in preview mode (if available)
[group('2. local dev')]
[no-cd]
preview:
bun run preview
# Deploy Workers
[group('2. local dev')]
[positional-arguments]
[no-cd]
deploy *args:
bun turbo deploy "$@"
# Apply D1 migrations (every worker with a `migrate` script). Defaults to --remote; pass `-- --local`
# for the dev db. Scope with -F, e.g. `just migrate -F rooms`.
[group('2. local dev')]
[positional-arguments]
[no-cd]
migrate *args:
bun turbo migrate "$@"
# =============================== #
# GENERATOR COMMANDS #
# =============================== #
[group('3. generator')]
[positional-arguments]
gen *args:
bun turbo gen "$@"
[group('3. generator')]
[positional-arguments]
new-package *args:
bun turbo gen new-package "$@"
# =============================== #
# UTILITY COMMANDS #
# =============================== #
# CLI in packages/tools for updating deps, pnpm, etc.
[group('4. utility')]
[positional-arguments]
update *args:
bun runx update "$@"
# CLI in packages/tools for running commands in the repo.
[group('4. utility')]
[positional-arguments]
runx *args:
bun runx "$@"
# Admin account tools (set-password, clear-password, grant-developer, grant-plus, lookup).
# Run `just admin --help` for usage and examples. See CLI.md.
[group('4. utility')]
[positional-arguments]
[no-cd]
admin *args:
bun runx admin "$@"
# Credit every Rec Room Plus subscriber's RecCenterTokens balance by <amount>. Defaults to
# --local; pass --remote for production, --dry-run to only list who'd be credited. See CLI.md.
[group('4. utility')]
[positional-arguments]
[no-cd]
reload-plus *args:
bun runx admin reload-plus "$@"
# Load the first-party custom avatar items (apps/econ/static/db/2025-1-cai.json, then
# studio87-extras.json, by default) into the custom_avatar_item table. Merges: existing ids are replaced, nothing is deleted.
# Defaults to --local; pass --remote for production, --dry-run to only validate. Prices come
# from the storefront dump via apps/api/scripts/price-custom-avatar-items.ts. See CLI.md.
[group('4. utility')]
[positional-arguments]
[no-cd]
cai-load *args:
bun runx admin cai-load "$@"
# Merges by default; --replace drops rows the file no longer lists. Defaults to --local; pass
# --remote for production, --dry-run to only validate. Run it whenever sf3-2025.json changes.
# Reload the item catalog (econ `catalog` table) from apps/econ/static/storefronts/sf3-2025.json
[group('4. utility')]
[positional-arguments]
[no-cd]
catalog-load *args:
bun runx catalog load "$@"