blob: c707db88ce086390eeb1acce24c0a632f018de86 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#!/usr/bin/env bash
# SPDX-License-Identifier: AGPL-3.0-or-later
themes.help() {
cat <<EOF
themes.:
all : test & build all themes
simple : test & build simple theme
lint : lint JS & CSS (LESS) files
fix : fix JS & CSS (LESS) files
test : test all themes
EOF
}
themes.all() {
(
set -e
vite.simple.build
)
dump_return $?
}
themes.simple() {
(
set -e
build_msg SIMPLE "theme: run build (simple)"
vite.simple.build
)
dump_return $?
}
themes.fix() {
(
set -e
build_msg SIMPLE "theme: fix (all themes)"
vite.simple.fix
)
dump_return $?
}
themes.lint() {
(
set -e
build_msg SIMPLE "theme: lint (all themes)"
vite.simple.lint
)
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 $?
}
|