Skip to content

Commit e7e4da7

Browse files
committed
MAGETWO-44443: Grunt less task fails
- Create command for deploy source files of theme
1 parent 4197d0e commit e7e4da7

File tree

8 files changed

+265
-453
lines changed

8 files changed

+265
-453
lines changed

app/code/Magento/Deploy/Model/Filesystem.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66

77
namespace Magento\Deploy\Model;
88

9-
use Symfony\Component\Console\Output\OutputInterface;
109
use Magento\Framework\App\State;
1110
use Magento\Framework\App\DeploymentConfig\Writer;
1211
use Magento\Framework\App\Filesystem\DirectoryList;
13-
use Magento\Developer\Console\Command\CssDeployCommand;
12+
use Magento\Developer\Console\Command\SourceThemeDeployCommand;
1413

1514
/**
1615
* A class to manage Magento modes
@@ -137,9 +136,10 @@ protected function deployCss(
137136
$themeLocalePairs = $this->storeView->retrieveThemeLocalePairs();
138137
foreach ($themeLocalePairs as $themeLocalePair) {
139138
$theme = $themeLocalePair['theme'] ?: self::DEFAULT_THEME;
140-
$cmd = $this->functionCallPath . 'dev:css:deploy less'
141-
. ' --' . CssDeployCommand::THEME_OPTION . '="' . $theme . '"'
142-
. ' --' . CssDeployCommand::LOCALE_OPTION . '="' . $themeLocalePair['locale'] . '"';
139+
$cmd = $this->functionCallPath . 'dev:source_theme:deploy'
140+
. ' --' . SourceThemeDeployCommand::TYPE_ARGUMENT . '="less"'
141+
. ' --' . SourceThemeDeployCommand::THEME_OPTION . '="' . $theme . '"'
142+
. ' --' . SourceThemeDeployCommand::LOCALE_OPTION . '="' . $themeLocalePair['locale'] . '"';
143143

144144
/**
145145
* @todo build a solution that does not depend on exec

app/code/Magento/Developer/Console/Command/CssDeployCommand.php

Lines changed: 0 additions & 241 deletions
This file was deleted.

0 commit comments

Comments
 (0)