-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
119 lines (101 loc) · 2.97 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
TAG = $$(git describe --tags --abbrev=0)
.PHONY: init
init:
git submodule update --init --recursive
npm install yarn -g
.PHONY: audit_fix
audit_fix:
yarn run yarn-audit-fix
.PHONY: release_prepatch
release_prepatch:
git stash
$(eval NEW_TAG := $(shell npm version prepatch))
git tag -d $(TAG)
cd katex && npm version prepatch
git reset HEAD^ && git add . && git commit -m $(NEW_TAG) && git tag $(NEW_TAG)
.PHONY: release_preminor
release_preminor:
git stash
$(eval NEW_TAG := $(shell npm version preminor))
git tag -d $(TAG)
cd katex && npm version preminor
git reset HEAD^ && git add . && git commit -m $(NEW_TAG) && git tag $(NEW_TAG)
.PHONY: release_prerelease
release_prerelease:
git stash
$(eval NEW_TAG := $(shell npm version prerelease))
git tag -d $(TAG)
cd katex && npm version prerelease
git reset HEAD^ && git add . && git commit -m $(NEW_TAG) && git tag $(NEW_TAG)
.PHONY: release_patch
release_patch:
git stash
$(eval NEW_TAG := $(shell npm version patch))
git tag -d $(TAG)
cd katex && npm version patch
git reset HEAD^ && git add . && git commit -m $(NEW_TAG) && git tag $(NEW_TAG)
.PHONY: release_minor
release_minor:
git stash
$(eval NEW_TAG := $(shell npm version minor))
git tag -d $(TAG)
cd katex && npm version minor
git reset HEAD^ && git add . && git commit -m $(NEW_TAG) && git tag $(NEW_TAG)
.PHONY: release_major
release_major:
git stash
$(eval NEW_TAG := $(shell npm version major))
git tag -d $(TAG)
cd katex && npm version major
git reset HEAD^ && git add . && git commit -m $(NEW_TAG) && git tag $(NEW_TAG)
.PHONY: analyze
analyze:
yarn && yarn run analyze
.PHONY: analyze_katex
analyze_katex:
cd katex && yarn && yarn run analyze
.PHONY: build
build: build_js build_css build_js_katex build_css_katex
.PHONY: build_js
build_js:
yarn && yarn run build
.PHONY: build_js_katex
build_js_katex:
mv src/index.tsx src/index.tsx.tmp
cd katex && yarn && yarn run build
mv src/index.tsx.tmp src/index.tsx
.PHONY: build_css
build_css:
yarn
yarn run build-default-css
yarn run build-dark-css
yarn run build-darkbronco-css
yarn run build-dorkula-css
yarn run build-chesterish-css
yarn run build-grade3-css
yarn run build-gruvboxd-css
yarn run build-gruvboxl-css
yarn run build-monokai-css
yarn run build-oceans16-css
yarn run build-onedork-css
yarn run build-solarizedd-css
yarn run build-solarizedl-css
.PHONY: build_css_katex
build_css_katex:
cd katex && yarn
cd katex && yarn run build-default-css
cd katex && yarn run build-dark-css
cd katex && yarn run build-darkbronco-css
cd katex && yarn run build-dorkula-css
cd katex && yarn run build-chesterish-css
cd katex && yarn run build-grade3-css
cd katex && yarn run build-gruvboxd-css
cd katex && yarn run build-gruvboxl-css
cd katex && yarn run build-monokai-css
cd katex && yarn run build-oceans16-css
cd katex && yarn run build-onedork-css
cd katex && yarn run build-solarizedd-css
cd katex && yarn run build-solarizedl-css
.PHONY: storybook
storybook:
yarn && yarn run storybook