This PR adds in some quality of life improvements to next-urql 🎉
Added Travis CI with steps for type checking, linting, formatting, testing, and building. We'll want to add Codecov eventually as well, but not sure if we'll need to get this repo set up with permissions in order to do that.
Autogenerate TS defs using Rollup. This is made possible by rollup-plugin-typescript2. Rather than maintain a set of handwritten ones ourselves, we can just autogenerate them from the source TS itself (see the modifications to rollup.config.js).
Add displayName to the HoC. Now, components wrapped with withUrqlClient will have that signaled in the React Dev Tools:
Ensure we point to the non-minified build files in package.json. The minified versions should already get picked up in production, so we want to support getting the dev versions in dev for easier debugging. I'm not confident the source files get pretty printed in the Debugger, however, so will need to look at that a bit closer 👀
This PR adds in some quality of life improvements to
next-urql
🎉rollup-plugin-typescript2
. Rather than maintain a set of handwritten ones ourselves, we can just autogenerate them from the source TS itself (see the modifications torollup.config.js
).displayName
to the HoC. Now, components wrapped withwithUrqlClient
will have that signaled in the React Dev Tools:package.json
. The minified versions should already get picked up in production, so we want to support getting the dev versions in dev for easier debugging. I'm not confident the source files get pretty printed in the Debugger, however, so will need to look at that a bit closer 👀