Tinacms Developer Docs

15 August 2024

This meeting covers a detailed discussion on several technical aspects of working with TinaCMS. Here’s a summary of the main points:

🤖🤖

  1. CLI and Build Process:

    • Jeff explained the build process for the TinaCMS CLI, including steps for handling TypeScript and JSX and the conversion to CommonJS for compatibility. The process involves bundling code, ensuring React is included once, and supporting environments like Node and browser-specific requirements.
  2. Edge Runtime and Node Version Issues:

    • There were challenges with Edge runtime support and compatibility with recent Node.js versions, especially regarding ESM and CommonJS modules. The team discussed how breaking changes in Node could impact TinaCMS.
  3. SCSS and Component Customization:

    • Questions were raised about supporting custom components with SCSS, emphasizing that users might need to provide custom CSS for their unique TinaCMS components, while ensuring compatibility with predefined loader configurations.
  4. Configuration and UI Customization:

    • The team explored schema customization, specifically for reference fields, aiming to allow users to define display options for fields dynamically. They reviewed how the UI component properties can be customized and the potential for making these settings more type-safe.
  5. Namespace and Type Management:

    • Jeff discussed the complexity of managing namespaces and types within GraphQL and TinaCMS, especially for nested objects. The team addressed the difficulties of making certain fields unique in GraphQL due to its global type limitations and the use of custom aliases as a workaround.
  6. Schema Tools and Field Resolution:

    • The discussion covered the workings of schema tools and field resolution, where TinaCMS converts user-defined config into runtime shapes. The team acknowledged challenges with type duplication and the potential to improve type consistency across the codebase.
  7. GraphQL Builder and Resolver Overview:

    • Jeff suggested a future review of the GraphQL builder for TinaCMS, a foundational part of the system, to provide insights into how TinaCMS constructs and resolves its GraphQL schema, including its impact on nested content.

This session emphasized refining TinaCMS's customization, type management, and build processes, focusing on making it more adaptable and resolving compatibility challenges with frameworks and new Node.js versions.

On this page