18F / web-design-standards-drupal

A Drupal base theme that uses the U.S. Web Design System. (ARCHIVED)
Other
46 stars 12 forks source link

Add drush sub-theming commands for Drupal 7.x version #4

Open AlexBrown-appnovation opened 8 years ago

AlexBrown-appnovation commented 8 years ago

Any thoughts on throwing some drush features in the theme for some easy sub-theming? I figure it may be best to leave the USWDS codebase separate from any customized code so that it can be easily updated when new versions are released. This would avoid conflicts when updating and keep the codebase nice and clean at the same time.

fureigh commented 8 years ago

@AlexBrown-appnovation Thanks for opening this issue! I'd been thinking of keeping the USWDS codebase in an assets folder and encouraging standard organization for subthemes... can you elaborate on how you'd use drush features here?

fureigh commented 8 years ago

(Drupal 7 equivalent of the above, which was a Drupal 8-related link.)

AlexBrown-appnovation commented 8 years ago

Yes we would absolutely encourage the standard organization of sub themes while adding some handy drush commands that would allow users to very quickly create their sub-themes without all the copy/paste hassle.

If you look in the codebase of projects like Zen or AdaptiveTheme, they include this functionality. As I read and think about this however, perhaps this is more of a phase-2 item or 'nice-to-have' rather than a 'must-have'.

And yes, I agree with keeping everything in the assets folder as well!

fureigh commented 8 years ago

Ah, so this is specifically about drush commands for creating subthemes. Cool. I'll mark it enhancement for now.

fureigh commented 8 years ago

Took the liberty of changing the issue name; if you don't think that accurately reflects it, let me know.

fureigh commented 8 years ago

Once these are created, let's be sure to document them in #12.