install.fairie/home/dot_config/npm/npmrc.tmpl

12 lines
740 B
Cheetah
Raw Normal View History

2023-03-20 19:22:58 +00:00
cache={{ .chezmoi.homeDir }}/.cache/npm
2023-03-20 06:38:30 +00:00
init-author-email={{ .user.email }}
2023-08-02 02:09:12 +00:00
init-author-name={{ .user.name }} <{{ .user.email }}> ({{ .user.domain }})
init-author-url=https://{{ .user.domain }}
init-license=MIT
2023-03-22 03:28:05 +00:00
init-module={{ .chezmoi.homeDir }}/.config/npm/config/npm-init.js
init-version=0.0.1
2023-03-20 06:38:30 +00:00
loglevel=error
network-concurrency=32
2023-03-20 19:22:58 +00:00
prefix={{ .chezmoi.homeDir }}/.local/share/npm
2023-03-18 09:01:55 +00:00
strict-peer-dependencies=false
2023-06-19 03:30:41 +00:00
//registry.npmjs.org/:_authToken={{ if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "NPM_TOKEN")) }}{{- includeTemplate "secrets/NPM_TOKEN" | decrypt | trim -}}{{ else if (env "NPM_TOKEN") }}{{- env "NPM_TOKEN" -}}{{ else }}${NPM_TOKEN}{{ end }}