#!/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(){ cat </dev/null; then build_msg CLEAN "npm is not installed / ignore npm dependencies" return 0 fi build_msg CLEAN "themes -- locally installed npm dependencies" ( set -e 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 \ | prefix_stdout "${_Blue}CLEAN ${_creset} " if [ "${PIPESTATUS[0]}" -ne "0" ]; then return 1 fi ) dump_return $? }