juancastillo0 / leto

Dart GraphQL server libraries. Utilities, code generator, examples and reference implementation.
https://juancastillo0.github.io/leto/
MIT License
38 stars 6 forks source link

Question: Packages not published? #3

Closed kmcgill88 closed 1 year ago

kmcgill88 commented 2 years ago

I feel like I'm missing something. The README install instructions say add these dependencies but it doesn't appear those packages are published to pub.dev? 😁

dependencies:
  leto_schema: ^0.0.1
  leto: ^0.0.1
  leto_shelf: ^0.0.1
  shelf: ^1.0.0
  shelf_router: ^1.0.0
  # Not nessary for the server, just for testing it
  http: ^1.0.0

dev_dependencies:
  # Only if you use code generation
  leto_generator: ^0.0.1
  build_runner: ^2.0.0
juancastillo0 commented 2 years ago

Yes, the package is not published at the moment, sorry for not being explicit enough in the readme. You can use it directly from git or you could also clone the repository locally and use relative dependencies like this example. It will be published, I want to stabilize some apis first and there where some PRs in the gql package that where necessary before publishing.

You could try this if you don't want to clone the repo locally:

dependency_overrides:
  leto_generator:
    git:
      url: https://github.com/juancastillo0/leto
      path: leto_generator
  leto:
    git:
      url: https://github.com/juancastillo0/leto
      path: leto
  leto_schema:
    git:
      url: https://github.com/juancastillo0/leto
      path: leto_schema
  leto_shelf:
    git:
      url: https://github.com/juancastillo0/leto
      path: leto_shelf

Let me know if you need more help!

kmcgill88 commented 1 year ago

Any roadmap to get this published? Also, are you in the GraphQL Dart Discord?

juancastillo0 commented 1 year ago

Hi thanks, I joined the Discord and just publish the packages. You can use all of them with the ^0.0.1-dev.1 version:

dependencies:
  leto_schema: ^0.0.1-dev.1
  leto: ^0.0.1-dev.1
  leto_shelf: ^0.0.1-dev.1
  shelf: ^1.0.0
  shelf_router: ^1.0.0
  # Not nessary for the server, just for testing it
  http: ^1.0.0

dev_dependencies:
  # Only if you use code generation
  leto_generator: ^0.0.1-dev.1
  build_runner: ^2.0.0
warrenisarobot commented 1 year ago

Thank you!