mirror of https://github.com/rancher/dashboard.git
15 lines
408 B
TypeScript
15 lines
408 B
TypeScript
import { importTypes } from '@rancher/auto-import';
|
|
import { IPlugin } from '@shell/core/types';
|
|
|
|
// Init the package
|
|
export default function(plugin: IPlugin): void {
|
|
// Auto-import model, detail, edit from the folders
|
|
importTypes(plugin);
|
|
|
|
// Provide plugin metadata from package.json
|
|
plugin.metadata = require('./package.json');
|
|
|
|
// Load a product
|
|
// plugin.addProduct(require('./product'));
|
|
}
|