Merge pull request #157 from searxng/mod_static_build

static build: move generated files to searx/static/themes/*/src/generated
This commit is contained in:
Alexandre Flament 2021-06-22 10:36:19 +02:00 committed by GitHub
commit 2530576f24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 1655 additions and 1699 deletions

14
manage
View file

@ -86,6 +86,8 @@ themes.* :
all : build all themes
oscar : build oscar theme
simple : build simple theme
pygments.* :
less : build LESS files for pygments
EOF
}
@ -295,7 +297,7 @@ gecko.driver() {
}
node.env() {
if ! required_commands npm fontforge ttfautohint; then
if ! required_commands npm; then
info_msg "to install build tools use::"
info_msg " sudo -H ./utils/searx.sh install buildhost"
die 1 "install needed build tools first"
@ -325,6 +327,15 @@ node.clean() {
dump_return $?
}
pygments.less() {
build_msg PYGMENTS "searx_extra/update/update_pygments.py"
if ! pyenv.cmd python searx_extra/update/update_pygments.py; then
build_msg PYGMENTS "building LESS files for pygments failed"
return 1
fi
return 0
}
py.build() {
build_msg BUILD "python package ${PYDIST}"
pyenv.cmd python setup.py \
@ -462,6 +473,7 @@ test.clean() {
themes.all() {
( set -e
pygments.less
node.env
themes.oscar
themes.simple