graphql-let
graphql-let copied to clipboard
Custom PRINT_PREFIX
I'm using graphql-let in a Next.js app, and would like to match the PRINT_PREFIX specified in lib/print.ts
to match the Next.js-style logs.
This is what it looks like right now:
event - build page: /
wait - compiling...
[ graphql-let ] src/graphql/client/queries/getCurrentUser.graphql was generated.
event - compiled successfully
event - build page: /api
This is what it could look like if I could change the PRINT_PREFIX to match Next.js-style:
event - build page: /
wait - compiling...
info - graphql-let: src/graphql/client/queries/getCurrentUser.graphql was generated.
event - compiled successfully
event - build page: /api
Essentially, I want to set PRINT_PREFIX to "info - graphql-let: "
instead of [ graphql-let ]
.
@mxstbr Nice. I'll merge if you give me a PR👍
The future PRer, please add a new option in our .graphql-let.yml.