carrot / sprout-static-cms

A sprout template for building a static CMS with Roots, Contentful, and Netlify.
Other
53 stars 10 forks source link

Content Model Generator #4

Closed joshrowley closed 9 years ago

joshrowley commented 9 years ago

This adds a Contentful Content Model generator to the template. Still very much WIP, but opening this PR to solicit feedback on the initial interface. Keeping it very similar to Rails conventions so:

$ sprout run static-cms model Post title:text description:text slug:symbol date:date rank:integer price:number private:boolean

Still work to be done on testing all the field types. Down the road, I think editing commands could be added, as well as auto generation of sample entries and a sample view showing how to load it. It might also be useful to keep a schema on the content models that's synced with Contentful. Lots of potential here.

joshrowley commented 9 years ago

:+1: from me :grin: