summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-11-20 17:00:07 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-11-20 17:08:22 +0100
commit5242a841a5dd2179d1ed620a67594932eb129422 (patch)
treed098a709cf5c7a8b0d0c535b6b094a3a0b3a5a31 /utils
parent69dd025da904e5f067e234d9b65d1a8a3ea8fdab (diff)
downloadsearxng-5242a841a5dd2179d1ed620a67594932eb129422.tar.gz
searxng-5242a841a5dd2179d1ed620a67594932eb129422.zip
[mod] NVM: dev-tools pre-installed in NVM's node installation
The Node.js installation in the NVM environment can be used by IDEs and other developer tasks. The required developer packagaes are added to the file ./.nvm_packages and will be installed when Node.js is installed. Initial we start with: - eslint Having a dedicated developer enviroment, provided by nvm makes it easy to integrate Node.js packages into various IDEs. One example is shown in the .dir-locals.el which is used by emacs. [1] https://github.com/nvm-sh/nvm#default-global-packages-from-file-while-installing [2] https://eslint.org Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/lib_nvm.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/lib_nvm.sh b/utils/lib_nvm.sh
index cd2fbc189..267ba8a4a 100755
--- a/utils/lib_nvm.sh
+++ b/utils/lib_nvm.sh
@@ -117,6 +117,7 @@ nvm.install() {
info_msg "checkout ${NVM_VERSION_TAG}"
git checkout "${NVM_VERSION_TAG}" 2>&1 | prefix_stdout " ${_Yellow}||${_creset} "
popd &> /dev/null
+ cp "${REPO_ROOT}/.nvm_packages" "${NVM_DIR}/default-packages"
nvm.env
}