Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 868 Bytes

BUILD.md

File metadata and controls

32 lines (22 loc) · 868 Bytes

Building and testing typed-ocpp

npm run codegen
npm run build
npm run test

Requires node >= 18.17.

The codegen script

The schemas/ocpp16 and schemas/ocpp20 folders contain the official JSON Schema documents published by the Open Charge Alliance.

The codegen script generates the following .ts source files against those schema documents:

file description
src/ocpp16/types.ts type declarations for OCPP 1.6 payloads
src/ocpp16/schemas.ts JSON Schema objects for OCPP 1.6 payloads
src/ocpp20/types.ts type declarations for OCPP 2.0.1 payloads
src/ocpp20/schemas.ts JSON Schema objects for OCPP 2.0.1 payloads

The build script

The build script takes care of standard TS transpilation into JS.