forked from 0xFableOrg/0xFable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (31 loc) · 863 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
build:
pnpm wagmi generate
pnpm next build
.PHONY: build
# Serves webapp in production environment (after building)
serve:
pnpm next start
.PHONY: serve
# Serves webapp in dev environment (building not required)
dev:
pnpm next dev
.PHONY: dev
# Serves webapp in dev environment (building not required), do not generate proofs, sends bogus
# proofs instead.
dev-noproofs:
NO_PROOFS=1 pnpm next dev
.PHONY: dev-noproofs
# Runs linter (use make check instead which also checks typescript typing).
lint:
pnpm next lint --max-warnings 0
.PHONY: lint
# Runs code quality checks.
check:
make lint
pnpm prettier --check "src/**/*.{js,jsx,ts,tsx,json,css}"
.PHONY: check
# Runs prettier formatting across webapp files with specified file extensions.
format:
pnpm eslint . --fix
pnpm prettier --write "**/*.{js,jsx,ts,tsx,json,css,cjs,mjs}"
.PHONY: format