完善打包和打包后的节点更新逻辑;

This commit is contained in:
2022-11-19 15:25:45 +08:00
parent a432778cd3
commit 67a3d287ad
3 changed files with 53 additions and 11 deletions

View File

@@ -325,6 +325,14 @@ class Dist extends Command
{
$file_stmts = [];
$file_stmts[] = new Expression(new FuncCall(
new Name('define'),
[
new Arg(new String_('ULTHON_ADMIN_BUILD_DIST')),
new Arg(new String_('1'))
]
));
foreach ($files as $file_name) {
$file_stmts[] = new Expression(new Include_(new Concat(new Dir, new String_($file_name)), Include_::TYPE_REQUIRE_ONCE));
}
@@ -505,7 +513,7 @@ class Dist extends Command
*
* @param Node\Stmt[]|null $stmts
* @param string $name
* @return void
* @return Node\Stmt[]
*/
public function parseStmts($stmts, $name)
{