Shopify / storefront-api-examples

Example custom storefront applications built on Shopify's Storefront API
https://help.shopify.com/api/storefront-api
MIT License
1.12k stars 329 forks source link

[NodeJS + GraphQL] Upgrade dependencies in sample project #133

Closed madmath closed 3 years ago

madmath commented 3 years ago

Wanted to set-up a site with the Storefront API and ran the node-graphql-client sample project. However I found that the dependencies were old.

I ran the npm-check-updates tool (ncu), upgrading the dependencies and fixing a few small things that had changed since. I believe I have kept all of the functionality, and I've tested the commands in package.json.

I am not an expert in node, nor had I used Babel before. It's quite possible there's newer ways of doing things. If those are pointed out I will gladly modify the code some more!

madmath commented 3 years ago

Thanks for the review, made an improvement based on it. Merging!