mirror of
https://github.com/vacp2p/foundry-template.git
synced 2025-02-20 02:58:22 +00:00
chore(package.json): update "gas-report" script to use "forge snapshot" command and remove double testing in adorno command. (#33)
This commit is contained in:
parent
641258d130
commit
68334db0be
@ -28,8 +28,8 @@
|
||||
"lint:sol": "forge fmt --check && pnpm solhint {script,src,test,certora}/**/*.sol",
|
||||
"prettier:check": "prettier --check **/*.{json,md,yml} --ignore-path=.prettierignore",
|
||||
"prettier:write": "prettier --write **/*.{json,md,yml} --ignore-path=.prettierignore",
|
||||
"gas-report": "forge test --gas-report 2>&1 | (tee /dev/tty | awk '/Suite result:/ {found=1; buffer=\"\"; next} found && !/Ran/ {buffer=buffer $0 ORS} /Ran/ {found=0} END {printf \"%s\", buffer}' > .gas-report)",
|
||||
"gas-report": "forge snapshot --gas-report 2>&1 | (tee /dev/tty | awk '/Suite result:/ {found=1; buffer=\"\"; next} found && !/Ran/ {buffer=buffer $0 ORS} /Ran/ {found=0} END {printf \"%s\", buffer}' > .gas-report)",
|
||||
"release": "commit-and-tag-version",
|
||||
"adorno": "pnpm prettier:write && forge fmt && forge snapshot && pnpm gas-report"
|
||||
"adorno": "pnpm prettier:write && forge fmt && pnpm gas-report"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user