Skip to content

Mesh SDK boilerplate generation & nx monorepo integration #2103

Open
@JustusNBB

Description

@JustusNBB

Is your feature request related to a problem? Please describe.

nx monorepos already have a great integration for GraphQL (e.g. Apollo and NestJS).
But GraphQL Mesh is not part of this yet!

Describe the solution you'd like

Alike this stack, create nx plugins to run mesh commands on libraries (and apps) through nx:

  • generate example Mesh app or lib
  • serve mesh (app or lib)
  • generate types into target (default/configurable) directory (app or lib)
  • build sdk into shared dist folder, use nx module linking to import into another lib or app (lib only)
  • boilerplate generation for e.g. specific mesh handlers (federation?)

Describe alternatives you've considered

I am not sure if this could be extended to make it the default collection (in nx workspace.json), I am mostly interested in the integration as a library, but I want the ability to run mesh commands through nx, and I am still a beginner with nx tooling.
There could be an easy way to use existing @nrwl/node executors without creating new nx plugins.

Additional context

An nx monorepo setup has many advantages, namely shared package dependencies and tooling to tend them: graph affected modules!
I also like nx's approach because it features many preset conventions and it hides babel/webpack complexity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions