From f287787c44956a6584f78fdd9d6bf423384d1643 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 14 Dec 2021 07:50:53 +0100 Subject: [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 --- manage | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'manage') diff --git a/manage b/manage index 1236cb31c..736a479b5 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") -- cgit v1.2.3