MixWatch

 class System\Console\MixWatch
extends System\Console\MixCompile
implements 
    Symfony\Component\Console\Command\SignalableCommandInterface

Traits

Trait Description
HandlesCleanup

Console Command Trait that injects cross-platform signal handling to trigger cleanup on exit through the handleCleanup() method on the implementing class.

ProvidesAutocompletion

Console Command Trait that injects cross-platform signal handling to trigger cleanup on exit through the handleCleanup() method on the implementing class.

Properties

protected static $defaultName : string | null

The default command name for lazy loading.

protected $description : string

The console command description.

protected $mixJsPath : string

The path currently being watched

protected $signature : string

The name and signature of this command.

protected $packageJson : array

Inherited from MixCompile

Local cache of the package.json file contents

protected $replaces : array

Inherited from Command

List of commands that this command replaces (aliases)

Methods

public handle () : integer

Returns
integer

public handleCleanup () : void

Handle the cleanup of this command if a termination signal is received

Returns
void

protected createCommand (string $mixJsPath) : array

Create the command array to create a Process object with

Parameters
Property Description
$mixJsPath
string
Returns
array

protected createWebpackConfig (string $mixJsPath) : void

Create the temporary mix.webpack.js config file to run webpack with

Parameters
Property Description
$mixJsPath
string
Returns
void

public __construct ()

Inherited from Command

Create a new command instance.

Returns
mixed

public alert (string $string, int | string | null $verbosity = null) : void

Inherited from Command

Write a string in an alert box.

Parameters
Property Description
$string
string
$verbosity
int | string | null
Returns
void

public complete (Symfony\Component\Console\Completion\CompletionInput $input, Symfony\Component\Console\Completion\CompletionSuggestions $suggestions) : void

Provide autocompletion for this command's input

Parameters
Property Description
$input
Symfony\Component\Console\Completion\CompletionInput
$suggestions
Symfony\Component\Console\Completion\CompletionSuggestions
Returns
void

public error (string $string, int | string | null $verbosity = null) : void

Inherited from Command

Write a string as error output.

Parameters
Property Description
$string
string
$verbosity
int | string | null
Returns
void

public getSubscribedSignals () : array

Inherited from HandlesCleanup

Returns the process signals this command listens to

Returns
array

public handleSignal (integer $signal) : integer | false

Inherited from HandlesCleanup

Handle the provided Unix process signal

Parameters
Property Description
$signal
integer
Returns
integer | false

public handleWindowsSignal (integer $event) : void

Inherited from HandlesCleanup

Handle the provided Windows process singal.

Parameters
Property Description
$event
integer
Returns
void

protected canCompilePackage (string $mixJsPath) : bool

Inherited from MixCompile

Check if Mix is able to compile the provided winter.mix.js file

Parameters
Property Description
$mixJsPath
string
Returns
bool

protected getPackagePath (string $mixJsPath) : string

Inherited from MixCompile

Get the package path for the provided winter.mix.js file

Parameters
Property Description
$mixJsPath
string
Returns
string

protected getWebpackJsPath (string $mixJsPath) : string

Inherited from MixCompile

Get the path to the mix.webpack.js file for the provided winter.mix.js file

Parameters
Property Description
$mixJsPath
string
Returns
string

protected mixPackage (string $mixJsPath) : integer

Inherited from MixCompile

Run the mix command against the provided package

Parameters
Property Description
$mixJsPath
string
Returns
integer

protected readNpmPackageManifest () : array

Inherited from MixCompile

Read the package.json file for the project, path configurable with the --manifest option

Returns
array

protected removeWebpackConfig (string $mixJsPath) : void

Inherited from MixCompile

Remove the temporary mix.webpack.js file

Parameters
Property Description
$mixJsPath
string
Returns
void
Copyright © 2024 Winter CMS