-
Notifications
You must be signed in to change notification settings - Fork 401
/
Makefile
42 lines (34 loc) · 1.17 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
.PHONY: dist
dist: plugin-data
rm -rf ./dist
hugo -s site --destination ../dist/html
.PHONY: plugin-data
plugin-data: backend-plugin-data frontend-plugin-data
.PHONY: backend-plugin-data
backend-plugin-data:
mkdir -p site/data
go run ./cmd/plugin-godocs > site/data/PluginGoDocs.json
go run ./cmd/plugin-manifest-docs > site/data/PluginManifestDocs.json
.PHONY: frontend-plugin-data
frontend-plugin-data:
rm -rf scripts/mattermost-webapp || true
cd scripts && npm install
mkdir -p site/data
node scripts/plugin-jsdocs.js > site/data/PluginJSDocs.json
.PHONY: run
run:
hugo server --buildDrafts --disableFastRender -F -s site
.PHONY: build
build:
rm -rf ./dist
hugo -s site --verbose --destination ../dist/html --printUnusedTemplates --printPathWarnings --gc
.PHONY: test
test:
npm install
npm run test-html
.PHONY: compass-icons
compass-icons:
mkdir -p site/static/css
mkdir -p site/static/font
curl --no-progress-meter -o site/static/css/compass-icons.css https://mattermost.github.io/compass-icons/css/compass-icons.css
curl --no-progress-meter -o "site/static/font/compass-icons.#1" "https://mattermost.github.io/compass-icons/font/compass-icons.{eot,woff2,woff,ttf,svg}"