From 298195100a11432b85012a59c91b497e4b98bc57 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Thu, 25 May 2023 15:23:50 -0700 Subject: [PATCH] Convert node to chezmoi --- .chezmoiignore | 1 - node/.config/npm/npmrc => dot_config/npm/npmrc.tmpl | 2 ++ .../env.d/node.env => dot_config/profile/env.d/node.env.tmpl | 2 ++ {node/.config => dot_config}/profile/profile.d/node.sh | 0 .../bin/executable_install-node-home | 0 .../bin/executable_install-node-system | 0 {node/.local => dot_local}/share/buddy-up/includes/node.sh | 0 7 files changed, 4 insertions(+), 1 deletion(-) rename node/.config/npm/npmrc => dot_config/npm/npmrc.tmpl (57%) rename node/.config/profile/env.d/node.env => dot_config/profile/env.d/node.env.tmpl (75%) rename {node/.config => dot_config}/profile/profile.d/node.sh (100%) rename node/.local/bin/install-node-home => dot_local/bin/executable_install-node-home (100%) mode change 100755 => 100644 rename node/.local/bin/install-node-system => dot_local/bin/executable_install-node-system (100%) mode change 100755 => 100644 rename {node/.local => dot_local}/share/buddy-up/includes/node.sh (100%) diff --git a/.chezmoiignore b/.chezmoiignore index 433cfa5..3de5f34 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -1,6 +1,5 @@ /hellotech/ /install-scripts/ -/node/ /old-scripts/ /ripgrep/ /ruby/ diff --git a/node/.config/npm/npmrc b/dot_config/npm/npmrc.tmpl similarity index 57% rename from node/.config/npm/npmrc rename to dot_config/npm/npmrc.tmpl index dcf30ac..0b9d800 100644 --- a/node/.config/npm/npmrc +++ b/dot_config/npm/npmrc.tmpl @@ -1,2 +1,4 @@ +{{ if lookPath "node" -}} prefix=${HOME}/.local cache=${XDG_CACHE_HOME}/npm +{{- end }} diff --git a/node/.config/profile/env.d/node.env b/dot_config/profile/env.d/node.env.tmpl similarity index 75% rename from node/.config/profile/env.d/node.env rename to dot_config/profile/env.d/node.env.tmpl index 5191816..ec43c6e 100644 --- a/node/.config/profile/env.d/node.env +++ b/dot_config/profile/env.d/node.env.tmpl @@ -1,4 +1,6 @@ +{{ if lookPath "node" -}} # shellcheck shell=bash #ft=sh # shellcheck disable=SC2034 NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/npmrc" +{{- end }} diff --git a/node/.config/profile/profile.d/node.sh b/dot_config/profile/profile.d/node.sh similarity index 100% rename from node/.config/profile/profile.d/node.sh rename to dot_config/profile/profile.d/node.sh diff --git a/node/.local/bin/install-node-home b/dot_local/bin/executable_install-node-home old mode 100755 new mode 100644 similarity index 100% rename from node/.local/bin/install-node-home rename to dot_local/bin/executable_install-node-home diff --git a/node/.local/bin/install-node-system b/dot_local/bin/executable_install-node-system old mode 100755 new mode 100644 similarity index 100% rename from node/.local/bin/install-node-system rename to dot_local/bin/executable_install-node-system diff --git a/node/.local/share/buddy-up/includes/node.sh b/dot_local/share/buddy-up/includes/node.sh similarity index 100% rename from node/.local/share/buddy-up/includes/node.sh rename to dot_local/share/buddy-up/includes/node.sh