diff options
author | Adam Tauber <asciimoo@gmail.com> | 2018-08-26 11:17:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-26 11:17:23 +0200 |
commit | bc7c8a3973a8614dfb14d97b853c9a46ddcabab1 (patch) | |
tree | cc4b86de1da527184057b22c435132cc3d8366d6 | |
parent | 052a71d05a159ccb08efb7c1bf0d42e75ecdd636 (diff) | |
parent | 965eebd12b4faca6d4f9fbac5b31c541677c1fdd (diff) | |
download | searxng-bc7c8a3973a8614dfb14d97b853c9a46ddcabab1.tar.gz searxng-bc7c8a3973a8614dfb14d97b853c9a46ddcabab1.zip |
Merge pull request #1385 from dalf/minor_changes
Minor changes
-rwxr-xr-x | manage.sh | 13 | ||||
-rw-r--r-- | searx/static/themes/simple/less/#toolkit_loader.less# | 0 | ||||
l--------- | searx/static/themes/simple/less/.#toolkit_loader.less | 1 |
3 files changed, 11 insertions, 3 deletions
@@ -5,8 +5,6 @@ BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")" cd -- "$BASE_DIR" set -e -export PATH="$(npm bin)":$PATH - # subshell PYTHONPATH="$BASE_DIR" SEARX_DIR="$BASE_DIR/searx" @@ -111,7 +109,14 @@ tests() { # Web # +npm_path_setup() { + which npm || (printf 'Error: npm is not found\n'; exit 1) + export PATH="$(npm bin)":$PATH +} + npm_packages() { + npm_path_setup + echo '[!] install NPM packages' cd -- "$BASE_DIR" npm install less@2.7 less-plugin-clean-css grunt-cli @@ -126,10 +131,14 @@ npm_packages() { } build_style() { + npm_path_setup + lessc --clean-css="--s1 --advanced --compatibility=ie9" "$BASE_DIR/searx/static/$1" "$BASE_DIR/searx/static/$2" } styles() { + npm_path_setup + echo '[!] Building legacy style' build_style themes/legacy/less/style.less themes/legacy/css/style.css build_style themes/legacy/less/style-rtl.less themes/legacy/css/style-rtl.css diff --git a/searx/static/themes/simple/less/#toolkit_loader.less# b/searx/static/themes/simple/less/#toolkit_loader.less# deleted file mode 100644 index e69de29bb..000000000 --- a/searx/static/themes/simple/less/#toolkit_loader.less# +++ /dev/null diff --git a/searx/static/themes/simple/less/.#toolkit_loader.less b/searx/static/themes/simple/less/.#toolkit_loader.less deleted file mode 120000 index f93593380..000000000 --- a/searx/static/themes/simple/less/.#toolkit_loader.less +++ /dev/null @@ -1 +0,0 @@ -alexandre@alf-laptop.2449:1533915028
\ No newline at end of file |