diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2025-01-14 15:08:05 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-01-14 15:22:23 +0100 |
| commit | e4f8f0483f418da953724ddcbc3d67cfe6373ea9 (patch) | |
| tree | aff1f5d386e706a86b5fe224a09d177057b7d27f /utils/lib_sxng_node.sh | |
| parent | 5a1a43ef74e29e6a4b41ee29cb0788d6bab606ce (diff) | |
[mod] slightly improve `make node.clean themes.all`
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/lib_sxng_node.sh')
| -rwxr-xr-x | utils/lib_sxng_node.sh | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/utils/lib_sxng_node.sh b/utils/lib_sxng_node.sh index eac5bb16b..0845723e0 100755 --- a/utils/lib_sxng_node.sh +++ b/utils/lib_sxng_node.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash # SPDX-License-Identifier: AGPL-3.0-or-later +declare _Blue +declare _creset + export NODE_MINIMUM_VERSION="16.13.0" node.help(){ @@ -22,7 +25,7 @@ nodejs.ensure() { node.env() { nodejs.ensure ( set -e - build_msg INSTALL "./searx/static/themes/simple/package.json" + build_msg INSTALL "[npm] ./searx/static/themes/simple/package.json" npm --prefix searx/static/themes/simple install ) dump_return $? @@ -30,7 +33,7 @@ node.env() { node.env.dev() { nodejs.ensure - build_msg INSTALL "./package.json: developer and CI tools" + build_msg INSTALL "[npm] ./package.json: developer and CI tools" npm install } @@ -41,11 +44,19 @@ node.clean() { fi build_msg CLEAN "themes -- locally installed npm dependencies" ( set -e - npm --prefix searx/static/themes/simple run clean + npm --prefix searx/static/themes/simple run clean \ + | prefix_stdout "${_Blue}CLEAN ${_creset} " + if [ "${PIPESTATUS[0]}" -ne "0" ]; then + return 1 + fi ) build_msg CLEAN "locally installed developer and CI tools" ( set -e - npm --prefix . run clean + npm --prefix . run clean \ + | prefix_stdout "${_Blue}CLEAN ${_creset} " + if [ "${PIPESTATUS[0]}" -ne "0" ]; then + return 1 + fi ) dump_return $? } |