Skip to content
This repository was archived by the owner on Apr 3, 2026. It is now read-only.

Commit 7747624

Browse files
authored
script: add recipes that can iterate over all sub-repos (#8)
* script: add clean-all recipe * script: add full-check-all and full-write-all recipes build: add prefer_compact to foundry base config
1 parent 6173f3b commit 7747624

4 files changed

Lines changed: 35 additions & 23 deletions

File tree

airdrops/tests/.solhint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"rules": {
33
"avoid-low-level-calls": "off",
44
"contract-name-capwords": "off",
5+
"func-name-mixedcase": "off",
56
"gas-calldata-parameters": "off",
67
"gas-custom-errors": "off",
78
"gas-increment-by-one": "off",

bun.lock

Lines changed: 13 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

foundry.base.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
[fmt]
6969
bracket_spacing = true
70-
call_compact_args = false
70+
prefer_compact = "none"
7171
int_types = "long"
7272
line_length = 120
7373
multiline_func_header = "all"

justfile

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,23 @@ default:
2121
# Build a specific workspace
2222
@build workspace:
2323
forge build --root {{ workspace }}
24-
alias b := build
2524

2625
# Build all workspaces
2726
@build-all:
2827
just for-each "forge build --root"
2928

29+
# Clean build artifacts in all workspaces
30+
@clean-all:
31+
just for-each "forge clean --root"
32+
33+
# Run full check on all packages
34+
@full-check-all:
35+
just for-each-package full-check
36+
37+
# Run full check on all packages
38+
@full-write-all:
39+
just for-each-package full-write
40+
3041
# Check code with Forge formatter
3142
@fmt-check:
3243
just for-each "forge fmt --check --root"
@@ -82,3 +93,11 @@ for-each script:
8293
{{ script }} flow
8394
{{ script }} lockup
8495
{{ script }} utils
96+
97+
# Helper to run recipe in each package
98+
[private]
99+
for-each-package recipe:
100+
just airdrops/{{ recipe }}
101+
just flow/{{ recipe }}
102+
just lockup/{{ recipe }}
103+
just utils/{{ recipe }}

0 commit comments

Comments
 (0)