2023-08-06 14:39:00 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
|
|
|
themes.help(){
|
|
|
|
cat <<EOF
|
|
|
|
themes.:
|
2025-01-15 16:26:45 +00:00
|
|
|
all : test & build all themes
|
|
|
|
test : test all themes
|
|
|
|
fix : fix JS & CSS (LESS)
|
2023-08-06 14:39:00 +00:00
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
themes.all() {
|
|
|
|
( set -e
|
2025-02-05 15:49:06 +00:00
|
|
|
build_msg SIMPLE "theme: run build"
|
|
|
|
vite.simple.build
|
2023-08-06 14:39:00 +00:00
|
|
|
)
|
|
|
|
dump_return $?
|
|
|
|
}
|
|
|
|
|
2025-01-15 16:26:45 +00:00
|
|
|
themes.fix() {
|
|
|
|
( set -e
|
2025-02-05 15:49:06 +00:00
|
|
|
build_msg SIMPLE "theme: fix"
|
|
|
|
vite.simple.fix
|
2025-01-15 16:26:45 +00:00
|
|
|
)
|
|
|
|
dump_return $?
|
|
|
|
}
|
|
|
|
|
|
|
|
themes.test() {
|
|
|
|
( set -e
|
2025-02-05 15:49:06 +00:00
|
|
|
# we run a build to test (in CI)
|
|
|
|
build_msg SIMPLE "theme: run build (to test)"
|
|
|
|
vite.simple.build
|
2023-08-06 14:39:00 +00:00
|
|
|
)
|
|
|
|
dump_return $?
|
|
|
|
}
|