WIP - first release coming soon! :)
HelloGen provides a set of CLI commands to make the backend life a dream so you can "crack on" with the important things.
Retrieve the hello-gen binary by downloading a pre-compiled binary or compiling it from source.
This command assumes that the binary is currently in your downloads folder and
that your PATH
includes /usr/local/bin
, but you can customise it if your
locations are different.
mv ~/Downloads/hello-gen /usr/local/bin/
This Stack Overflow article contains instructions for setting the PATH on Windows through the user interface.
deno install --allow-write --allow-read -f https://raw.githubusercontent.com/jonnydgreen/hello-gen/main/src/hello-gen.ts
$ hello-gen -h
Usage: hello-gen
Version: 0.1.0
Description:
Hello-gen in a generator CLI for all your development needs.
Options:
-h, --help - Show this help.
-V, --version - Show the version number for this program.
Commands:
...
Generates GraphQL Types from an input schema
$ hello-gen graphql:types -h
Usage: hello-gen graphql:types
Version: 0.1.0
Description:
Generates GraphQL Types from an input schema
Options:
-h, --help - Show this help.
-i, --input [input] - File path to GraphQL schema. (Default: "schema.graphql")
-o, --output [output] - Output file path to write to. (Default: "types.generated.ts")
All PRs are welcome! :)
To get setup, you must install and configure the pre-requisites:
- Install and configure Deno.
- Install and configure velociraptor.
To run tests:
deno test --lock=lock.json --allow-read --allow-write -A
MIT