jcward / haxe-graphql

Utilities for working with Haxe and GraphQL.
MIT License
23 stars 6 forks source link

Installation via haxelib fails #42

Open ghost opened 3 years ago

ghost commented 3 years ago

When i try to install the gql2hx library via haxelib it fails:

haxelib install gql2hx Downloading gql2hx-0,0,1.zip... Download complete: 0.25KB in 0.3s (0.8KB/s) Download complete: 1.76KB in 0.3s (4.4KB/s) Installing gql2hx... Error: Invalid filename : ../LICENSE

I tried manually to download it and unzip it but its only one file without much content. (the zip is only 2kb total, which cannot be the right size). Somewhere i read I should install it via NPM, but I have a project where every lib is installed via haxelib a all library versions which exist on haxelib seems to be tested and working. would you mind to check the correct upload to haxelib so i can use it from there (my goal is to write a client which acesses a django based graphql backend

Thank you for your help!

jcward commented 3 years ago

Hi @tomcode75,

Sorry for the late reply. As noted in the top-level README, this project is comprised of a lot of pieces (hxgen, parser, webdemo, etc.) The webdemo shows how Haxe types can be fully generated from GQL source.

The vision for the gql2hx-haxelib was to skip the step of Haxe file generation, and generate type definitions at runtime from the .gql source files. The v 0.0.1 haxelib was published merely as a placeholder, but unfortunately, the project never moved in this direction, as generating .hx source files turned out to be sufficient for our use.

I'll see about unpublishing it, or perhaps updating the readme just to point back to this repo for other use cases.