-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathJustfile
More file actions
114 lines (91 loc) · 2.2 KB
/
Justfile
File metadata and controls
114 lines (91 loc) · 2.2 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
# 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
alias dagx := daggerx
# =============================== #
# 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')]
[no-cd]
check *flags:
bun runx check {{flags}}
# Fix issues with deps, lint, format, etc.
[group('1. dev')]
[no-cd]
fix *flags:
bun runx fix {{flags}}
[group('1. dev')]
[no-cd]
test *flags:
bun vitest {{flags}}
[group('1. dev')]
[no-cd]
build *flags:
bun turbo build {{flags}}
[group('1. dev')]
dagger-test:
./.dagger/bin/daggerx test
# Helpers for managing dagger modules
[group('1. dev')]
[no-cd]
daggerx *flags:
@bun runx daggerx {{flags}}
# =============================== #
# LOCAL DEV COMMANDS #
# =============================== #
# Run dev script. Runs turbo dev if not in a specific project directory.
[group('2. local dev')]
[no-cd]
dev *flags:
bun runx dev {{flags}}
# Run Workers in preview mode (if available)
[group('2. local dev')]
[no-cd]
preview:
bun run preview
# Deploy Workers
[group('2. local dev')]
[no-cd]
deploy *flags:
bun turbo deploy {{flags}}
# =============================== #
# GENERATOR COMMANDS #
# =============================== #
# Create changeset
[group('3. generator')]
cs:
bun run-changeset-new
[group('3. generator')]
gen *flags:
bun turbo gen {{flags}}
[group('3. generator')]
new-package *flags:
bun turbo gen new-package {{flags}}
# =============================== #
# UTILITY COMMANDS #
# =============================== #
# CLI in packages/tools for updating deps, pnpm, etc.
[group('4. utility')]
update *flags:
bun runx update {{flags}}
# CLI in packages/tools for running commands in the repo.
[group('4. utility')]
runx *flags:
bun runx {{flags}}
# Generate turbo.json
[group('4. Maintenance')]
generate-turbo-config:
bun turbo-config generate