10up / generator-wp-make

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

Consolidate shared code #10

Closed lkwdwrd closed 9 years ago

lkwdwrd commented 9 years ago

While themes and plugins are fairly separate, there is a fair bit of code in each of the generators that is the same. It would be very nice to consolidate the various templates into a single file to ease maintenance going forward so that a change made to the Gruntfile in a plugin doesn't also have to be made in the theme and child-theme generators.

I was able to accomplish it in my vvv-generator but never got around to refactoring this generator to make use of shared code.

ericmann commented 9 years ago

Shared code now lives in the /shared directory.