forked from wechaty/docusaurus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (34 loc) · 763 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
42
43
44
45
# Makefile for wechaty.js.org
# Author: Huan LI <[email protected]> https://github.com/huan
.PHONY: all
all: build
.PHONY: install
install: jekyll-install npm-install docusaurus-install
.PHONY: jekyll-install
jekyll-install:
cd jekyll && sudo make install
.PHONY: docusaurus-install
docusaurus-install:
cd docusaurus && npm install
.PHONY: npm-install
install:
npm install
.PHONY: test
test:
npm run test
.PHONY: clean
clean:
rm -fr jekyll/_site/
rm -fr docusaurus/build/
rm -fr new-gh-pages/
.PHONY: build
build: jekyll-build docusaurus-build
.PHONY: jekyll-build
jekyll-build:
cd jekyll && make build
.PHONY: docusaurus-build
docusaurus-build:
cd docusaurus && npm run build
.PHONY: fit-image
fit-image:
./scripts/fit-image.sh jekyll/assets/