A webpack loader / babel-plugin / babel-plugin-macros / CLI / generated file manager of GraphQL code generator.
APACHE-2.0 License
Published by piglovesyou over 4 years ago
To migrate from 0.9.x or older, please do these three:
.gitignore
: erase __generated__
and add *.graphql.d.ts
(and *.graphqls.d.ts
, if you use Resolver Types feature)generateDir
property from your .graphql-let.yml. It's not in use anymore. (Tip: The intermediate .tsx
s are now generated in node_modules/graphql-let/__generated__
)schema
in .graphql-let.yml, point to a single schema file, like lib/type-defs.graphqls
. Glob pattern (**/*.graphqls
) is not supported anymore.d.ts
in the same directory of corresponding .graphql
s so they never conflict, fixes #82, thanks @freshollie for reportingimport "./a.graphql"
to a.graphql.d.ts
in IDE, fixes #25This release includes a breaking change on the experimental feature.
.graphqls.d.ts
has to have a nameThere're several spec changes as well.
.tsx
are written always in node_modules/graphql-let/__generated__
generateDir
in graphql-let.yml gets obsoletegraphql-tag/loader
after graphql-let/schema/loader
Published by piglovesyou over 4 years ago
Fixes https://github.com/piglovesyou/graphql-let/issues/64. Big thanks for the issue and PR that fixed it by @deanslamajr 😄
Fixes https://github.com/piglovesyou/graphql-let/pull/67. Thank you for reporting, @lukasluecke 😄
Published by piglovesyou over 4 years ago
Breaking change: now the @graphql-codegen/cli
and @graphql-codegen/plugin-helpers
are in peerDependencies. Please run the following:
yarn add --dev @graphql-codegen/cli @graphql-codegen/plugin-helpers
Published by piglovesyou over 4 years ago