summaryrefslogtreecommitdiff
path: root/utils/lib_sxng_themes.sh
blob: 23faf0e4bbaa6789ed1e1a66e1c64e60aa754a5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/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 $?
}