index.ts 863 B

1234567891011121314151617181920212223
  1. import type { AstroIntegration } from 'astro';
  2. export default function createIntegration(): AstroIntegration {
  3. // See the Integration API docs for full details
  4. // https://docs.astro.build/en/reference/integrations-reference/
  5. return {
  6. name: '@example/my-integration',
  7. hooks: {
  8. 'astro:config:setup': () => {
  9. // See the @astrojs/react integration for an example
  10. // https://github.com/withastro/astro/blob/main/packages/integrations/react/src/index.ts
  11. },
  12. 'astro:build:setup': () => {
  13. // See the @astrojs/lit integration for an example
  14. // https://github.com/withastro/astro/blob/main/packages/integrations/lit/src/index.ts
  15. },
  16. 'astro:build:done': () => {
  17. // See the @astrojs/partytown integration for an example
  18. // https://github.com/withastro/astro/blob/main/packages/integrations/partytown/src/index.ts
  19. },
  20. },
  21. };
  22. }