diff options
| author | Alexandre Flament <alex@al-f.net> | 2023-02-11 18:30:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-11 18:30:29 +0100 |
| commit | 675dc04917dadac60ebd4c28a1f5b1e2baba4cfa (patch) | |
| tree | fd75c8cfe7f79622e6da249cdd2c0e13d28beef6 /manage | |
| parent | 92a0457532de7fceefc2cc18a4b6f6c5f8c3e733 (diff) | |
| parent | 3eed80a0740232fd707c3654a05cde26418ab629 (diff) | |
Merge pull request #2183 from return42/node.env.dev
[mod] install developer tools by: make node.env.dev
Diffstat (limited to 'manage')
| -rwxr-xr-x | manage | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -97,7 +97,8 @@ redis: install : create user (${REDIS_USER}) and install systemd service (${REDIS_SERVICE_NAME}) help : show more redis commands node.: - env : download & install npm dependencies locally + env : download & install SearXNG's npm dependencies locally + env.dev : download & install developer and CI tools clean : drop locally npm installations py.: build : Build python packages at ./${PYDIST} @@ -563,16 +564,15 @@ nodejs.ensure() { node.env() { nodejs.ensure ( set -e - - build_msg INSTALL "searx/static/themes/simple/package.json" + build_msg INSTALL "./searx/static/themes/simple/package.json" npm --prefix searx/static/themes/simple install ) dump_return $? } -node.env.devtools() { +node.env.dev() { nodejs.ensure - build_msg INSTALL "package.json: developer and CI tools" + build_msg INSTALL "./package.json: developer and CI tools" npm install } @@ -585,6 +585,10 @@ node.clean() { ( 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 $? } @@ -702,7 +706,7 @@ test.pylint() { test.pyright() { build_msg TEST "[pyright] static type check of python sources" - node.env.devtools + node.env.dev # We run Pyright in the virtual environment because Pyright # executes "python" to determine the Python version. build_msg TEST "[pyright] suppress warnings related to intentional monkey patching" |