Skip to content

WezomCompany/graphql-codegen-configurator

Repository files navigation

@wezom/graphql-codegen-configurator

NPM version badge NPM license badge CI Test and Build

Preset generator from GraphQL operations to Typescript code for the @graphql-codegen

Coverage

Statements Branches Functions Lines
Statements Branches Functions Lines

Usage example

Create codegen.ts file in your project root directory and add the following code with your own source paths:

// codegen.ts
import { SplitEnumsConfigurator } from '@wezom/graphql-codegen-configurator';

const configurator = new SplitEnumsConfigurator({
	schema: 'src/gql/schema.graphql',
	outputDir: './src/gql/__generated__',
	documents: ['src/**/*.tsx', 'src/**/*.ts'],
});

export default configurator.create();

About

Preset generator from GraphQL operations to Typescript code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •