summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes 'josch' Schauer <josch@debian.org>2020-02-16 07:52:36 +0100
committerJohannes 'josch' Schauer <josch@debian.org>2020-02-16 07:52:36 +0100
commit5848a04ce49de65e151b52338b529b7c240b19f7 (patch)
tree33453221f2c3851e0665904aee593d10c320ada8
parent7c6c9e6d3d7a8b0f28e37fd81b274fe1e7779c85 (diff)
managesh
Gbp-Pq: Name managesh
-rwxr-xr-xmanage.sh16
1 files changed, 11 insertions, 5 deletions
diff --git a/manage.sh b/manage.sh
index 496a522..3b5d2cf 100755
--- a/manage.sh
+++ b/manage.sh
@@ -115,8 +115,7 @@ tests() {
#
npm_path_setup() {
- which npm || (printf 'Error: npm is not found\n'; exit 1)
- export PATH="$(npm bin)":$PATH
+ true
}
npm_packages() {
@@ -138,7 +137,7 @@ npm_packages() {
build_style() {
npm_path_setup
- lessc --clean-css="--s1 --advanced --compatibility=ie9" "$BASE_DIR/searx/static/$1" "$BASE_DIR/searx/static/$2"
+ lessc -x "$BASE_DIR/searx/static/$1" "$BASE_DIR/searx/static/$2"
}
styles() {
@@ -152,8 +151,15 @@ styles() {
build_style themes/courgette/less/style-rtl.less themes/courgette/css/style-rtl.css
echo '[!] Building pix-art style'
build_style themes/pix-art/less/style.less themes/pix-art/css/style.css
- echo '[!] Building bootstrap style'
- build_style less/bootstrap/bootstrap.less css/bootstrap.min.css
+ echo '[!] Building simple style'
+ build_style themes/simple/less/style.less themes/simple/css/searx.min.css
+ build_style themes/simple/less/style-rtl.less themes/simple/css/searx-rtl.min.css
+ echo '[!] Building logicodev'
+ build_style themes/oscar/less/logicodev/oscar.less themes/oscar/css/logicodev.min.css
+ echo '[!] Building logicodev-dark'
+ build_style themes/oscar/less/logicodev-dark/oscar.less themes/oscar/css/logicodev-dark.min.css
+ echo '[!] Building pointhi'
+ build_style themes/oscar/less/pointhi/oscar.less themes/oscar/css/pointhi.min.css
}
grunt_build() {