summaryrefslogtreecommitdiff
path: root/manage
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-09-28 12:50:23 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2023-02-11 13:33:43 +0100
commit3eed80a0740232fd707c3654a05cde26418ab629 (patch)
treebda9877f9aa919d63d5b5ab683953c1180f24cc2 /manage
parent7cbfa6a8dd7fdc453c9ef6ac38d3bc4913db521c (diff)
[mod] install developer tools by: make node.env.dev
- rename ``./manage node.env.devtools`` to ``./manage node.env.dev`` - add ``make node.env.dev`` - remove local developer tools by ``make node.clean`` Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'manage')
-rwxr-xr-xmanage16
1 files changed, 10 insertions, 6 deletions
diff --git a/manage b/manage
index a779d1ff..c51d76dd 100755
--- a/manage
+++ b/manage
@@ -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"