Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eddeee888/nx-graphql-code-generator

Package Overview
Dependencies
Maintainers
0
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eddeee888/nx-graphql-code-generator

The Nx Plugin to integrate graphql-code-generator with Nx projects

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
104
decreased by-68.29%
Maintainers
0
Weekly downloads
 
Created
Source

@eddeee888/nx-graphql-code-generator

This Nx plugin can be used to add graphql-code-generator config and packages to an Nx project.

Generators

add

You can use this generator to wire up codegen config to an Nx project.

$ nx generate @eddeee888/nx-graphql-code-generator --project=<existing project name>
OptionsRequiredDescription
projectYesNx project to add codegen config to
schemaYesMaps to codegen's schema field
outputNoOutput path for the generated path. Relative from project root. More can be added manually later. Default: graphql/generated.ts
documentNoMaps to codegen's documents field
pluginPresetNoCommon codegen plugins presets depending on project language, use cases and libraries
configNoName of codegen config file. Default: graphql-codegen.ts

Executors

codegen

You can use this executor to run codegen CLI. Note that the add generator automatically adds this to the project config. Your project config should look like this:

// libs/<project name>/project.json
{
  // ...
  "targets": {
    // ...
    "graphql-codegen": {
      "executor": "@eddeee888/nx-graphql-code-generator:codegen",
      "options": {
        "configFile": "libs/<project name>/codegen.yml"
      }
    }
  }
}

You can run the executor like you woud other targets:

$ nx graphql-codegen <project name>
OptionsRequiredDescription
configFileYesPath to the project's codegen config file
watchNoRun codegen in watch mode

Keywords

FAQs

Package last updated on 04 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc