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