Update npm packages to latest versions
Fix JavaScript sourcemap paths to show full file locations Implement --build-debug flag and complete Build UI streaming Add xterm.js terminal UI and fix asset path routing Add RSpade Build UI service with WebSocket support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,9 @@ class Bundle_Compile_Command extends Command
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'rsx:bundle:compile {bundle? : Bundle class name to compile (optional, compiles all if not specified)}';
|
||||
protected $signature = 'rsx:bundle:compile
|
||||
{bundle? : Bundle class name to compile (optional, compiles all if not specified)}
|
||||
{--build-debug : Enable verbose build output (shows detailed compilation steps)}';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
@@ -23,11 +25,26 @@ class Bundle_Compile_Command extends Command
|
||||
*/
|
||||
protected $description = 'Compile RSX bundles into JavaScript and CSS files';
|
||||
|
||||
/**
|
||||
* Create a new command instance
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
// Check if --build-debug flag is present in command line args
|
||||
// Define BUILD_DEBUG_MODE early (though Debugger also checks $_SERVER['argv'] directly)
|
||||
if (in_array('--build-debug', $_SERVER['argv'] ?? [])) {
|
||||
define('BUILD_DEBUG_MODE', true);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
|
||||
$bundle_arg = $this->argument('bundle');
|
||||
|
||||
// Get all bundle classes from manifest
|
||||
@@ -197,6 +214,12 @@ class Bundle_Compile_Command extends Command
|
||||
$this->info("Tip: Use 'php artisan rsx:bundle:show <bundle>' to inspect bundle contents");
|
||||
}
|
||||
|
||||
// Clear console_debug environment variables
|
||||
if ($this->option('build-debug')) {
|
||||
putenv('CONSOLE_DEBUG_FILTER');
|
||||
putenv('CONSOLE_DEBUG_CLI');
|
||||
}
|
||||
|
||||
return 0;
|
||||
} else {
|
||||
// Failures occurred
|
||||
@@ -211,6 +234,12 @@ class Bundle_Compile_Command extends Command
|
||||
$this->line(" {$error_message}");
|
||||
}
|
||||
|
||||
// Clear console_debug environment variables
|
||||
if ($this->option('build-debug')) {
|
||||
putenv('CONSOLE_DEBUG_FILTER');
|
||||
putenv('CONSOLE_DEBUG_CLI');
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user