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

15 lines
763 B
Cheetah
Raw Normal View History

2023-03-20 12:22:58 -07:00
cache={{ .chezmoi.homeDir }}/.cache/npm
2023-11-29 22:27:30 -08:00
{{ if (stat (joinPath "etc" "ssl" "cert.pem")) -}}
cafile=/etc/ssl/cert.pem
{{ end -}}
2023-03-19 23:38:30 -07:00
init-author-email={{ .user.email }}
2023-08-01 19:09:12 -07:00
init-author-name={{ .user.name }} <{{ .user.email }}> ({{ .user.domain }})
2024-04-02 01:18:09 -07:00
init-author-url=https://{{ .user.domain }}/
init-license=MIT
init-version=0.0.1
2023-03-19 23:38:30 -07:00
loglevel=error
network-concurrency=32
2023-03-20 12:22:58 -07:00
prefix={{ .chezmoi.homeDir }}/.local/share/npm
2023-03-18 02:01:55 -07:00
strict-peer-dependencies=false
2024-04-01 20:09:30 -07: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 }}