From 699a803f174662a8ec62442438bb0807e41d3971 Mon Sep 17 00:00:00 2001 From: glitsj16 Date: Sat, 8 May 2021 15:27:30 +0000 Subject: Node.js stack refactoring (#4255) * Create node.profile * Create node-gyp.profile * refactor npm as redirect * Create npx.profile * Create nvm.profile * Create semver.profile * refactor yarn as redirect * collect node.js stack configuration in common profile * add ~/.nvm to node section * account for node-gyp python dependency * read-only ~/.nvm for node.js stack * blacklist ~/.nvm for node.js stack * move env var comment cfr. profile.template * Delete node-gyp.profile node-gyp is a shell script with a node shebang. We've got that covered via node.profile. * Delete npx.profile npx is a shell script with a node shebang. We've got that covered via node.profile. * Delete semver.profile semver is a shell script that calls node. We've got that covered via node.profile. * add node and nvm to new profiles section --- etc/inc/allow-common-devel.inc | 1 + etc/inc/allow-nodejs.inc | 4 ++++ etc/inc/disable-common.inc | 1 + etc/inc/disable-programs.inc | 1 + 4 files changed, 7 insertions(+) (limited to 'etc/inc') diff --git a/etc/inc/allow-common-devel.inc b/etc/inc/allow-common-devel.inc index 41643657d..babe46571 100644 --- a/etc/inc/allow-common-devel.inc +++ b/etc/inc/allow-common-devel.inc @@ -15,6 +15,7 @@ noblacklist ${HOME}/.java noblacklist ${HOME}/.node-gyp noblacklist ${HOME}/.npm noblacklist ${HOME}/.npmrc +noblacklist ${HOME}/.nvm noblacklist ${HOME}/.yarn noblacklist ${HOME}/.yarn-config noblacklist ${HOME}/.yarncache diff --git a/etc/inc/allow-nodejs.inc b/etc/inc/allow-nodejs.inc index 78a4bed80..351c94ab8 100644 --- a/etc/inc/allow-nodejs.inc +++ b/etc/inc/allow-nodejs.inc @@ -4,3 +4,7 @@ include allow-nodejs.local noblacklist ${PATH}/node noblacklist /usr/include/node + +# Allow python for node-gyp (blacklisted by disable-interpreters.inc) +include allow-python2.inc +include allow-python3.inc diff --git a/etc/inc/disable-common.inc b/etc/inc/disable-common.inc index 35f89e11b..a6dbb7403 100644 --- a/etc/inc/disable-common.inc +++ b/etc/inc/disable-common.inc @@ -338,6 +338,7 @@ read-only ${HOME}/dotfiles read-only ${HOME}/.gem read-only ${HOME}/.luarocks read-only ${HOME}/.npm-packages +read-only ${HOME}/.nvm read-only ${HOME}/bin read-only ${HOME}/.bin read-only ${HOME}/.local/bin diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc index cbc8ef6d2..90abe1d3e 100644 --- a/etc/inc/disable-programs.inc +++ b/etc/inc/disable-programs.inc @@ -816,6 +816,7 @@ blacklist ${HOME}/.node-gyp blacklist ${HOME}/.npm blacklist ${HOME}/.npmrc blacklist ${HOME}/.nv +blacklist ${HOME}/.nvm blacklist ${HOME}/.nylas-mail blacklist ${HOME}/.openarena blacklist ${HOME}/.opencity -- cgit v1.2.3-70-g09d2