Loading manage +47 −0 Original line number Original line Diff line number Diff line Loading @@ -297,6 +297,46 @@ gecko.driver() { dump_return $? dump_return $? } } nodejs.ensure() { if ! nvm.min_node "${NODE_MINIMUM_VERSION}"; then info_msg "install Node.js by NVM" nvm.nodejs fi } node.env() { nodejs.ensure ( set -e build_msg INSTALL "searx/static/themes/etheme/package.json" npm --prefix searx/static/themes/etheme install ) dump_return $? } node.env.dev() { nodejs.ensure build_msg INSTALL "./package.json: developer and CI tools" npm install } node.clean() { if ! required_commands npm 2>/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 ) build_msg CLEAN "locally installed developer and CI tools" ( set -e npm --prefix . run clean ) dump_return $? } pygments.less() { pygments.less() { build_msg PYGMENTS "searxng_extra/update/update_pygments.py" build_msg PYGMENTS "searxng_extra/update/update_pygments.py" if ! pyenv.cmd python searxng_extra/update/update_pygments.py; then if ! pyenv.cmd python searxng_extra/update/update_pygments.py; then Loading Loading @@ -379,6 +419,13 @@ format.python() { dump_return $? dump_return $? } } themes.etheme() { ( set -e build_msg GRUNT "theme: etheme" npm --prefix searx/static/themes/etheme run build ) dump_return $? } PYLINT_FILES=() PYLINT_FILES=() while IFS= read -r line; do while IFS= read -r line; do Loading Loading
manage +47 −0 Original line number Original line Diff line number Diff line Loading @@ -297,6 +297,46 @@ gecko.driver() { dump_return $? dump_return $? } } nodejs.ensure() { if ! nvm.min_node "${NODE_MINIMUM_VERSION}"; then info_msg "install Node.js by NVM" nvm.nodejs fi } node.env() { nodejs.ensure ( set -e build_msg INSTALL "searx/static/themes/etheme/package.json" npm --prefix searx/static/themes/etheme install ) dump_return $? } node.env.dev() { nodejs.ensure build_msg INSTALL "./package.json: developer and CI tools" npm install } node.clean() { if ! required_commands npm 2>/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 ) build_msg CLEAN "locally installed developer and CI tools" ( set -e npm --prefix . run clean ) dump_return $? } pygments.less() { pygments.less() { build_msg PYGMENTS "searxng_extra/update/update_pygments.py" build_msg PYGMENTS "searxng_extra/update/update_pygments.py" if ! pyenv.cmd python searxng_extra/update/update_pygments.py; then if ! pyenv.cmd python searxng_extra/update/update_pygments.py; then Loading Loading @@ -379,6 +419,13 @@ format.python() { dump_return $? dump_return $? } } themes.etheme() { ( set -e build_msg GRUNT "theme: etheme" npm --prefix searx/static/themes/etheme run build ) dump_return $? } PYLINT_FILES=() PYLINT_FILES=() while IFS= read -r line; do while IFS= read -r line; do Loading