Complete translation directory exclusion list, make it more readable

[MAILPOET-4611]
This commit is contained in:
Jan Jakes
2022-10-19 10:06:30 +02:00
committed by Aschepikov
parent c8d0291e41
commit a1ead743fa

View File

@@ -117,10 +117,27 @@ class RoboFile extends \Robo\Tasks {
}
public function translationsBuild() {
$exclude = implode(',', [
'.mp_svn',
'generated',
'lang',
'lib-3rd-party',
'mailpoet-premium',
'node_modules',
'plugin_repository',
'prefixer',
'tasks',
'temp',
'tests',
'tools',
'vendor',
'vendor-prefixed',
]);
$this->collectionBuilder()
->taskExec('mkdir -p ' . __DIR__ . '/lang')
->taskExec(
'php -d memory_limit=-1 tasks/makepot/grunt-makepot.php wp-plugin . lang/mailpoet.pot mailpoet .mp_svn,assets,lang,node_modules,plugin_repository,tasks,tests,vendor'
"php -d memory_limit=-1 tasks/makepot/grunt-makepot.php wp-plugin . lang/mailpoet.pot mailpoet $exclude"
)->run();
}