-
Notifications
You must be signed in to change notification settings - Fork 28
/
Makefile
85 lines (65 loc) · 1.43 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.PHONY: publish
publish: deps prep build
publish:
mkdir -p public
cp -r marketing/public/* public
mkdir -p public/docs
cp -r docs/public/* public/docs
rm -rf public/docs/social-cards
cp -r static/* public
.PHONY: build
build: make-generate-specs build-marketing build-docs
.PHONY: make-generate-specs
make-generate-specs:
make generate-specs
.PHONY: build-marketing
build-marketing:
cp package-marketing.json package.json
yarn install
yarn workspace marketing build --prefix-paths
.PHONY: build-docs
build-docs:
cp package-docs.json package.json
yarn install
yarn workspace docs build --prefix-paths
.PHONY: deps
deps:
yarn
.PHONY: prep
prep:
rm -rf public
rm -rf package.json
rm -rf yarn.lock
.PHONY: clean
clean: clean-public clean-marketing clean-docs
.PHONY: clean-public
clean-public:
rm -rf public
.PHONY: clean-marketing
clean-marketing:
cp package-marketing.json package.json
yarn workspace marketing clean
.PHONY: clean-docs
clean-docs:
cp package-docs.json package.json
yarn workspace docs clean
.PHONY: generate-specs
generate-specs:
node generate-specs.js
.PHONY: pre-preview
pre-preview:
cp -r public/* marketing/public
.PHONY: preview
preview:
./preview.sh
.PHONY: local
local: deps build
local:
git restore package.json
rm -rf yarn.lock
mkdir -p public
cp -r marketing/public/* public
mkdir -p public/docs
cp -r docs/public/* public/docs
rm -rf public/docs/social-cards
cp -r static/* public