Last active
September 13, 2022 21:09
-
-
Save Segmentational/ba92e7b13fe4b0474dd603c9afdd4818 to your computer and use it in GitHub Desktop.
Custom Workstation + GitLab `.npmrc` File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; For reference, every programming language's package-manager | |
; has a similar *.*rc (dot-rc) related setup (few exceptions | |
; include Go, C, etc.) | |
; | |
; Defaults := $ npm config ls --list | |
; -> $ npm config ls --json | |
fund = false | |
cache = ~/.npm | |
prefix = /usr/local | |
engine-strict = false | |
# --> loglevel = debug | |
registry = https://registry.npmjs.org/ | |
; Package Initialization | |
; Personal Preference - Demonstration Purposes Only | |
init-author-email = jacob.sanders@cloudhybrid.io | |
init-author-name = Jacob B. Sanders | |
init-author-url = https://github.com/iac-factory | |
init-license = BSD-2-Clause | |
init-version = 0.0.1 | |
; | |
; Maintainers + General Development Teams Should NOT Defer | |
; Package-Locks. | |
; | |
; Only use under caution and experience - personally, | |
; I don't like managing dependencies and will set | |
; certain packages to only ever use "latest" version(s). | |
; | |
; Additional benefits include only using the standard library, | |
; or otherwise development-only dependencies. | |
; | |
; The programs I write are almost always only relating to | |
; development-tool(s) or automation-related deployment utilities. | |
; If something breaks, the pipeline(s) + notification(s) will let | |
; me know. | |
; | |
package-lock = false | |
; Instance Level Configuration | |
@iac-factory:registry = https://gitlab.example.com/api/v4/packages/npm/ | |
; Package Level Configuration | |
@iac-factory:registry = https://gitlab.example.com/api/v4/projects/254/packages/npm/ | |
; Important Configuration(s) - These are not comments | |
//gitlab.example.com/api/v4/packages/npm/:_authToken=[Personal-Access-Token] | |
//gitlab.example.com/api/v4/projects/254/packages/npm/:_authToken=[Personal-Access-Token] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment