๐Ÿ“ฆ jordojordo / creator-test-v3

๐Ÿ“„ index.ts ยท 15 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15import { 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'));
}