Socket
Book a DemoInstallSign in
Socket

@kvytech/medusa-plugin-management

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kvytech/medusa-plugin-management

Medusa plugin management for manage plugins in project

latest
npmnpm
Version
0.0.4
Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

Medusa Plugin Management

Plugins Management for manage plugins in Medusa Ecommerce

Install

yarn add @kvytech/medusa-plugin-management

or

npm install @kvytech/medusa-plugin-management

Configuration

Enable in your medusa-config.js file similar to other plugins:


const plugins = [
    // ... other plugins
  {
    resolve: `@kvytech/medusa-plugin-management`,
    options: {
      enableUI: true,
      blackList: ["@medusajs/file-local", "@medusajs/admin"], //Here is disable list plugin will scan in project
    },
  },
]

Plugin will auto scan all plugins in project and auto create in database, It will load name, tags, setting_link from static constant in service file

Example:

class PluginsManagementService extends TransactionBaseService {
  static PLUGIN_NAME = 'medusa-payment-manual'
  static TAGS = ['payment']
  static SETTING_LINK = 'a/settings/medusa-payment-manual'
}

URL Docs

URL: ${baseURL}/medusa-plugin-management/docs

Entity Type

@Entity()
export class PluginsManagement {
  @PrimaryColumn()
  @Column({ type: "text", primary: true })
  name: string;

  @Column({ type: "boolean" })
  is_enable: boolean;

  @Column({ type: "jsonb" })
  tags: string[];

  @Column({ type: "character" })
  setting_link: string;
}

Keywords

sqlite

FAQs

Package last updated on 22 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts