plugin.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import { EggPlugin } from 'egg';
  2. const plugin: EggPlugin = {
  3. tegg: {
  4. enable: true,
  5. package: '@eggjs/tegg-plugin',
  6. },
  7. teggConfig: {
  8. enable: true,
  9. package: '@eggjs/tegg-config',
  10. },
  11. teggController: {
  12. enable: true,
  13. package: '@eggjs/tegg-controller-plugin',
  14. },
  15. teggSchedule: {
  16. enable: true,
  17. package: '@eggjs/tegg-schedule-plugin',
  18. },
  19. eventbusModule: {
  20. enable: true,
  21. package: '@eggjs/tegg-eventbus-plugin',
  22. },
  23. aopModule: {
  24. enable: true,
  25. package: '@eggjs/tegg-aop-plugin',
  26. },
  27. tracer: {
  28. enable: true,
  29. package: 'egg-tracer',
  30. },
  31. jwt: {
  32. enable: true,
  33. package: 'egg-jwt',
  34. },
  35. cors: {
  36. enable: true,
  37. package: 'egg-cors',
  38. },
  39. routerPlus: {
  40. enable: true,
  41. package: 'egg-router-plus',
  42. },
  43. };
  44. export default plugin;
  45. exports.sequelize = {
  46. enable: true,
  47. package: 'egg-sequelize',
  48. };
  49. // exports.routerPlus = {
  50. // enable: true,
  51. // package: 'egg-router-plus',
  52. // };