Files
searxng/utils/lib_sxng_themes.sh
T

68 lines
1.1 KiB
Bash
Raw Normal View History

#!/usr/bin/env bash
# SPDX-License-Identifier: AGPL-3.0-or-later
themes.help() {
cat <<EOF
themes.:
2025-01-15 17:26:45 +01:00
all : test & build all themes
2025-06-28 09:55:15 +02:00
simple : test & build simple theme
lint : lint JS & CSS (LESS) files
fix : fix JS & CSS (LESS) files
2025-01-15 17:26:45 +01:00
test : test all themes
EOF
}
themes.all() {
(
set -e
2025-06-28 09:55:15 +02:00
vite.simple.build
)
dump_return $?
}
themes.simple() {
(
set -e
2025-06-28 09:55:15 +02:00
build_msg SIMPLE "theme: run build (simple)"
vite.simple.build
)
dump_return $?
}
2025-07-20 12:28:11 +02:00
themes.simple.analyze() {
(
set -e
build_msg SIMPLE "theme: run analyze (simple)"
vite.simple.analyze
)
dump_return $?
}
2025-01-15 17:26:45 +01:00
themes.fix() {
(
set -e
2025-06-28 09:55:15 +02:00
build_msg SIMPLE "theme: fix (all themes)"
vite.simple.fix
2025-01-15 17:26:45 +01:00
)
dump_return $?
}
2025-06-28 09:55:15 +02:00
themes.lint() {
(
set -e
2025-06-28 09:55:15 +02:00
build_msg SIMPLE "theme: lint (all themes)"
vite.simple.lint
)
dump_return $?
}
2025-01-15 17:26:45 +01:00
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 $?
}