devops-buddy
v0.2.8
Published
The purpose of this package is to provide a cross platform and interactive authentication experience like `vsts-npm-auth`, but without the limitation of it being Windows only.
Downloads
325
Readme
Azure DevOps NPM Auth
The purpose of this package is to provide a cross platform and interactive authentication experience like vsts-npm-auth
, but without the limitation of it being Windows only.
Installation
Because of the size of the package, it is recommended to just install it globally like this:
npm install -g devops-buddy
or
yarn global add devops-buddy
When the size is reduced, the global installation guidance would be lifted
Usage
To use it, run it at the root of the repository that has a .npmrc
file:
# cd project
# devops-buddy
A window would open for you to authenticate. Then it'll proceed to get a new accesstoken for you to use to install from npm feeds from Azure Artifacts.
The Stack
- an Azure DevOps registered application
- a cross-platform application with a webview - handles the interactive prompt (used for 1st time)
- a CLI app that manages access tokens and refresh tokens - saves the tokens securely via
keytar
Future Work
Currently the interactive app is based on Electron. It is completely overkill (@ 170mb) and carries a huge installation burden. There are alternatives: