Remove WordPress from build process
[MAILPOET-3985]
This commit is contained in:
@ -143,9 +143,7 @@ jobs:
|
||||
./do compile:all --env production
|
||||
./do doctrine:generate-cache
|
||||
vendor/bin/codecept build
|
||||
wp core download --skip-content --path=../wordpress
|
||||
./do twig:generate-cache
|
||||
rm ../wordpress -rf
|
||||
- run:
|
||||
name: 'Check Prettier formatting'
|
||||
command: ./do qa:prettier-check
|
||||
|
@ -1020,7 +1020,6 @@ class RoboFile extends \Robo\Tasks {
|
||||
public function twigGenerateCache() {
|
||||
|
||||
$templatePath = __DIR__ . '/views/'; // \MailPoet\Config\Env::$viewsPath . '/'
|
||||
define('ABSPATH', (dirname(__DIR__) . '/wordpress'));
|
||||
$renderer = new \MailPoet\Config\Renderer(
|
||||
false,
|
||||
__DIR__ . '/generated/twig',
|
||||
|
@ -2,9 +2,7 @@
|
||||
|
||||
namespace MailPoet\Config;
|
||||
|
||||
use MailPoet\DI\ContainerWrapper;
|
||||
use MailPoet\Twig;
|
||||
use MailPoet\Util\CdnAssetUrl;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
use MailPoetVendor\Twig\Extension\DebugExtension;
|
||||
use MailPoetVendor\Twig\Lexer as TwigLexer;
|
||||
@ -80,7 +78,7 @@ class Renderer {
|
||||
'assets_url' => Env::$assetsUrl,
|
||||
'assets_manifest_js' => $this->assetsManifestJs,
|
||||
'assets_manifest_css' => $this->assetsManifestCss,
|
||||
], ContainerWrapper::getInstance()->get(CdnAssetUrl::class)));
|
||||
]));
|
||||
}
|
||||
|
||||
public function setupSyntax() {
|
||||
|
Reference in New Issue
Block a user