forked from kyma-project/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
70 lines (57 loc) · 1.73 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.PHONY: netlify-deploy-preview \
netlify-production \
netlify-docs-preview \
netlify-community-preview \
clear-cache \
resolve \
validate \
test \
prepare-content-website \
prepare-content-docs-preview \
prepare-content-community-preview \
build-prod \
build-website-preview \
build-docs-preview \
build-community-preview \
prepare-functions
netlify-production: clear-cache prepare-content-website build-prod prepare-functions
netlify-deploy-preview: clear-cache prepare-content-website validate test build-website-preview prepare-functions
netlify-docs-preview: clear-cache resolve prepare-content-docs-preview build-docs-preview
netlify-community-preview: clear-cache resolve prepare-content-community-preview build-community-preview
clear-cache:
make -C "./tools/content-loader" clear-cache
resolve:
npm install
validate:
npm run conflict-check
npm run lint-check
npm run type-check
npm run markdownlint
test:
npm run test
prepare-content-website:
./scripts/prepare-content.sh --prepare-for "website"
prepare-content-docs-preview:
ifdef APP_PREVIEW_SOURCE_DIR
./scripts/prepare-content.sh --prepare-for "docs-preview" --docs-src-dir $(APP_PREVIEW_SOURCE_DIR) --docs-branches "preview"
else
@echo "APP_PREVIEW_SOURCE_DIR is a required env!"
exit 1
endif
prepare-content-community-preview:
ifdef APP_COMMUNITY_SOURCE_DIR
./scripts/prepare-content.sh --prepare-for "community-preview" --community-src-dir $(APP_COMMUNITY_SOURCE_DIR)
else
@echo "APP_COMMUNITY_SOURCE_DIR is a required env!"
exit 1
endif
build-prod:
npm run build:prod
build-website-preview:
npm run build:preview
build-docs-preview:
npm run build:preview:docs
build-community-preview:
npm run build:preview:community
prepare-functions:
npm run build:functions