-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
120 lines (102 loc) · 4.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
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
119
120
nonSdfFolder = "docs/sprite-non-sdf"
sdfFolder = "docs/sprite"
iconFolder = "assets/maki-icons"
.PHONY: help clean clean style build-voyager build-aerial sprite voyager aerial
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " build to build styles and sprites"
@echo " clean to clean build folder"
@echo " style to build style files"
@echo " build-voyager to build only voyager style"
@echo " build-aerial to build only aerial style"
@echo " build-dark to build only dark style"
@echo " build-positron to build only positron style"
@echo " sprite to build only sprite"
@echo " voyager to develop voyager style YAML"
@echo " aerial to develop aerial style YAML"
@echo " dark to develop dark style YAML"
@echo " positron to develop positron style YAML"
build: clean style sprite
clean:
@echo
@echo "------------------------------------------------------------------"
@echo "Cleaning build folder"
@echo "------------------------------------------------------------------"
rm -rf docs
style: build-voyager build-aerial build-dark build-positron build-blank
build-voyager:
@echo
@echo "------------------------------------------------------------------"
@echo "Building voyager style"
@echo "------------------------------------------------------------------"
mkdir -p docs
pnpm charites build assets/style.yml docs/style.json
build-aerial:
@echo
@echo "------------------------------------------------------------------"
@echo "Building aerial style"
@echo "------------------------------------------------------------------"
mkdir -p docs
pnpm charites build assets/aerialstyle.yml docs/aerialstyle.json
build-dark:
@echo
@echo "------------------------------------------------------------------"
@echo "Building dark style"
@echo "------------------------------------------------------------------"
mkdir -p docs
pnpm charites build assets/dark.yml docs/dark.json
build-positron:
@echo
@echo "------------------------------------------------------------------"
@echo "Building positron style"
@echo "------------------------------------------------------------------"
mkdir -p docs
pnpm charites build assets/positron.yml docs/positron.json
build-blank:
@echo
@echo "------------------------------------------------------------------"
@echo "Building blank style"
@echo "------------------------------------------------------------------"
mkdir -p docs
pnpm charites build assets/blank.yml docs/blank.json
sprite:
@echo
@echo "------------------------------------------------------------------"
@echo "Building sprites"
@echo "------------------------------------------------------------------"
rm -rf $(nonSdfFolder)
mkdir -p $(nonSdfFolder)
pnpm sprite-one $(nonSdfFolder)/sprite --icon $(iconFolder) --ratio=1 --ratio=2 --ratio=4
rm -rf $(sdfFolder)
mkdir -p $(sdfFolder)
pnpm sprite-one $(sdfFolder)/sprite --icon $(iconFolder) --ratio=1 --ratio=2 --ratio=4 --sdf
voyager:
@echo
@echo "------------------------------------------------------------------"
@echo "Launching a local server to edit Voyager style"
@echo "------------------------------------------------------------------"
pnpm charites serve assets/style.yml --sprite-input $(iconFolder) --sdf
aerial:
@echo
@echo "------------------------------------------------------------------"
@echo "Launching a local server to edit Aerial style"
@echo "------------------------------------------------------------------"
pnpm charites serve assets/aerialstyle.yml --sprite-input $(iconFolder) --sdf
dark:
@echo
@echo "------------------------------------------------------------------"
@echo "Launching a local server to edit Dark style"
@echo "------------------------------------------------------------------"
pnpm charites serve assets/dark.yml --sprite-input $(iconFolder) --sdf
positron:
@echo
@echo "------------------------------------------------------------------"
@echo "Launching a local server to edit Positron style"
@echo "------------------------------------------------------------------"
pnpm charites serve assets/positron.yml --sprite-input $(iconFolder) --sdf
blank:
@echo
@echo "------------------------------------------------------------------"
@echo "Launching a local server to edit Blank style"
@echo "------------------------------------------------------------------"
pnpm charites serve assets/blank.yml --sprite-input $(iconFolder) --sdf