Playback speed
×
Share post
Share post at current time
0:00
/
0:00
Transcript

Getting Started with tscircuit Core, Props and Circuit Json

Adding Battery Component to TSCircuit: A Deep Dive into Core, Props, and CircuitJSON

In this episode, Seve walks through the process of adding a battery component to TSCircuit. He demonstrates the intricate dance between the Core, Props, and CircuitJSON repositories, showcasing how to properly implement and integrate a new component across all three.

  • 00:00:00 - Introduction and overview of TS Circuit Core.

  • 00:00:35 - Explanation of the task: Adding battery support to TS Circuit.

  • 00:01:20 - Writing tests in TS Circuit Core.

  • 00:02:06 - Snapshot and schematic test creation.

  • 00:03:39 - Choosing component footprints (discussion about Axial and 0805).

  • 00:04:54 - Debugging: Unsupported component type (battery).

  • 00:05:32 - Creating a new battery component file.

  • 00:06:17 - Debugging missing types and switching imports to CircuitJSON.

  • 00:08:00 - Discussion of component definitions and TS Circuit Props.

  • 00:10:12 - Registering the battery component in the JSX intrinsic file.

  • 00:12:58 - Adding and testing schematic snapshot.

  • 00:17:09 - Snapshot test failures and debugging.

  • 00:19:00 - Overview of the TS Circuit Core architecture and render phases.

  • 00:21:00 - Jumping to Props Repo to define battery-related properties.

  • 00:27:12 - Implementing the battery in CircuitJSON.

  • 00:32:05 - Fixing type and barrel export issues.

  • 00:36:10 - Merging PR and handling dependencies.

  • 00:40:07 - Debugging schematic rendering and snapshot tests.

  • 00:50:02 - Conclusion and final comments on snapshot and battery integration.

Discussion about this podcast