mirror of https://github.com/searxng/searxng.git
[mod] make node.clean: call the "clean" script from the packages.json
The dependencies and build process are described in the gruntfiles.js and packages.json files. It makes sense to move the clean up to these files too.
This commit is contained in:
parent
c013256881
commit
14ba56fd1a
11
manage
11
manage
|
@ -310,14 +310,11 @@ node.env() {
|
||||||
}
|
}
|
||||||
|
|
||||||
node.clean() {
|
node.clean() {
|
||||||
|
|
||||||
build_msg CLEAN "locally installed npm dependencies"
|
build_msg CLEAN "locally installed npm dependencies"
|
||||||
rm -rf \
|
( set -e
|
||||||
./searx/static/themes/oscar/package-lock.json \
|
npm --prefix searx/static/themes/oscar run clean
|
||||||
./searx/static/themes/oscar/node_modules \
|
npm --prefix searx/static/themes/simple run clean
|
||||||
./searx/static/themes/simple/package-lock.json \
|
)
|
||||||
./searx/static/themes/simple/node_modules
|
|
||||||
./searx/static/themes/simple/ion.less \
|
|
||||||
dump_return $?
|
dump_return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,23 +1,27 @@
|
||||||
{
|
{
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt": "^1.3.0",
|
"grunt": "~1.4.1",
|
||||||
"grunt-cli": "^1.3.2",
|
"grunt-cli": "^1.4.3",
|
||||||
"grunt-contrib-concat": "~1.0.1",
|
"grunt-contrib-concat": "~1.0.1",
|
||||||
"grunt-contrib-copy": "^1.0.0",
|
"grunt-contrib-copy": "^1.0.0",
|
||||||
"grunt-contrib-jshint": "~3.0.0",
|
"grunt-contrib-jshint": "~3.0.0",
|
||||||
"grunt-contrib-less": "~3.0.0",
|
"grunt-contrib-less": "~3.0.0",
|
||||||
"grunt-contrib-uglify": "~5.0.0",
|
"grunt-contrib-uglify": "~5.0.1",
|
||||||
"grunt-contrib-watch": "~1.1.0"
|
"grunt-contrib-watch": "~1.1.0",
|
||||||
},
|
"jslint": "^0.12.1",
|
||||||
"scripts": {
|
"less": "^4.1.1",
|
||||||
"build": "npm install && grunt",
|
"less-plugin-clean-css": "^1.5.1"
|
||||||
"start": "grunt watch",
|
|
||||||
"test": "grunt"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bootstrap": "^3.4.1",
|
"bootstrap": "^3.4.1",
|
||||||
"corejs-typeahead": "^1.3.1",
|
"corejs-typeahead": "^1.3.1",
|
||||||
"jquery": "^3.6.0",
|
"jquery": "^3.6.0",
|
||||||
"leaflet": "^1.7.1"
|
"leaflet": "^1.7.1"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"all": "npm install && grunt",
|
||||||
|
"build": "grunt",
|
||||||
|
"watch": "grunt watch",
|
||||||
|
"clean": "rm -Rf node_modules package-lock.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"all": "npm install && grunt",
|
"all": "npm install && grunt",
|
||||||
"build": "grunt",
|
"build": "grunt",
|
||||||
"watch": "grunt watch"
|
"watch": "grunt watch",
|
||||||
|
"clean": "rm -Rf node_modules package-lock.json ion.less"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue