Skip to content

Instantly share code, notes, and snippets.

@Segmentational
Last active September 13, 2022 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Segmentational/ba92e7b13fe4b0474dd603c9afdd4818 to your computer and use it in GitHub Desktop.
Save Segmentational/ba92e7b13fe4b0474dd603c9afdd4818 to your computer and use it in GitHub Desktop.
Custom Workstation + GitLab `.npmrc` File
; 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