Comments (2)
Prettier is an excellent tool in my opinion. Since it now has pretty robust TypeScript support, this seems like the winner to me. Which dependencies would need to be taken on besides prettier?
from gql2ts.
@arahansen sorry, what I meant by that is that prettier has a good amount of dependencies that we'll have to take in.
I completely agree that prettier is awesome, I use it every day 😄, but I'm not sure I want to force users to have it.
I was thinking the default package could do something like
const format = code => {
try {
const prettier = require('prettier');
return prettier.format(code);
} catch {
console.warn('To enable pretty-printing, please install prettier')
return code;
}
}
from gql2ts.
Related Issues (20)
- Custom Directives HOT 1
- generated .d.ts lacking exports HOT 3
- `TypeError: Cannot read property 'filter' of undefined` when generating flow/typescript file from schema HOT 6
- Support graphql 14.0.0 HOT 2
- Can u provide an option for no namespace generator HOT 4
- map scalar to native type HOT 3
- Cannot find namespace HOT 14
- how to export my schema?
- Question about fragments vs. inline fragments
- feature request: gql client library as new package HOT 7
- Can't figure out how to make this work from the README HOT 3
- An in-range update of graphql is breaking the build 🚨 HOT 16
- Add eslint-disable to generated types file
- graphql parameters are omitted in typings HOT 1
- A union of object interfaces is formatted oddly with inline fragments HOT 9
- Incorrect error messages when schema contains custom directives
- feature request: add option to output interface props of interfaces as partials for types with separated field resolvers
- An in-range update of prettier is breaking the build 🚨 HOT 2
- Payment required
- @gql2ts/language-typescript > @gql2ts/[email protected] support for graphql 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gql2ts.