It has been tough 3 weeks of conversion the node #oclif based app to terminal in browser. The business prefer #WebContainers by #StackBlitz if those been open for on-prem deployment and FedRAMP certified or at least certifiable.
Anyway it if satisfying to see as native CLI executable as it's web version.
CC #friendos
#oclif #webcontainers #stackblitz #friendos
`import {MyQueryDocument} from myQuery.graphql` with strict TS checks on @apollo/client `useQuery` and `client.query()` on node app is another challenge beaten this week.
No docs or reference implementation, so have to be inventive on #linter, #typescript, #codegen config
For curious: the key is to generate `myQuery.graphql.ts` by codegen near-operation-file. works perfect in React app, in
#oclif app have to trick with
`import {MyQueryDocument} from myQuery.graphql-generated`
#linter #typescript #codegen #oclif
RT @ukrhq
I wrote another CLI :v
This converts any URL into readable markdown using @Mozilla's readability library.