-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (38 loc) · 1.24 KB
/
Makefile
File metadata and controls
54 lines (38 loc) · 1.24 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
49
50
51
52
53
54
SHELL := /bin/bash
-include $(shell curl -sSL -o .build-harness "https://cloudposse.tools/build-harness"; echo .build-harness)
.DEFAULT_GOAL := all
all: real-clean build
@exit 0
deps:
npm install
.PHONY: init build
render:
./scripts/render-docs-for-components.sh
./scripts/render-docs-for-modules.sh
./scripts/render-docs-for-github-actions.sh
docker/build:
docker build . -t cloudposse/docs
docker build scripts -t cloudposse/docs:scripts
docker/render: containers
docker run --rm -v -it $(PWD):/app -w /app cloudposse/docs:scripts scripts/render-docs-for-components.sh
docker run --rm -v -it $(PWD):/app -w /app -e PUBLIC_REPO_ACCESS_TOKEN="$$(gh auth token)" cloudposse/docs:scripts scripts/render-docs-for-modules.sh
docker run --rm -v -it $(PWD):/app -w /app -e PUBLIC_REPO_ACCESS_TOKEN="$$(gh auth token)" cloudposse/docs:scripts scripts/render-docs-for-github-actions.sh
build-library: containers
docker run --rm -v $(PWD):/app -w /app cloudposse/docs npm run build
build: deps
npm run build
clean::
npm run clear
build-production: build
@exit 0
up: start
start:
npm start
start-production:
npm run serve
real-clean:
rm -fr .docusaurus && \
rm -fr build && \
rm -fr node_modules
lint:
npx docusaurus-mdx-checker --cwd docs