lotas / contentful-graph

Visual representation of contentful content models in form of graphs
https://www.contentful.com/blog/2017/08/08/how-to-quickly-visualize-your-content-model/
MIT License
59 stars 6 forks source link

Make it an npm module #2

Closed stefanjudis closed 7 years ago

stefanjudis commented 7 years ago

Heyo. 👋

I'm really digging this module. Do you have plans to make it a proper npm module?

lotas commented 7 years ago

Hey @stefanjudis I didn't think about this to be honest, but I agree that this makes sense. Will do. Thnx!

stefanjudis commented 7 years ago

Let me know how it goes. ;)

I think this can be a really valuable tool and I'd like to feature it in our "Tools, Libraries and Utilities" in our developer portal when running smoothly and is a proper module.

lotas commented 7 years ago

Hey @stefanjudis @floelhoeffel Thanks to your comments and guidance I finally managed to publish it 🎉

It can be used in multiple ways now:

CLI: npx contentful-graph (env variables must be set)

CONTENTFUL_SPACE_ID=123 CONTENTFUL_MANAGEMENT_TOKEN=token npx contentful-graph

Or programmatically by importing convertApi

Thanks!

stefanjudis commented 7 years ago

That's so cool! Thanks for doing that. I'll play around with it again next week.. 🎉

lotas commented 7 years ago

Thank you! Have fun :)