Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 4d7c6153 authored by Akhil's avatar Akhil
Browse files

re-add themes.etheme

parent 7f74f19a
Loading
Loading
Loading
Loading
+47 −0
Original line number Original line Diff line number Diff line
@@ -297,6 +297,46 @@ gecko.driver() {
    dump_return $?
    dump_return $?
}
}


nodejs.ensure() {
    if ! nvm.min_node "${NODE_MINIMUM_VERSION}"; then
        info_msg "install Node.js by NVM"
        nvm.nodejs
    fi
}

node.env() {
    nodejs.ensure
    (   set -e

        build_msg INSTALL "searx/static/themes/etheme/package.json"
        npm --prefix searx/static/themes/etheme install
    )
    dump_return $?
}

node.env.dev() {
    nodejs.ensure
    build_msg INSTALL "./package.json: developer and CI tools"
    npm install
}

node.clean() {
    if ! required_commands npm 2>/dev/null; then
        build_msg CLEAN "npm is not installed / ignore npm dependencies"
        return 0
    fi
    build_msg CLEAN "themes -- locally installed npm dependencies"
    (   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 $?
}


pygments.less() {
pygments.less() {
    build_msg PYGMENTS "searxng_extra/update/update_pygments.py"
    build_msg PYGMENTS "searxng_extra/update/update_pygments.py"
    if ! pyenv.cmd python searxng_extra/update/update_pygments.py; then
    if ! pyenv.cmd python searxng_extra/update/update_pygments.py; then
@@ -379,6 +419,13 @@ format.python() {
    dump_return $?
    dump_return $?
}
}


themes.etheme() {
    (   set -e
        build_msg GRUNT "theme: etheme"
        npm --prefix searx/static/themes/etheme run build
    )
    dump_return $?
}


PYLINT_FILES=()
PYLINT_FILES=()
while IFS= read -r line; do
while IFS= read -r line; do