-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (35 loc) · 995 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
## build-docs: Build the documentation to static files.
.PHONY: build-docs
build-docs:
@npm ci && npm run build
## serve-docs: Run docs server
.PHONY: serve-docs
serve-docs:
@npm run serve
## dev-docs: Run dev docs instance
.PHONY: dev-docs
dev-docs:
@npm run start
## latest-commits: Pulls the latest commits from upstream
.PHONY: latest-commits
latest-commits:
@bash ./scripts/sync-latest-commits.sh
## fresh: Clear the current base doc source files for upstream repos
# this is used for deployments to main to not hit divergent branch issues.
.PHONY: fresh
fresh:
rm -rf ./dsource-*/
## sync-docs: Grab the latest upstream documentation
# If using macos `brew install bash` to update to > v4
.PHONY: sync-docs
sync-docs:
@bash ./scripts/sync_cosmos-sdk.sh
@bash ./scripts/sync_ibc.sh
@bash ./scripts/sync_onboarding.sh
.PHONY: help
help: Makefile
@echo
@echo " Choose a command run in 'dev-portal'"
@echo
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
@echo