lib_sxng_themes.sh 640 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env bash
  2. # SPDX-License-Identifier: AGPL-3.0-or-later
  3. themes.help(){
  4. cat <<EOF
  5. themes.:
  6. all : test & build all themes
  7. test : test all themes
  8. fix : fix JS & CSS (LESS)
  9. EOF
  10. }
  11. themes.all() {
  12. ( set -e
  13. build_msg SIMPLE "theme: run build"
  14. vite.simple.build
  15. )
  16. dump_return $?
  17. }
  18. themes.fix() {
  19. ( set -e
  20. build_msg SIMPLE "theme: fix"
  21. vite.simple.fix
  22. )
  23. dump_return $?
  24. }
  25. themes.test() {
  26. ( set -e
  27. # we run a build to test (in CI)
  28. build_msg SIMPLE "theme: run build (to test)"
  29. vite.simple.build
  30. )
  31. dump_return $?
  32. }