MixCreate
class System\Console\Asset\Mix\MixCreate
extends System\Console\Asset\AssetCreate
implements
Symfony\Component\Console\Command\SignalableCommandInterface
Extends
Class | Description |
---|---|
AssetCreate
|
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. |
Constants
Constant | Type | Value | Description |
---|---|---|---|
TYPE_PLUGIN
|
string |
"plugin"
|
string
"plugin"
|
TYPE_THEME
|
string |
"theme"
|
string
"theme"
|
Properties
protected
$assetType
:
string
= "mix"
The type of compilable to configure
protected
$configFile
:
string
= "winter.mix.js"
The name of the config file
protected
static
$defaultName
:
string
|
null
= "mix:create"
The default command name for lazy loading.
protected
$replaces
:
array
= ["mix:config"]
List of commands that this command replaces (aliases)
protected
$signature
:
string
= "mix:create\n {packageName : The package name to add configuration for}\n {--no-stubs : Disable stub file generation}"
The name and signature of this command.
inherited
protected
$description
:
string
= "Creates the compiler configuration files for the provided package and optionally installs the necessary dependencies for any selected asset bundles."
The console command description.
inherited protected $laravel : Winter\Storm\Foundation\Application
inherited private $fixturePath : string
Local cache of fixture path
Methods
inherited public __construct ()
Dynamically generate options for all available bundles
inherited
public
alert (string $string, int | string | null $verbosity = null
)
: void
Write a string in an alert box.
Property | Type | Description |
---|---|---|
$string | string |
string
|
$verbosity | int | string | null |
int | string | null
|
inherited public complete (Symfony\Component\Console\Completion\CompletionInput $input, Symfony\Component\Console\Completion\CompletionSuggestions $suggestions) : void
Provide autocompletion for this command's input
Property | Type | Description |
---|---|---|
$input | Symfony\Component\Console\Completion\CompletionInput |
Symfony\Component\Console\Completion\CompletionInput
|
$suggestions | Symfony\Component\Console\Completion\CompletionSuggestions |
Symfony\Component\Console\Completion\CompletionSuggestions
|
inherited
public
error (string $string, int | string | null $verbosity = null
)
: void
Write a string as error output.
Property | Type | Description |
---|---|---|
$string | string |
string
|
$verbosity | int | string | null |
int | string | null
|
inherited public getSubscribedSignals () : array
Returns the process signals this command listens to
inherited public handle () : integer
Execute the console command.
inherited public handleSignal (integer $signal) : void
Handle the provided Unix process signal
Property | Type | Description |
---|---|---|
$signal | integer |
integer
|
inherited public handleWindowsSignal (integer $event) : void
Handle the provided Windows process singal.
Property | Type | Description |
---|---|---|
$event | integer |
integer
|
inherited protected afterExecution () : void
Ran after configuration is complete, use for tearing down / reporting
inherited protected getFixture (string $path) : string
Helper method for loading fixtures from the default library
Property | Type | Description |
---|---|---|
$path | string |
string
|
inherited protected getPackagePathType (string $package) : array
Resolve the path and type of the package by name
Property | Type | Description |
---|---|---|
$package | string |
string
|
inherited protected installConfigs (System\Classes\Asset\PackageJson $packageJson, string $packageName, string $packageType, string $packagePath) : void
Write out config files based on assetType and the requested options
Property | Type | Description |
---|---|---|
$packageJson | System\Classes\Asset\PackageJson |
System\Classes\Asset\PackageJson
|
$packageName | string |
string
|
$packageType | string |
string
|
$packagePath | string |
string
|
inherited protected makePackageName (string $package) : string
Converts the user supplied package name into a consistent internal format
Property | Type | Description |
---|---|---|
$package | string |
string
|
inherited protected writeFile (string $path, string $content) : integer
Write a file but ask for conformation before overwriting
Property | Type | Description |
---|---|---|
$path | string |
string
|
$content | string |
string
|