Skip to content

Commit

Permalink
πŸ—‘οΈ Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsnasz committed Jul 17, 2024
1 parent 8785702 commit 21ac727
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/Console/bin/bones
Original file line number Diff line number Diff line change
Expand Up @@ -1479,15 +1479,8 @@ namespace Bones {

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

// @deprecated
$command = apply_filters(
'wpbones_console_deploy_build_assets',
'yarn build'
);

$packageManager = $this->getAvailablePackageManager();


if ($packageManager) {

$this->info("βœ… Found '$packageManager' as package manager");
Expand All @@ -1497,7 +1490,7 @@ namespace Bones {
if (strtolower($answer) === 'y') {
$this->info("πŸ“¦ Build for production by using '{$packageManager} run build'");
shell_exec("{$packageManager} run build");
$this->info("βœ… Build assets successfully");
$this->info("βœ… Built assets successfully");
do_action('wpbones_console_deploy_after_build_assets', $this, $path);
} else {
$answer = $this->ask("Enter the package manager to build assets (press RETURN to skip the build)", '');
Expand All @@ -1506,7 +1499,7 @@ namespace Bones {
} else {
$this->info("πŸ“¦ Build for production by using '{$answer} run build'");
shell_exec("{$answer} run build");
$this->info("βœ… Build assets successfully");
$this->info("βœ… Built assets successfully");
do_action('wpbones_console_deploy_after_build_assets', $this, $path);
}
}
Expand Down Expand Up @@ -1569,7 +1562,7 @@ namespace Bones {
*/
do_action('wpbones_console_deploy_completed', $this, $path);

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

0 comments on commit 21ac727

Please sign in to comment.