Skip to content

Commit

Permalink
feat: add justfile (#210)
Browse files Browse the repository at this point in the history
file with helper commands for testing and prepping PRs for the repo

ie run `just prep` to fix lint and generate updated snapshots
  • Loading branch information
marktoda authored Jun 12, 2023
1 parent 24f3b2e commit 125ee5a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
test: test-forge test-hardhat
prep: fix snapshots
snapshots: snapshots-forge snapshots-hardhat

test-forge: install-forge build-forge
forge test

test-hardhat: install-hardhat
yarn test

build-forge: install-forge
forge build

build-hardhat: install-hardhat
yarn build

snapshots-forge: install-forge
forge snapshot

snapshots-hardhat: install-hardhat
yarn snapshots

install-forge:
forge install

install-hardhat:
yarn install

fix:
forge fmt

0 comments on commit 125ee5a

Please sign in to comment.