generated from dgma/sol-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (24 loc) · 829 Bytes
/
Makefile
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
-include .env
.PHONY: all test clean install compile snapshot run
all: clean install test
# Clean the repo
clean :; forge clean
# Local installation
install :; npm i && npx husky install
# CI installation
install-ci :; touch .env; npm ci
# Update Dependencies
forge-update:; forge update
compile :; npx hardhat compile
test :; forge test -vvv; npx hardhat test
unit :; forge test -vvv --match-contract $(contract)
snapshot :; forge snapshot
format :; forge fmt src/; forge fmt test/
lint :; npx solhint src/**/*.sol
node :; npx hardhat node
network?=hardhat
task?=mine
deploy :; npx hardhat --network $(network) deploy-bundle
run :; npx hardhat --network $(network) $(task)
localdev :; rm local.deployment-lock.json; npx hardhat --network localhost deploy-bundle
-include ${FCT_PLUGIN_PATH}/makefile-external