-
-
Notifications
You must be signed in to change notification settings - Fork 11
Description
The current README for contributing (under 'pull requests') doesn't detail how to actually make changes and run the codegen.
@floydspace has outlined these in an issue comment as follows:
- pnpm install
- add the new clients in the list in the file scripts/client-singularities.ts
- run pnpm default to generate folder structure by projen
- run pnpm codegen-client for your new clients to generate rest of the files
- commit and raise the PR
Additionally, the tests (including those generated by adding a client) can be run with:
pnpm test
Given that the codegen will create new files that are not added as part of the existing, it should be made clear that unversioned files should be added to the commit (so they are not perceived as artifacts). It's possible that the codegen step could also include adding the files to git (but not committing) assuming that the codegen completes without error.
I'm also unclear on how I can use the new client prior to the pull request being merged. I've looked at various examples but I don't seem to be able to reference either my local copy or my fork on github based on a branch name that contains the commits). My IDE complains that it can't find the package. Maybe there is another build step that needs to be done locally to allow this. Docs on this would be helpful (I don't regularly contribute to packages by way of pull requests so this is always painful to figure out).