Skip to content

Commit

Permalink
Add some basic test product
Browse files Browse the repository at this point in the history
  • Loading branch information
jtomasek committed Jul 28, 2023
1 parent 191795d commit 248c05d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export default function(plugin: IPlugin): void {
plugin.metadata = require('./package.json');

// Load a product
// plugin.addProduct(require('./product'));
plugin.addProduct(require('./product'));
}
13 changes: 13 additions & 0 deletions pkg/test/product.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { IPlugin } from '@shell/core/types';

export function init($plugin: IPlugin, store: any) {
const YOUR_PRODUCT_NAME = 'myProductName';

const { product } = $plugin.DSL(store, YOUR_PRODUCT_NAME);

product({
icon: 'gear',
inStore: 'management',
weight: 100
});
}

0 comments on commit 248c05d

Please sign in to comment.