10up / generator-wp-make

A Yeoman generator for making WordPress things
184 stars 42 forks source link

Bringing component library into the make generator #91

Open jonbellah opened 8 years ago

jonbellah commented 8 years ago

When generating a new theme, there's little in the way of front-end markup and templating. Once the component library is in a releasable state, what do you think about bringing in some of the basic components (blogroll, author cards, navigation menu, etc)?

allenmoore commented 8 years ago

@jonbellah This is a great idea. What are your thoughts of a generator plugin that included the component library?

jonbellah commented 8 years ago

Sounds like a plan. Are there docs/best practices anywhere on how to structure those generator plugins?

lkwdwrd commented 8 years ago

V1 is still in pretty heavy construction, but extensions is a standalone project I wrote. The Readme has some docs here: https://github.com/lkwdwrd/extendable-yeoman. What's mostly missing right now is docs on how V1 structures data and gives access to extensions to modify the behavior of the generator.

We will be breaking the Library generator out into an extension as part of the V1 build, so when that's done there will be an example of how it might look. Adding the ability to pull in the component library is an awesome idea. I do want to be very careful about adding much to the core set of generators, but that really is the beauty of extensions here.

RachelRVasquez commented 8 years ago

I've finally set up WP Make successfully and gave it a try in a test theme. 😄 I wanted to suggest based on what's there by default, that we include some files for front-end like the issue @JonBellah linked to, a WordPresss stylesheet, as well as some bare bones template files.

I feel like every time I create a WP theme from scratch where this generator was used, I have to create these files so having the foundation template heirarchy would help a lot! Thoughts?