@wezom/graphql-codegen-configurator
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

@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();

Readme

Keywords

none

Package Sidebar

Install

npm i @wezom/graphql-codegen-configurator

Weekly Downloads

14

Version

0.4.0

License

BSD 3-Clause License

Unpacked Size

21 kB

Total Files

12

Last publish

Collaborators

  • dutchenkooleg