This project aims to help developers compose USB descriptors for their USB devices. It is a web application that allows users to create USB descriptors by filling out forms and then generates the corresponding C code.
This project is very much a work in progress. The goal is to support all USB descriptors and provide a user-friendly interface for creating them.
Help is always welcome! If you would like to contribute, please file a pull request.
In particular, the following features are needed:
- Support for more USB descriptors
- Upload for JSON files
- Light UI mode
- More output formats
- Unit and integration tests
A compiled version is available at https://usb-descryptor.github.io/.
VSCode + Volar (and disable Vetur).
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue
types.
See Vite Configuration Reference.
npm install
npm run dev
npm run build
Run Unit Tests with Vitest
npm run test:unit
Lint with ESLint
npm run lint