fond-of-spryker/setup-frontend

1.0.1 2019-03-08 09:46 UTC

This package is auto-updated.

Last update: 2024-09-05 19:04:32 UTC


README

license

它做什么

扩展默认模块,包含所需的参数themename。主题必须存储在./frontend/themename下。文件夹名必须为小写。

安装

composer require fond-of-spryker/setup-frontend

配置

将新模块添加到您的ConsoleDependencyProvider中,通常存储在Pyz\Zed\Console下

protected function getConsoleCommands(Container $container) 
{
    ...
    new YvesBuildFrontendConsole(),
    ...
}

您需要在配置中列出所有模板,例如:

$config[\FondOfSpryker\Shared\SetupFrontend\SetupFrontendConstants::YVES_THEMES] = ['theme1', 'theme2'];

用法

frontend:yves:build

询问用户是否应创建所有主题

frontend:yves:build --force

不确认即构建所有主题

frontend:yves:build themeName

仅构建指定的主题