verdaccio-jfrog
v1.0.1
Published
A [verdaccio](https://verdaccio.org) plugin for storing data in [JFrog](https://jfrog.com/).
Downloads
11
Readme
Verdaccio Jfrog
A verdaccio plugin for storing data in JFrog.
Usage
You can use this plugin by installing it globally:
# Install the package globally
$ yarn global add verdaccio-jfrog
# Print the directory for your global packages
$ yarn global dir
/usr/local/share/.config/yarn/global
# Create a symbolic link to your package directory in the verdaccio plugin folder
$ ln -s /usr/local/share/.config/yarn/global/node_modules/verdaccio-jfrog /verdaccio/plugins/verdaccio-jfrog
Then you'll need to provide a configuration file for the jfrog storage :
# This points to the plugin folder above
plugins: /verdaccio/plugins
# This is mandatory, otherwise verdaccio won't boot
storage: /verdaccio/storage/data
# Here's the plugin configuration option
store:
jfrog:
# The endpoint on which verdaccio will access jfrog (with scheme)
server: https://jfrog.com/xxx
# The jforg access token
accessToken: this-is-not-so-secret
# A bucket where verdaccio will store it's database & packages (Package Type should be set to 'npm')
bucketName: 'npm'
# Number of retry when a request to jfrog fails (optional, default to 3)
retries: 3
# Timeout in milliseconds for each request to jfrog (optional, default to 30000)
timeout: 30000
# Delay between retries (optional, default to 100)
delay: 100
# The rest of the verdaccio configuration