-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 824 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 824 Bytes
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
MDPATH?=../massdriver
CLIPATH?=../mass
all: sync-cli-docs sync-gql-docs sync-authz-docs
.PHONY: sync-gql-docs
sync-gql-docs: # Generate GraphQL docs from remote schema
rm -rf ./docs/api/graphql/{operations,types,deprecated}
curl -s https://api.massdriver.cloud/graphql/v2/schema.graphql -o ./schema/schema.graphql
yarn gen:graphql
.PHONY: yarn
yarn:
docker run --rm -it -v ${PWD}:/app -w /app -p 3001:3000 node:20-alpine3.22 yarn install
.PHONY: build
build:
docker run --rm -it -v ${PWD}:/app -w /app -p 3001:3000 node:20-alpine3.22 yarn build
.PHONY: dev
dev:
docker run --rm -it -v ${PWD}:/app -w /app -p 3001:3000 node:20-alpine3.22 yarn start
.PHONY: sync-cli-docs
sync-cli-docs: # Generate CLI docs
rm -rf ./docs/reference/cli/commands/
rsync -a ${CLIPATH}/docs/generated/ ./docs/reference/cli/commands/