-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
38 lines (26 loc) · 1.1 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
.PHONY: all build dev clean
VUEPRESS_IMG=docker.onedata.org/vuepress-compiler:v5
all: build
lint:
docker run --rm -v `pwd`:/vuepress ${VUEPRESS_IMG} lint
check-language:
./check-language.py
format-all:
docker run --rm -v `pwd`:/vuepress ${VUEPRESS_IMG} format-all
build:
docker run --rm -v `pwd`:/vuepress ${VUEPRESS_IMG} build
./inject-release.sh
package:
cd rel/ && tar zcf ../onedata_documentation.tar.gz .
dev:
docker run --rm -p 8080:8080 -it -v `pwd`:/vuepress -v `pwd`/yarn-cache:/usr/local/share/.cache:delegated ${VUEPRESS_IMG} dev
submodules:
git submodule sync --recursive ${submodule}
git submodule update --init --recursive ${submodule}
preview: build
@bash -c "sleep 1; echo 'opening http://localhost:8080/future-documentation/intro.html ...'; xdg-open http://localhost:8080/future-documentation/intro.html" &
@cd rel/ && python -m `python -c 'import sys; print("http.server" if sys.version_info[:2] > (2,7) else "SimpleHTTPServer")'` 8080
clean:
@rm -rf node_modules yarn-cache rel/
codetag-tracker:
./bamboos/scripts/codetag-tracker.sh --branch=${BRANCH} --excluded-dirs=node_modules,rel