mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Add theme required fixes
This commit is contained in:
parent
0058a112cc
commit
281d0aac91
40 changed files with 998 additions and 886 deletions
|
|
@ -44,6 +44,7 @@ node.clean() {
|
|||
build_msg CLEAN "themes -- locally installed npm dependencies"
|
||||
( set -e
|
||||
npm --prefix searx/static/themes/simple run clean
|
||||
npm --prefix searx/static/themes/kvanDark run clean
|
||||
)
|
||||
build_msg CLEAN "locally installed developer and CI tools"
|
||||
( set -e
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ themes.:
|
|||
kvanDark.:
|
||||
build : build kvanDark theme
|
||||
test : test kvanDark theme
|
||||
stylelint : stylelint
|
||||
EOF
|
||||
}
|
||||
|
||||
|
|
@ -33,6 +34,9 @@ themes.live() {
|
|||
case "${LIVE_THEME}" in
|
||||
simple)
|
||||
theme="searx/static/themes/${LIVE_THEME}"
|
||||
;;
|
||||
kvanDark)
|
||||
theme="searx/static/themes/${LIVE_THEME}"
|
||||
;;
|
||||
'')
|
||||
die_caller 42 "missing theme argument"
|
||||
|
|
@ -77,9 +81,14 @@ themes.kvanDark() {
|
|||
}
|
||||
|
||||
themes.kvanDark.test() {
|
||||
build_msg TEST "theme: cystom"
|
||||
build_msg TEST "theme: kvanDark"
|
||||
nodejs.ensure
|
||||
npm --prefix searx/static/themes/kvanDark install
|
||||
npm --prefix searx/static/themes/kvanDark run test
|
||||
dump_return $?
|
||||
}
|
||||
|
||||
themes.kvanDark.stylelint() {
|
||||
npm --prefix searx/static/themes/kvanDark run stylelint
|
||||
dump_return $?
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue