summaryrefslogtreecommitdiff
path: root/manage
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-12-14 07:50:53 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-12-14 07:50:53 +0100
commitf287787c44956a6584f78fdd9d6bf423384d1643 (patch)
tree15bcc625b749b3434576837414c66e7cab9d31b8 /manage
parent34f5e9c7a305d20bbebe907d3d1032ca04259537 (diff)
[simple theme] activate - SearXNG JavaScript Style Guide
Add the 'SearXNG JavaScript Style Guide' as one quality gate in the build chain of the simple theme:: make themes.simple make themes.simple.test In the github CI the `themes.all` target enforce a `themes.simple`. BTW: Remove 'jshint' left overs from 0ee316f3d Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'manage')
-rwxr-xr-xmanage11
1 files changed, 11 insertions, 0 deletions
diff --git a/manage b/manage
index 1236cb31..736a479b 100755
--- a/manage
+++ b/manage
@@ -714,6 +714,17 @@ themes.simple() {
dump_return $?
}
+themes.simple.test() {
+ build_msg TEST "theme: simple"
+ if ! nvm.min_node "${NODE_MINIMUM_VERSION}"; then
+ info_msg "install Node.js by NVM"
+ nvm.nodejs
+ fi
+ npm --prefix searx/static/themes/simple install
+ npm --prefix searx/static/themes/simple run test
+ dump_return $?
+}
+
PYLINT_FILES=()
while IFS= read -r line; do
PYLINT_FILES+=("$line")