Warning
This package is still in Alpha.
- Src (included in the package)
- Stongly typed classes, including properties, for Klipper configurations
- Classes have conversion methods for:
- Components from Moonraker JSON
- Component to Klipper configuration
- Component from Klipper configuration (in progress)
- Utils (in the code project, not in the final package)
- Generate classes from the Klipper documentation
- Tests
- Creating components from Moonraker JSON
- Creating components from Klipper configuration files (in progress)
Everything in the src/models/generated
folder is generated using generate-klipper-classes.ts
.
It reads and parses the Config_Reference.md
.
Some minor mods are needed before and after running the generate script.
The following sections describes those mods.
The Config_Reference.md is downloaded directly from Klipper's GitHub. The following mods are done to ensure the auto-generation of the classes works well.
- Enusre all
# (comments)
comments are hashtag three spaces - adc_temperature: Comment out duplicate props
- board_pins: comment out mcu
- Rename all stepper_* to stepper
- Rename extruder1 to extruder
The following manual mods are needed after generating the classes.