forked from sonicjhon1/sonicjhon1.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
59 lines (54 loc) · 1.01 KB
/
build.sh
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
#!/bin/bash
# Build commands
prebuild() {
# Install PNPM deps
pnpm install
}
build() {
# Launch build scripts
chmod +x build.sh
./build.sh
}
postBuild() {
# Copy all the content of "dist" and removes the "dist" and "node_modules" folder
cp -R dist/** .
rm -rfd node_modules
rm -rfd dist
}
# Initiate build process and deploy the page
prebuild
pnpm dlx turbo run build
# Build folders
build03UI() {
cd "03 Genshin-Redeem-Code-UI"
postBuild
}
build04UI() {
cd "04 NachoNekoNyaanime-UI"
postBuild
}
build05UI() {
cd "05 KanoColle-UI"
postBuild
}
build08UI() {
cd "08 GT-Reminder-UI"
postBuild
}
build09UI() {
cd "09 SchoolworkList-UI"
postBuild
}
build09MDXUI() {
cd "09 SchoolworkListMDX-UI"
postBuild
}
build10UI() {
cd "10 Portofolio-Astro-UI"
cp -R dist/** ..
rm -rfd node_modules
rm -rfd dist
}
build03UI & build04UI & build05UI & build08UI & build09UI & build09MDXUI & build10UI
rm -rfd ../node_modules
rm -rfd ../**/node_modules