First, install the Bebop runtime:
npm add bebop
yarn add bebop
Followed by the Bebop compiler:
npm add bebop-tools
yarn add bebop-tools
Next, init your project:
npx bebopc init
yarn bebopc init
Open the generated bebop.json file and add a TypeScript generator:
bebop.json
{ "include": [ "**/*.bop" ], "generators": { "ts": { "outFile": "src/bops.gen.ts" } }}
Now, you can compile your Bebop schemas to TypeScript:
npx bebopc build
yarn bebopc build