[upd] update npm dependencies (package.json) and .tool-versions

To avoid issue like [1], versions from now on are pinned in::

    searx/static/themes/simple/package-lock.json

To test nodejs v23 or newer is needed (will be installed by nvm).  To drop a
possibly existing installation::

    $ make clean

Install nodejs in nvm::

    $ make nvm.nodejs
    INFO:  install (update) NVM at searxng/.nvm
    ...
    Now using node v23.5.0 (npm v10.9.2)
    Creating default alias: default -> v23.5 (-> v23.5.0)
    INFO:  Node.js is installed at searxng/.nvm/versions/node/v23.5.0/bin/node
    INFO:  Node.js is version v23.5.0
    INFO:  npm is installed at searxng/.nvm/versions/node/v23.5.0/bin/npm
    INFO:  npm is version 10.9.2
    INFO:  NVM is installed at searxng/.nvm

To test npm checks and builds:

    $ make static.build.commit

Related:

[1] https://github.com/searxng/searxng/issues/4143

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2025-01-02 07:45:46 +01:00 committed by Markus Heiser
parent 35c80268bf
commit 943c8fb85b
6 changed files with 9645 additions and 25 deletions

2
.nvmrc
View file

@ -1 +1 @@
v20.10 v23.5

View file

@ -1,2 +1,4 @@
python 3.12.0 nodejs 23.5.0
shellcheck 0.9.0 python 3.13.1
shellcheck 0.10.0
sqlite 3.47.2

View file

@ -1,7 +1,7 @@
{ {
"dependencies": { "dependencies": {
"eslint": "^9.0.0", "eslint": "^9.17.0",
"pyright": "^1.1.329" "pyright": "^1.1.391"
}, },
"scripts": { "scripts": {
"clean": "rm -Rf node_modules package-lock.json" "clean": "rm -Rf node_modules package-lock.json"

View file

@ -1,2 +1 @@
/node_modules /node_modules
package-lock.json

File diff suppressed because it is too large Load diff

View file

@ -1,28 +1,28 @@
{ {
"devDependencies": { "devDependencies": {
"eslint": "^9.0.0", "eslint": "^9.17.0",
"grunt": "~1.6.1", "grunt": "^1.6.1",
"grunt-contrib-copy": "^1.0.0", "grunt-contrib-copy": "^1.0.0",
"grunt-contrib-cssmin": "^5.0.0", "grunt-contrib-cssmin": "^5.0.0",
"grunt-contrib-less": "~3.0.0", "grunt-contrib-less": "^3.0.0",
"grunt-contrib-uglify": "~5.2.1", "grunt-contrib-uglify": "^5.2.2",
"grunt-xmlmin": "~0.1.8", "grunt-xmlmin": "^0.1.8",
"grunt-contrib-watch": "~1.1.0", "grunt-contrib-watch": "^1.1.0",
"grunt-eslint": "^24.0.0", "grunt-eslint": "^25.0.0",
"grunt-stylelint": "^0.16.0", "grunt-stylelint": "^0.20.1",
"grunt-image": "^6.4.0", "grunt-image": "^6.4.0",
"ionicons": "^7.1.0", "ionicons": "^7.4.0",
"less": "^4.1.3", "less": "^4.2.1",
"less-plugin-clean-css": "^1.5.1", "less-plugin-clean-css": "^1.6.0",
"sharp": "^0.33.0", "sharp": "^0.33.5",
"stylelint": "^13.13.1", "stylelint": "^16.12.0",
"stylelint-config-standard": "^22.0.0", "stylelint-config-standard": "^36.0.0",
"ejs": "^3.1.8", "ejs": "^3.1.10",
"svgo": "^3.0.0" "svgo": "^3.3.2"
}, },
"dependencies": { "dependencies": {
"autocomplete-js": "2.7.1", "autocomplete-js": "^2.7.1",
"leaflet": "^1.8.0", "leaflet": "^1.9.4",
"normalize.css": "^8.0.1" "normalize.css": "^8.0.1"
}, },
"scripts": { "scripts": {
@ -32,7 +32,7 @@
"eslint": "grunt eslint", "eslint": "grunt eslint",
"eslint-fix": "grunt eslint --fix", "eslint-fix": "grunt eslint --fix",
"watch": "grunt watch", "watch": "grunt watch",
"clean": "rm -Rf node_modules package-lock.json", "clean": "rm -Rf node_modules",
"stylelint": "grunt stylelint", "stylelint": "grunt stylelint",
"stylelint-fix": "grunt stylelint --fix" "stylelint-fix": "grunt stylelint --fix"
} }