mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 01:52:48 +08:00
完善打包和打包后的节点更新逻辑;
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user