summaryrefslogtreecommitdiff
path: root/manage
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-06-16 15:51:43 +0200
committerAlexandre Flament <alex@al-f.net>2021-06-16 16:04:58 +0200
commit14ba56fd1a9e82206f964a8830953a1b51eecbdd (patch)
treef8e6aecfb7c1b03041d8e73004aeffb2855516d3 /manage
parentc01325688158fdde886e2ecb347d8d4d9707a84d (diff)
downloadsearxng-14ba56fd1a9e82206f964a8830953a1b51eecbdd.tar.gz
searxng-14ba56fd1a9e82206f964a8830953a1b51eecbdd.zip
[mod] make node.clean: call the "clean" script from the packages.json
The dependencies and build process are described in the gruntfiles.js and packages.json files. It makes sense to move the clean up to these files too.
Diffstat (limited to 'manage')
-rwxr-xr-xmanage11
1 files changed, 4 insertions, 7 deletions
diff --git a/manage b/manage
index 024fdf39a..c042d8ebd 100755
--- a/manage
+++ b/manage
@@ -310,14 +310,11 @@ node.env() {
}
node.clean() {
-
build_msg CLEAN "locally installed npm dependencies"
- rm -rf \
- ./searx/static/themes/oscar/package-lock.json \
- ./searx/static/themes/oscar/node_modules \
- ./searx/static/themes/simple/package-lock.json \
- ./searx/static/themes/simple/node_modules
- ./searx/static/themes/simple/ion.less \
+ ( set -e
+ npm --prefix searx/static/themes/oscar run clean
+ npm --prefix searx/static/themes/simple run clean
+ )
dump_return $?
}