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(cli): doctor command #169

Merged
merged 9 commits into from
Apr 5, 2024
Merged

feat(cli): doctor command #169

merged 9 commits into from
Apr 5, 2024

Conversation

JoviDeCroock
Copy link
Member

Summary

Addresses part of #76

This adds gql.tada doctor which does the following

  • Check whether we have a package.json
  • Check whether we have a typescript dependency > 4.1.0 (when string literal parsing got introduced)
  • Check whether gql.tada is intalled
  • Check whether @0no-co/graphqlsp is installed
  • Check whether we have a tsconfig
  • Check whether GraphQLSP is in the tsconfig
  • Check whether the schema setting is valid
  • Check whether the tadaOutputLocation is present

Copy link

changeset-bot bot commented Apr 3, 2024

🦋 Changeset detected

Latest commit: bbf9535

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JoviDeCroock JoviDeCroock requested a review from kitten April 3, 2024 17:18
@kitten kitten force-pushed the main branch 2 times, most recently from 2dde208 to 06e6488 Compare April 4, 2024 09:13
@@ -49,7 +49,8 @@
},
"dependencies": {
"@gql.tada/internal": "workspace:*",
"graphql": "^16.8.1"
"graphql": "^16.8.1",
"semiver": "^1.1.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move this to devDependencies and bundle it away, for the same reasons as we bundle most other things away in cli-utils?

@JoviDeCroock JoviDeCroock force-pushed the doctor-command branch 2 times, most recently from 6b89ab2 to d05d787 Compare April 5, 2024 11:01
@JoviDeCroock JoviDeCroock enabled auto-merge (squash) April 5, 2024 11:03
@JoviDeCroock JoviDeCroock merged commit d1d315a into main Apr 5, 2024
1 check passed
@JoviDeCroock JoviDeCroock deleted the doctor-command branch April 5, 2024 11:05
@github-actions github-actions bot mentioned this pull request Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants