ui-plugin.ts 665 B

123456789101112131415161718192021
  1. import { AdminUiExtension } from '@vendure/common/lib/shared-types';
  2. import { VendurePlugin } from '@vendure/core';
  3. import path from 'path';
  4. @VendurePlugin({})
  5. export class UiPlugin {
  6. static uiExtensions: AdminUiExtension[] = [
  7. {
  8. type: 'lazy',
  9. ngModulePath: path.join(__dirname, 'lazy-module'),
  10. ngModuleFileName: 'ui-plugin.module.ts',
  11. ngModuleName: 'TestModule',
  12. },
  13. {
  14. type: 'shared',
  15. ngModulePath: path.join(__dirname, 'shared-module'),
  16. ngModuleFileName: 'ui-shared-plugin.module.ts',
  17. ngModuleName: 'TestSharedModule',
  18. },
  19. ];
  20. }