Skip to content

Getting started (TypeScript)

PackageDownloads
bebopbebop
bebop-toolsbebop

First, install the Bebop runtime:

Terminal window
npm add bebop

Followed by the Bebop compiler:

Terminal window
npm add bebop-tools

Next, init your project:

Terminal window
npx bebopc init

Open the generated bebop.json file and add a TypeScript generator:

{
"include": [
"**/*.bop"
],
"generators": {
"ts": {
"outFile": "src/bops.gen.ts"
}
}
}

Now, you can compile your Bebop schemas to TypeScript:

Terminal window
npx bebopc build