mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 10:32:21 +02:00
[mod] theme/simple: improve fmt/lint tech
This is one of various PR to refactor the simple theme internally. Replace eslint tool with Biome. I have been using this for quite some time, and it will help us to have more consistent and valid code without extending on other third party plugins. Removes unused dependencies.
This commit is contained in:
parent
0cbb4f74cc
commit
a947d5b3cf
13 changed files with 799 additions and 3672 deletions
|
@ -9,6 +9,8 @@ vite.help(){
|
|||
vite.: .. to be done ..
|
||||
simple.:
|
||||
build: build static files of the simple theme
|
||||
fix: run prettiers on simple theme
|
||||
lint: run linters on simple theme
|
||||
dev: start development server
|
||||
EOF
|
||||
}
|
||||
|
@ -36,8 +38,6 @@ vite.simple.build() {
|
|||
|
||||
pushd "${VITE_SIMPLE_THEME}"
|
||||
npm install
|
||||
npm run fix
|
||||
npm run icons.html
|
||||
npm run build
|
||||
popd &> /dev/null
|
||||
)
|
||||
|
@ -50,6 +50,13 @@ vite.simple.fix() {
|
|||
)
|
||||
}
|
||||
|
||||
vite.simple.lint() {
|
||||
( set -e
|
||||
node.env
|
||||
npm --prefix client/simple run lint
|
||||
)
|
||||
}
|
||||
|
||||
templates.simple.pygments() {
|
||||
build_msg PYGMENTS "searxng_extra/update/update_pygments.py"
|
||||
pyenv.cmd python searxng_extra/update/update_pygments.py \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue