-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathJustfile
More file actions
107 lines (88 loc) · 2.08 KB
/
Justfile
File metadata and controls
107 lines (88 loc) · 2.08 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
# 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 "$@"
# =============================== #
# GENERATOR COMMANDS #
# =============================== #
# Create changeset
[group('3. generator')]
cs:
bun run-changeset-new
[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 "$@"