--- 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() {