Skip to content

A set of CLI commands that generates code to make the backend life a dream! Currently WIP - first release coming soon!

License

Notifications You must be signed in to change notification settings

jonnydgreen/hello-gen

Repository files navigation

hello-gen

CI workflow

Description

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.

Install

Manual

Retrieve the hello-gen binary by downloading a pre-compiled binary or compiling it from source.

MacOS/Linux

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/

Windows

This Stack Overflow article contains instructions for setting the PATH on Windows through the user interface.

With Deno

deno install --allow-write --allow-read -f https://raw.githubusercontent.com/jonnydgreen/hello-gen/main/src/hello-gen.ts

With asdf (coming soon)

Usage

$ 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:

    ...

Commands

hello-gen graphql:types

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")

Contributing

All PRs are welcome! :)

To get setup, you must install and configure the pre-requisites:

To run tests:

deno test --lock=lock.json --allow-read --allow-write -A

License

MIT

About

A set of CLI commands that generates code to make the backend life a dream! Currently WIP - first release coming soon!

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published