1.0.3 • Published 6 months ago

verdaccio-mongo-access-roles v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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.

1.0.3

6 months ago

1.0.2

9 months ago

1.0.1

9 months ago