Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 2.21 KB

File metadata and controls

68 lines (45 loc) · 2.21 KB

Contributing

We welcome contributions to this project.

Getting started

  1. Fork the repository

    Look at the fork a repo github documentation to learn how to fork a repository.

  2. Clone the repository

    Once forked, clone the repository to your machine.

    git clone git@github.com:<your-username>/generator-atlassian-compass-event-catalog.git
  3. Install the dependencies

    The project uses pnpm as the package manager.

    pnpm install

Developing

It uses vitest for testing, eslint for linting, and prettier for formatting.

pnpm run test              # run tests in watch mode
pnpm run test -- run       # single test run (no watch)
pnpm run test:coverage     # run tests with coverage report
pnpm run lint              # check for lint errors
pnpm run lint:fix          # auto-fix lint errors
pnpm run format:diff       # check formatting
pnpm run format            # auto-format files
pnpm run build             # build with tsup (CJS + ESM + .d.ts)

You can link the project to your EventCatalog to test your generator.

npm link

After linking, then you can navigate to your EventCatalog directory and link back the package.

npm link @ismaelmartinez/generator-atlassian-compass-event-catalog

Then, in this generator project, you can run the build command to build the project.

pnpm run build

Finally, you can run the generate command in your EventCatalog project as you will do when using the package.

npm run generate

You should be ready to start developing with the generator. Open an issue if you find any problems.

EventCatalog uses the EventCatalog SDK to interact with the Catalog. The generator also integrates with the Compass GraphQL API for API mode, fetching components, teams, and metadata directly from Compass.