blob: df1da87f5cf6cce973719d70b78c8f27c7ae94a3 (
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
59
60
61
62
63
64
65
66
67
|
#!/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.simple.analyze() {
(
set -e
build_msg SIMPLE "theme: run analyze (simple)"
vite.simple.analyze
)
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 $?
}
|