lib_sxng_themes.sh 1003 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. simple : test & build simple theme
  8. lint : lint JS & CSS (LESS) files
  9. fix : fix JS & CSS (LESS) files
  10. test : test all themes
  11. EOF
  12. }
  13. themes.all() {
  14. (
  15. set -e
  16. vite.simple.build
  17. )
  18. dump_return $?
  19. }
  20. themes.simple() {
  21. (
  22. set -e
  23. build_msg SIMPLE "theme: run build (simple)"
  24. vite.simple.build
  25. )
  26. dump_return $?
  27. }
  28. themes.fix() {
  29. (
  30. set -e
  31. build_msg SIMPLE "theme: fix (all themes)"
  32. vite.simple.fix
  33. )
  34. dump_return $?
  35. }
  36. themes.lint() {
  37. (
  38. set -e
  39. build_msg SIMPLE "theme: lint (all themes)"
  40. vite.simple.lint
  41. )
  42. dump_return $?
  43. }
  44. themes.test() {
  45. (
  46. set -e
  47. # we run a build to test (in CI)
  48. build_msg SIMPLE "theme: run build (to test)"
  49. vite.simple.build
  50. )
  51. dump_return $?
  52. }