-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Now that we've discussed and agreed that supporting the Twig Edition fork is to be our focus for a starting Pattern Lab, let's discuss how we suggest people get started using Pattern Lab in Drupal. The Drupal Edition of Pattern Lab is basically just the Twig Edition with these extra dependencies, which are suggestions and not requirements: drupal-twig-components, plugin-data-transform and Drupal-specific StarterKit suggestions.
How best to handle this?
@cybtachyon had wrote:
One thing I dislike though
we have documentation on how to integrate the Twig Edition into Drupal and the different plugins that are useful for when working in Drupal.
Code > Documentation. I would maybe suggest a secondary goal for this project of creating a gulp/etc. tool that can be added to any Drupal theme to enable Pattern Lab support, while avoiding creating actual wrappers as a Drupal Edition like there are Angular, React etc.
I think that the best way to support getting people going using Drupal + Pattern Lab would be to make a Yeoman Generator for a Drupal Theme that would ask questions, then install and scaffold out the necessary pieces. I think this is the perfect time to use a npm module name I've been holding onto for a good use like this: generator-theme
- which would get used as yo theme
. It could even ask if you wanted a Pattern Lab at all. I think the main use case would be a Drupal theme with Pattern Lab of course, but this could ask several questions and then set up something awesome. Here's some questions it could ask:
- Which Pattern Lab to install?
- Pattern Lab alt PHP Twig (I've been calling our Pattern Lab Editions Pattern Lab alt)
- None
- What name for the theme?
- What version of Drupal?
- 8.x
- Any extra plugins for Pattern Lab?
- Data Transform Plugin
- Drupal Twig Components
- Twig Namespaces Plugin
- It could ask what kind of tooling (i.e. Gulp) - being discussed in Discuss tooling (i.e. Gulp) universal needs #3
- None
- What kind of Sass?
- Libsass
- Post CSS
- JS features?
- Babel
Please note that this relates to the tooling discuss in #3 - however that is about tooling that would be used on day-to-day development of the Pattern Lab they kicked off: watch & rebuild Pattern Lab, watch & rebuild CSS, etc. This discussion is about tooling that would create a Drupal theme that uses Pattern Lab OR a Drupal - ready Pattern Lab or something like that. Thoughts? @sghoweri @evanmwillhite @aleksip