Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dependencies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recipesEndpoint": "https://api.github.com/repos/ibexa/recipes-dev/contents/index.json?ref=flex/pull-200",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Friendly reminder this is still here.

"packages": []
}
12 changes: 12 additions & 0 deletions src/bundle/Command/CompileAssetsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ protected function configure(): void
'Config name passed to webpack encore',
null
)
->addOption(
'frontend-config-name',
'fcn',
InputOption::VALUE_REQUIRED,
'Frontend config name passed to webpack encore',
null
)
;
}

Expand All @@ -68,6 +75,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$timeout = (float)$input->getOption('timeout');
$env = $input->getOption('env');
$configName = $input->getOption('config-name');
$frontendConfigName = $input->getOption('frontend-config-name');

$output->writeln(sprintf('Compiling all <comment>%s</comment> assets.', $env));
$output->writeln('');
Expand All @@ -79,6 +87,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$yarnEncoreCommand .= " --config-name {$configName}";
}

if (!empty($frontendConfigName)) {
$yarnEncoreCommand .= " --config ./node_modules/@ibexa/frontend-config/ibexa.webpack.{$frontendConfigName}.configs";
}

$debugFormatter = $this->getHelper('debug_formatter');

$process = Process::fromShellCommandline(
Expand Down
9 changes: 9 additions & 0 deletions src/bundle/DependencyInjection/IbexaAdminUiExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ class IbexaAdminUiExtension extends Extension implements PrependExtensionInterfa
'ibexa.webpack.custom.config.js' => [
'ibexa.webpack.custom.config.js' => [],
],
'ibexa.webpack.internal.config.js' => [
'ibexa.webpack.internal.config.js' => [],
],
'ibexa.webpack.richtext.config.js' => [
'ibexa.webpack.richtext.config.js' => [],
],
'ibexa.webpack.libs.config.js' => [
'ibexa.webpack.libs.config.js' => [],
],
'ibexa.config.setup.js' => [
'ibexa.config.setup.js' => [],
],
Expand Down
Loading