Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(shared-model): generate models from graphql schema #670

Merged
merged 6 commits into from
Feb 15, 2024

Conversation

timonmasberg
Copy link
Member

@timonmasberg timonmasberg commented Feb 10, 2024

Description

Introduces npm run gql-to-model which performs code to schema actions and then uses graphql-codegen to generate typescript types from the schema.
Furthermore, adds the shared-models library and merges shared-auth (which only includes models) into the new lib.

Checklist:

  • The title of this PR and the commit history is conform with
    the Conventional Commits specification.
  • I have performed a self-review of my own code.
  • My changes generate no new warnings, SonarCloud reports no Vulnerabilities, Bugs or Code Smells.
  • I have added tests (unit and E2E if user-facing) that prove my fix is effective or that my feature works,
    Coverage > 80% and not less than the current coverage of the main branch.
  • The PR branch is up-to-date with the base branch. In case you merged main into your feature branch, make sure you have run the latest NX migrations (nx migrate --run-migrations).

@timonmasberg timonmasberg requested a review from JSPRH February 10, 2024 22:25
@timonmasberg timonmasberg self-assigned this Feb 10, 2024
JSPRH
JSPRH previously approved these changes Feb 15, 2024
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@timonmasberg timonmasberg merged commit b5c15f7 into main Feb 15, 2024
5 checks passed
@timonmasberg timonmasberg deleted the add-gql-model-gen branch February 15, 2024 16:34
@timonmasberg
Copy link
Member Author

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants