-
-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathmise.toml
More file actions
111 lines (91 loc) · 2.7 KB
/
Copy pathmise.toml
File metadata and controls
111 lines (91 loc) · 2.7 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
min_version = "2026.6.12"
[settings]
experimental = true
[tools]
bun = "1"
node = "24.14.0"
deno = "2"
pnpm = "10.33.1"
"aqua:dahlia/hongdown" = "0.5.3"
"aqua:nushell/nushell" = "0.114.0"
"github:dahlia/sacho" = "0.3.2"
[deps.deno]
auto = true
[deps.pnpm]
auto = true
[hooks]
postinstall = [
"mise deps",
"sacho init --no-interactive",
{ task = "hooks:install" },
]
[tasks.check]
description = "Check formatting, linting, types, and the changelog"
depends = ["check-versions"]
run = "deno check && deno lint && deno fmt --check && hongdown --check && sacho check && mise fmt --check"
[tasks.check-versions]
description = "Check that all subpackages have matching versions"
run = "deno task check:versions"
[tasks.update-versions]
description = "Update all subpackage versions to match"
run = "deno task update-versions"
[tasks.fmt]
description = "Format code, documentation, and the changelog"
run = "deno fmt && hongdown --write && sacho fmt && mise fmt"
[tasks."test:deno"]
description = "Run the test suite using Deno"
run = "deno task test"
[tasks."test:node"]
description = "Run the test suite using Node.js"
run = "deno task test:node"
[tasks."test:bun"]
description = "Run the test suite using Bun"
run = "deno task test:bun"
[tasks.test]
description = "Run the test suite across all environments"
depends = ["check", "test:*"]
[tasks.coverage]
description = "Run tests with coverage and generate HTML report"
run = "deno task coverage"
[tasks.build]
description = "Build all packages for npm publishing"
run = "deno task build"
[tasks.publish]
description = "Publish packages to JSR"
run = "deno task publish"
[tasks.bump-version]
description = "Bump the version of all packages in the monorepo"
usage = """
arg "<version>" help="New version (e.g., 1.2.3, major, minor, patch)"
"""
shell = "nu -c"
run = """
sacho next $env.usage_version
mise run update-versions $env.usage_version
mise run fmt
"""
[tasks."hooks:install"]
description = "Install git hooks"
shell = "nu -c"
run = """
mise generate git-pre-commit --write --task=hooks:pre-commit
mise generate git-pre-commit --write --task=hooks:pre-push --hook=pre-push
'#!/bin/sh
sacho hook-commit-msg "$1"' | save --force .git/hooks/commit-msg
'#!/bin/sh
if test "$1" = prepared; then
sacho_state=$(git rev-parse --git-path sacho-commit-state) || exit $?
if test -f "$sacho_state"; then
sacho hook-reference-transaction "$1"
fi
fi' | save --force .git/hooks/reference-transaction
if $nu.os-info.name != 'windows' {
chmod +x .git/hooks/commit-msg .git/hooks/reference-transaction
}
"""
[tasks."hooks:pre-commit"]
description = "Run pre-commit checks"
depends = ["check"]
[tasks."hooks:pre-push"]
description = "Run pre-push checks"
depends = ["check", "test:deno"]