-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from IsmaelMartinez/fix-update-dependencies
Fix update dependencies and improve documentation
- Loading branch information
Showing
5 changed files
with
481 additions
and
646 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,56 +5,61 @@ We welcome contributions to this project. | |
## Getting started | ||
|
||
1. Fork the repository | ||
|
||
Look at the [fork a repo](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo) github documentation to learn how to fork a repository. | ||
|
||
1. Clone the repository | ||
|
||
```sh | ||
git clone [email protected]:ismaelmartinez/generator-compass-event-catalog.git | ||
``` | ||
Once forked, clone the repository to your machine. | ||
|
||
```sh | ||
git clone [email protected]:ismaelmartinez/generator-compass-event-catalog.git | ||
``` | ||
|
||
1. Install the dependencies | ||
|
||
```sh | ||
pnpm install | ||
``` | ||
The project uses [pnpm](https://pnpm.io/) as the package manager. | ||
|
||
1. Run your tests | ||
```sh | ||
pnpm install | ||
``` | ||
|
||
## Developing | ||
|
||
It uses [vitest](https://vitest.dev/) for testing. | ||
|
||
```sh | ||
pnpm test | ||
``` | ||
|
||
1. Link the project | ||
|
||
Link the project so it can be used in your EventCatalog | ||
You can link the project to your EventCatalog to test your generator. | ||
|
||
```sh | ||
npm link | ||
``` | ||
|
||
1. Using the package in your EventCatalog | ||
|
||
Navigate to your EventCatalog directory, then link the package. | ||
After linking, then you can navidate to your EventCatalog directory and link back the package. | ||
|
||
```sh | ||
npm link @ismaelmartinez/generator-atlassian-compass-event-catalog | ||
``` | ||
|
||
1. Compile and watch your plugin | ||
Then, in the generator project, you can run the build command to build the project. | ||
|
||
```sh | ||
pnpm run build | ||
``` | ||
|
||
1. Run the generator | ||
|
||
In your EventCatalog directory run: | ||
Finally, you can run the generator in your EventCatalog project. | ||
|
||
```sh | ||
npm run generate | ||
``` | ||
|
||
This will run your generator code and interact with your Catalog. | ||
|
||
You can now add your custom code to your generator to test against your catalog. | ||
Now you are ready to start developing your generator. | ||
|
||
EventCatalog uses [EventCatalog SDK](https://www.eventcatalog.dev/docs/sdk) to interact with the Catalog. | ||
|
||
You can use the [EventCatalog SDK](https://www.eventcatalog.dev/docs/sdk) to get utils to read, write and delete files in your Catalog easier. | ||
You can also explore the [get started building compass apps](https://developer.atlassian.com/cloud/compass/integrations/get-started-integrating-with-Compass/#get-started-building-compass-apps) to learn more about the Compass API. I haven't explore it yet. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.