安装 Pattern Lab 3 plus Twig 时出现问题

Problem installing Pattern Lab 3 plus Twig

我在使用 Pattern Lab 3 plus Twig 时遇到了一些问题。

按照 https://patternlab.io/docs/installation.html 中的说明进行操作:

  1. 我安装:npm create pattern-lab.

  2. 我选择Twig (PHP)作为模板语言。

  3. 我选择Twig (PHP) demo patterns (full demo website and patterns)作为初始模式

我确实看到了注释 The PHP version of Pattern Lab is being deprecated in favor of a new unified Pattern Lab core. The PHP docs for this topic can be viewed here.。单击 link 只会将我带到 PHP 版 PL v.2 的安装页面。没有帮助。所以我继续https://patternlab.io/docs/generating-pattern-lab.html

接下来我应该运行 php core/console --watch。没有核心子目录。事情看起来不太乐观。

我删除了我的 PL 安装并使用车把模板重试。除了一个例外,一切都很好。例外:我想要树枝模板。

想法?

事实上,您在发布此消息时看到的 PatternLab 网站仍然反映了 2.x/3.x 天。正在开展工作以消除遗留问题并保留当前状态。

上个月,我为这个包做出了贡献:@pattern-lab/engine-twig. This engine is a pure Javascript based twig engine which prevents the need for PHP. It uses the Twing library 底层(自 v5.8.0 起)。还有一些事情需要解决,但我欢迎你尝试一下。请在此处提交错误:

https://github.com/pattern-lab/patternlab-node/issues