-
Notifications
You must be signed in to change notification settings - Fork 0
Discuss best PL to suggest #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Then @aleksip commented:
|
I think we should fork the Twig Edition and all it's dependencies ( Then, instead of working on a Drupal Edition, we have documentation on how to integrate the Twig Edition into Drupal and the different plugins that are useful for when working in Drupal. OR: If we want to keep the Drupal Edition I'm OK with supporting and maintaining two Editions (Twig & Drupal) as the Editions are pretty light wrappers around the majority of what's going on in the dependencies. If we get the PRs and issues fixed for one, it's nearly trivial to have the other Edition benefit. What do you all think? @aleksip @evanmwillhite @sghoweri |
I prefer the idea of contributing mainly to the Twig Edition via a fork, to help abstract and make it a bit more useful. One thing I dislike though
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. To back it up, we are following these discussions at Red Hat closely and I at least can personally vouch for some of my own time invested & planned in making this happen. While I'm mostly focused on the Drupal admin side of the experience a-la Views + Components or UI Patterns modules, it follows that the admin portion can't exist without a full Pattern Lab implementation. |
I too like the idea of our community helping to support the Twig Edition and then maintaining smaller plugins as needed. If I'm understanding correctly, #3 could possibly address @cybtachyon's request as well. |
I like supporting the Twig Edition as the primary suggested starting point the best as well. I actually think that non-Drupal Pattern Lab users would like that one the best out of all the Pattern Labs available as I think Twig is so much better of a templating language than Mustache. I know @sghoweri agrees with this approach too but is traveling currently; so I think we have enough consensus for this approach – though I'd still love to hear thoughts from @aleksip Even if we go the Twig Edition route for a while then decide to get the Drupal Edition up to speed it'll be easy due to shared dependencies. OK, so what I'm going to do is get our fork of the Twig Standard Edition using the forks of it's dependencies:
And then able to Next, we'll need to make an issue for someone to evaluate open upstream PRs and determine if they should be opened against our fork. Afterwards I think we should focus on a Minimum Viable Release - put out a bug fix or a minor enhancement: anything that shows we can ship and provides value to the community. I have comments on the other ideas brought up that I'll come back to. This is awesome!
|
Alright, I've got our Twig Standard fork up with alterations and commands! Any testers? drupal-pattern-lab/edition-php-twig-standard#1 |
TLDR: We should also fork styleguidekit-assets-default. Also, FYI, we're forking Pattern Lab out of love and hopefully can merge all this work back in. Long version:@EvanLovely completely agree. Focus is primarily on the Twig edition but there's going to be considerable overlap with the Drupal addition (I mean, it's litterally the same thing with just 2 added composer dependencies). Two small things to add though:
Here's my take (and feel free to chime in / ding me if this isn't quite right):
I think I can speak for everyone in saying that we all really really want Pattern Lab to work and to continue to be the poster child of atomic design / pattern driven development. That's why this is "Drupal Pattern Lab" vs "Drupal + Fractal" or "Drupal Fabricator". Forking PL is simply a quick way to get #s 1, 2, and 3 addressed in a timely manner (fast-tracking all this) while still keeping the door open to getting all this hard work folded back in. Make sense? |
I totally agree with what you just said and think it's important to have as a statement to the community. So this doesn't get lost later, I think we should take what you just wrote on the second half and put it on the website; perhaps under a FAQ? I pulled this out and put it up on the website repo: drupal-pattern-lab/drupal-pattern-lab.github.io#13 |
For some of the comments in response to @cybtachyon around how to add the Drupal specific pieces on top of the Twig Edition of PL I've kicked off a new discussion here: #5 |
OK; this is DONE! We've got a fork of the Twig Edition that points to all of our forks of it's dependencies. I've got the readme up to date as well. https://github.com/drupal-pattern-lab/edition-php-twig-standard Should this issue be closed as we've discussed the best Pattern Lab to support? |
@EvanLovely I vote closing this out. We've got an direction to run with, an updated edition that's all wired up and ready to go, and some FAQs for future reference as to why the heck all this is even a thing. CHECK, CHECK, and CHECK |
@evanmwillhite gives the 👍 too – closing this discussion down! |
@evanmwillhite Originally wrote:
The text was updated successfully, but these errors were encountered: