mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
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:
commit
2530576f24
45 changed files with 1655 additions and 1699 deletions
14
manage
14
manage
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue