Tinacms Developer Docs

4 July 2024

This meeting covers various technical aspects and challenges in TinaCMS, including package management, configuration updates, and editor capabilities. Here’s a summary of the main points discussed:

🤖🤖

  1. Package Management and Dependency Updates:

    • The team discussed managing dependencies across TinaCMS’s packages, including the addition of pnpm to the CLI for efficient installs.
    • They covered removing unused dependencies to reduce complexity and dependencies’ potential impacts on the codebase, while also addressing the challenges of upgrading React from version 17 to 18 and considerations for React 19.
  2. Telemetry and Legacy Code:

    • There was a discussion about telemetry in the CLI, which tracks package manager usage, but the team considered phasing it out due to limited use and relevance.
    • The conversation highlighted legacy code and deprecated functions, which remain in TinaCMS but may no longer be necessary.
  3. Rich Text and Markdown Parsing:

    • They explored TinaMarkdown and the complexities of parsing and rendering MDX, including handling issues like shortcode support (important for users like Smashing Magazine). The team discussed how skipEscaping works to prevent unintended HTML alterations in markdown.
    • The group also talked about customizing rich text editors and supporting alternative editors like TipTap by configuring custom fields.
  4. Hugo Shortcode Compatibility:

    • Hugo’s shortcode syntax and its incompatibility with TinaCMS’s rich text fields were discussed. Jeff explained that supporting nested shortcodes in markdown is complex and might be infeasible for full compatibility, as it requires extensive parsing logic.
  5. TypeScript Documentation and API Surface Area:

    • Jeff emphasized the need to reduce TinaCMS’s public API surface area to simplify usage and maintenance. They discussed challenges with TypeScript documentation, particularly linking TinaCMS’s configurations directly to TypeScript types.
  6. End-to-End Testing:

    • The team mentioned implementing Playwright for end-to-end testing, replacing some of the existing Cypress tests to ensure better integration and functionality coverage.
  7. User Requests and Feedback:

    • The transcription highlighted how user requests for new features, like a multi-branch editing feature, influence TinaCMS’s development, although some older functionalities (like branch switching) may be removed due to technical debt or lack of use.

Overall, the transcription focused on refining TinaCMS’s codebase by reducing unused dependencies, exploring improvements in editor capabilities, and handling markdown parsing complexities to enhance the CMS’s flexibility and performance.

On this page