searxng/utils/lib_sxng_themes.sh
Markus Heiser 2bf77f5d2d [web-client] integrate the migrated theme in the development workflows
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-02-28 12:27:41 +01:00

36 lines
640 B
Bash
Executable file

#!/usr/bin/env bash
# SPDX-License-Identifier: AGPL-3.0-or-later
themes.help(){
cat <<EOF
themes.:
all : test & build all themes
test : test all themes
fix : fix JS & CSS (LESS)
EOF
}
themes.all() {
( set -e
build_msg SIMPLE "theme: run build"
vite.simple.build
)
dump_return $?
}
themes.fix() {
( set -e
build_msg SIMPLE "theme: fix"
vite.simple.fix
)
dump_return $?
}
themes.test() {
( set -e
# we run a build to test (in CI)
build_msg SIMPLE "theme: run build (to test)"
vite.simple.build
)
dump_return $?
}