Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.05 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.05 KB

QMK Compile API Frontend

GitHub Workflow Status Discord

Development

Project setup

yarn install

Compiles and hot-reloads for development

yarn dev

Build for production and serve files

yarn build && npx serve dist

Generate keyboard.d.ts

# convert from hjson -> json
pipx run hjson -j ~/qmk_firmware/data/schemas/keyboard.jsonschema > src/assets/schemas/keyboard.jsonschema
pipx run hjson -j ~/qmk_firmware/data/schemas/definitions.jsonschema > src/assets/schemas/qmk.definitions.v1

# generate ts types from jsonschema
npx --package=json-schema-to-typescript json2ts  -i src/assets/schemas/keyboard.jsonschema  --cwd=src/assets/schemas/ -o keyboard.d.ts