forked from sidpalas/deputies
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
78 lines (59 loc) · 1.71 KB
/
Copy pathmise.toml
File metadata and controls
78 lines (59 loc) · 1.71 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
experimental_monorepo_root = true
[tools]
fzf = "0.66"
node = "24"
"npm:pnpm" = "11.5.2"
[tasks.install]
description = "Install project dependencies"
run = "pnpm install"
[tasks.format]
description = "Format the workspace"
run = "pnpm format"
[tasks."format:check"]
description = "Check workspace formatting"
run = "pnpm format:check"
[tasks.lint]
description = "Lint the workspace"
run = "pnpm lint"
[tasks.test]
description = "Run package unit tests"
run = "pnpm -r --if-present test"
[tasks.typecheck]
description = "Run package TypeScript checks"
run = "pnpm -r --if-present typecheck"
[tasks.check]
description = "Run formatting, linting, typechecks, and unit tests"
depends = ["format:check", "lint", "typecheck", "test"]
[tasks."ci:smoke:local"]
description = "Run smoke GitHub Actions workflow locally with Agent CI"
run = "AI_AGENT=1 pnpm dlx @redwoodjs/agent-ci run --workflow .github/workflows/smoke-tests.yml --pause-on-failure --jobs 1"
[tasks.mise-fzf]
description = "[Mise] Pick one task; print it and copy the run command"
run = '''
#!/usr/bin/env bash
set -euo pipefail
LIST_CMD=(mise task ls --all)
SEL="$("${LIST_CMD[@]}" \
| fzf --no-multi --height=90% --border --prompt='task> ' \
--select-1 --exit-0)"
[ -n "${SEL:-}" ] || exit 0
# First token only = task name
TASK="$(awk '{print $1; exit}' <<< "$SEL")"
# Build the runnable command
CMD=$(printf 'mise run %q' "$TASK")
echo "$CMD"
# Print the task's usage/help
echo ""
mise run "$TASK" --help 2>/dev/null || true
copy_to_clipboard() {
if command -v pbcopy >/dev/null 2>&1; then
pbcopy
# TODO: add support for linux clipboard tools
else
return 1
fi
}
if copy_to_clipboard <<< "$CMD"; then
echo "(^ copied to clipboard)"
fi
'''