0.0.10 • Published 1 year ago

0gql v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

0gql

Codemod tool to detect gql tag templates and extract them to separate files

Usage

By default, this codemod finds all gql tag usage from graphql-tag imports of a given pattern. Then, it analyses and puts GraphQL content and fragments into a separate .graphql file.

# This codemods all .ts and .tsx files under path/to/files that import and use gql tag
$ npx 0gql@latest "path/to/files/*.ts*"

There are other options as well. Check the full options in the Options section.

Options

Usage: 0gql [options] <file pattern>

Options:
  -V, --version                       output the version number
  -e, --extension <target extension>  extension of the generated file/s (default: ".graphql")
  -m, --modules <gql tag module/s>    module/s where gql tag are imported from. Comma separated (default: "graphql-tag")
  -r, --remove                        remove original gql tag usage
  -h, --help                          display help for command
0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago