Skip to content

Commit 21ac727

Browse files
committed
πŸ—‘οΈ Cleanup
1 parent 8785702 commit 21ac727

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

β€Žsrc/Console/bin/bones

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,15 +1479,8 @@ namespace Bones {
14791479

14801480
do_action('wpbones_console_deploy_before_build_assets', $this, $path);
14811481

1482-
// @deprecated
1483-
$command = apply_filters(
1484-
'wpbones_console_deploy_build_assets',
1485-
'yarn build'
1486-
);
1487-
14881482
$packageManager = $this->getAvailablePackageManager();
14891483

1490-
14911484
if ($packageManager) {
14921485

14931486
$this->info("βœ… Found '$packageManager' as package manager");
@@ -1497,7 +1490,7 @@ namespace Bones {
14971490
if (strtolower($answer) === 'y') {
14981491
$this->info("πŸ“¦ Build for production by using '{$packageManager} run build'");
14991492
shell_exec("{$packageManager} run build");
1500-
$this->info("βœ… Build assets successfully");
1493+
$this->info("βœ… Built assets successfully");
15011494
do_action('wpbones_console_deploy_after_build_assets', $this, $path);
15021495
} else {
15031496
$answer = $this->ask("Enter the package manager to build assets (press RETURN to skip the build)", '');
@@ -1506,7 +1499,7 @@ namespace Bones {
15061499
} else {
15071500
$this->info("πŸ“¦ Build for production by using '{$answer} run build'");
15081501
shell_exec("{$answer} run build");
1509-
$this->info("βœ… Build assets successfully");
1502+
$this->info("βœ… Built assets successfully");
15101503
do_action('wpbones_console_deploy_after_build_assets', $this, $path);
15111504
}
15121505
}
@@ -1569,7 +1562,7 @@ namespace Bones {
15691562
*/
15701563
do_action('wpbones_console_deploy_completed', $this, $path);
15711564

1572-
$this->info("\n\e[5mπŸ‘ Deploy Completed!\e[0m");
1565+
$this->info("\n\e[5mπŸ‘ Deploy completed!\e[0m");
15731566
$this->info("\nπŸš€ You can now deploy the plugin from the path: {$path}\n");
15741567
}
15751568
}

0 commit comments

Comments
Β (0)