forked from faremeter/faremeter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (34 loc) · 1.13 KB
/
Makefile
File metadata and controls
48 lines (34 loc) · 1.13 KB
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
43
44
45
46
47
48
export PATH := $(PWD)/bin:$(PATH)
export INSIDE_STAGING_DIR := false
all: lint build doc test
pre-build: FORCE
rm -f .eslintcache .build-finished
build: pre-build packages/types packages/info packages/wallet-solana packages/wallet-evm $(wildcard packages/*) scripts apps/facilitator
touch .build-finished
lint:
pnpm prettier -c .
pnpm eslint --cache .
test:
@[[ -d .tap/plugins ]] || pnpm tap build
pnpm tap --disable-coverage
format:
pnpm prettier -w .
doc: FORCE
for pkg in packages/*; do cd $$pkg && pnpm tsdoc --src=src/index.ts --dest=README.md --types --noemoji && cd ../..; done
pnpm prettier -w packages/*/README.md
packages/%: FORCE
cd $@ && rm -rf dist && pnpm tsc && pnpm tsc-esm-fix
apps/%: FORCE
cd $@ && rm -rf dist && pnpm tsc
scripts: FORCE
cd scripts && rm -rf dist && pnpm tsc
cd scripts/nestjs-example && rm -rf dist && pnpm tsc -p nestjs-example/tsconfig.json
clean:
rm -f .env-checked .eslintcache .build-finished
find . -type d -name "dist" -a ! -path '*/node_modules/*' | xargs rm -rf
.env-checked: bin/check-env
./bin/check-env
touch .env-checked
include .env-checked
.PHONY: all lint test
FORCE: