graphql-let icon indicating copy to clipboard operation
graphql-let copied to clipboard

Custom PRINT_PREFIX

Open mxstbr opened this issue 4 years ago • 2 comments

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 avatar Jan 11 '21 19:01 mxstbr

@mxstbr Nice. I'll merge if you give me a PR👍

piglovesyou avatar Jan 12 '21 01:01 piglovesyou

The future PRer, please add a new option in our .graphql-let.yml.

piglovesyou avatar May 20 '21 02:05 piglovesyou