Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.53 KB

File metadata and controls

44 lines (27 loc) · 1.53 KB

Development

It's basically writing OpenAPI spec, to contribute code to this client.

The client is generated using openapi-generator and the OpenAPI spec is written with boats.

Everything in ./dist & ./src/sdk is generated and should not be modified manually. To adjust the API client, docs or the built OpenAPI spec, adjust the YAML files in ./oas to document the API. Check the boats documentation and the OpenAPI v3 spec for further guidance.

Setup

Requires Docker & NodeJS 24+

# Install dependencies
pnpm install

# Start build of ./dist & ./src/sdk
pnpm build

# During development the build can run when a source file was changed using
pnpm dev

Build process

The build process is configured in scripts/build.ts and scripts/rebuild.ts. These scripts combine all the different CLI tools for the build process and ensures everthing fits together. They also modify some generated files to make them compatible.

Read more about the build process.

Testing

All tests are running against a local SimpleLogin installation built by ./mock-server.

Tests are run in parallel and every test gets their own user account, automatically created by the api() test case.

# Start the test environment
cd mock-server/
docker-compose up -d

Contribute

PRs are highly welcome. Remember to run the build and commit the generated files.