-
Notifications
You must be signed in to change notification settings - Fork 101
/
Makefile
41 lines (34 loc) · 1 KB
/
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
COMPOSEFLAGS=-d
ITESTS_L2_HOST=http://localhost:9545
build: build-ts
.PHONY: build
build-ts: submodules
if [ -n "$$NVM_DIR" ]; then \
. $$NVM_DIR/nvm.sh && nvm use; \
fi
yarn install
yarn build
.PHONY: build-ts
submodules:
# CI will checkout submodules on its own (and fails on these commands)
if [ -z "$$GITHUB_ENV" ]; then \
git submodule init; \
git submodule update; \
fi
.PHONY: submodules
# Remove the baseline-commit to generate a base reading & show all issues
#semgrep:
# $(eval DEV_REF := $(shell git rev-parse develop))
# SEMGREP_REPO_NAME=mantlenetworkio/mantle semgrep ci --baseline-commit=$(DEV_REF)
#.PHONY: semgrep
clean-node-modules:
rm -rf node_modules
rm -rf packages/**/node_modules
mod-tidy:
cd ./batch-submitter && go mod tidy && cd .. && \
cd ./bss-core && go mod tidy && cd .. && \
cd ./gas-oracle && go mod tidy && cd .. && \
cd ./l2geth && go mod tidy && cd .. && \
cd ./l2geth-exporter && go mod tidy && cd ..
cd ./mt-batcher && go mod tidy && cd ..
.PHONY: mod-tidy