Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(core): first working version of extension loading #50

Merged
merged 20 commits into from
Jan 22, 2025

Conversation

andypf
Copy link
Collaborator

@andypf andypf commented Jan 21, 2025

Summary

This update introduces a new Extension Loading Mechanism powered by npm, ensuring seamless integration of extensions into the application. Extensions are loaded into a temporary folder via npm, moved to node_modules, and accompanied by auto-generated import files for both client-side and server-side use—forming the backbone of this system.

Additionally, the server architecture has been streamlined by integrating Vite directly into Fastify using the @fastify/vite package. This allows for a single-server setup in development and production, eliminating the need for a standalone Vite server.


Changes Made

Key Updates

  • Extension Loading Mechanism:
    • Extensions installed via npm.
    • Files moved to node_modules for integration.
    • Auto-generates client and server import files.
  • @fastify/vite Integration:
    • Combined Fastify and Vite into a single-server setup.
    • Simplifies development and production workflows.
  • Configuration Cleanup:
    • Unified and streamlined configurations for consistency.

This update significantly simplifies server management, enhances extensibility with the new extension loading mechanism, and provides a cleaner configuration structure.

Related Issues

  • Issue 1: [link to issue]

Testing Instructions

  1. pnpm i
  2. pnpm run test

Checklist

  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • I have made corresponding changes to the documentation (if applicable).
  • My changes generate no new warnings or errors.

@andypf andypf requested a review from a team as a code owner January 21, 2025 10:57
@andypf andypf merged commit 27194be into main Jan 22, 2025
11 checks passed
@andypf andypf deleted the andypf-extensions branch January 22, 2025 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants