lib_sxng_themes.sh 972 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. ( set -e
  15. vite.simple.build
  16. )
  17. dump_return $?
  18. }
  19. themes.simple() {
  20. ( set -e
  21. build_msg SIMPLE "theme: run build (simple)"
  22. vite.simple.build
  23. )
  24. dump_return $?
  25. }
  26. themes.fix() {
  27. ( set -e
  28. build_msg SIMPLE "theme: fix (all themes)"
  29. vite.simple.fix
  30. )
  31. dump_return $?
  32. }
  33. themes.lint() {
  34. ( set -e
  35. build_msg SIMPLE "theme: lint (all themes)"
  36. vite.simple.lint
  37. )
  38. dump_return $?
  39. }
  40. themes.test() {
  41. ( set -e
  42. # we run a build to test (in CI)
  43. build_msg SIMPLE "theme: run build (to test)"
  44. vite.simple.build
  45. )
  46. dump_return $?
  47. }