verdaccio-mongo-access-roles
v1.0.6
Published
An amazing verdaccio plugin
Downloads
7
Readme
verdaccio-mongo-access-roles
An amazing verdaccio plugin
Usage
auth:
mongo-access-roles:
mongo_uri: mongodb+srv://*/*
packages:
'@scope/*':
# scoped packages
access: mongo-access
publish: mongo-access
unpublish: mongo-access
'@*/*':
access: mongo-access
publish: mongo-access
unpublish: mongo-access
mongo document example (collection: roles
):
{
"name" : "admin",
"token" : "aaa",
"access" : [
".*" //regex
],
"publish" : [
".*"
],
"unpublish" : [
".*"
]
},
{
"name" : "developer",
"token" : "ddd",
"access" : [
".*" //regex
],
"publish" : [
"@scope\/.*"
],
"unpublish" : []
}
development
See the verdaccio contributing guide for instructions setting up your development environment. Once you have completed that, use the following npm tasks.
npm run build
Build a distributable archive
npm run test
Run unit test
For more information about any of these commands run npm run ${task} -- --help
.