-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
31 lines (25 loc) · 1003 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
.PHONY: doc gen-schema all cleanup check-deps clean_build
SHELL := /bin/bash
doc:
rm -rf docs
rm -rf book/docs
# Used for building all files
npx typedoc --options typedoc.json
python postprocess_docs.py
cp -r docs book/docs
check-deps:
@for package in $$(ls packages/ | grep -v 'staking-cli'); do \
npm exec --workspace=packages/$$package -- npx npm-check -i '@chorus-one/*' ; \
done
gen-schema:
curl -s "https://raw.githubusercontent.com/cosmos/chain-registry/master/chain.schema.json" > chain.schema.json
curl -s "https://raw.githubusercontent.com/cosmos/chain-registry/master/assetlist.schema.json" > assetlist.schema.json
npx --package=json-schema-to-typescript json2ts chain.schema.json > packages/cosmos/src/registry/chain.d.ts
npx --package=json-schema-to-typescript json2ts assetlist.schema.json > packages/cosmos/src/registry/assetlist.d.ts
cleanup:
npm run cleanup
clean_build:
rm -rf packages/*/dist
rm -rf packages/*/.turbo
rm -rf .turbo
all: doc gen-schema cleanup