0

How to combine console Gulp with Twig? Thanks!

FullStackDeveloper
  • 910
  • 1
  • 16
  • 40

1 Answers1

1

You may want to check out Starterkits. See this basic documentation about them.

The main point is that a starterkit is a collection of frontend assets and patterns, which can be plugged into Pattern Lab.

They usually consiste of the following:

_annotations/ _data/ _meta/ _patterns/ css/ fonts/ images/ js/ favicon.ico

css, fonts, images, js will contain the Foundation library code you care about, if it applies.

_patterns/ is where you can start building out twig code files with the right classes to realize your design.

_meta/ should also contain your header and footer twig snippet to be included with every pattern.

If you want something to start from, you can probably augment the existing drupal startkit over on Github.

Good luck!

Brian Muenzenmeyer
  • 1,026
  • 1
  • 7
  • 17
  • Ho Brian Thanks forse your answer! Thank you for describing every detail useful to using PatternLab – immagimario Jul 04 '17 at 14:32
  • Glad to hear it! Since you are new to Stack Overflow, if you like or accept answers, don't forget to "upvote" and/or "mark as answer" the response you like the most. It helps other users find the most helpful content. – Brian Muenzenmeyer Jul 05 '17 at 13:25