BuildAssets extends BaseCommand Uses NodeVersionCheck
Assets builder CLI Tools.
Wrapper for npm/node commands.
Tags
Table of Contents
$buildPath | string | |
---|---|---|
$io | SymfonyStyle | |
$ci | ContainerInterface | |
configure() | {@inheritdoc} | mixed |
execute() | {@inheritdoc} | mixed |
npmInstall() | Install npm package. | mixed |
assetsInstall() | Perform UF Assets installation. | mixed |
buildAssets() | Build the production bundle. | mixed |
clean() | Run the `uf-clean` command to delete installed assets, delete compiled bundle config file and delete compiled assets. | mixed |
checkNodeVersion() | Check the minimum version requirement of Node installed. | string |
checkNpmVersion() | Check the minimum version requirement for Npm. | string |
initialize() | {@inheritdoc} | mixed |
setContainer() | Setup the global container object. | void |
isProduction() | Return if the app is in production mode. | bool |
Properties
$buildPath
protected
string
$buildPath
$io
protected
SymfonyStyle
$io
Tags
$ci
protected
ContainerInterface
$ci
Methods
configure()
{@inheritdoc}
protected
configure(
)
: mixed
Return values
mixedexecute()
{@inheritdoc}
protected
execute(
$input :
InputInterface
, $output :
OutputInterface
)
: mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
mixednpmInstall()
Install npm package.
protected
npmInstall(
$force :
bool
)
: mixed
Parameters
- $force : bool
Force
npm install
to be run, ignoring evidence of a previous run.
Return values
mixedassetsInstall()
Perform UF Assets installation.
protected
assetsInstall(
)
: mixed
Return values
mixedbuildAssets()
Build the production bundle.
protected
buildAssets(
)
: mixed
Return values
mixedclean()
Run the `uf-clean` command to delete installed assets, delete compiled bundle config file and delete compiled assets.
protected
clean(
)
: mixed
Return values
mixedcheckNodeVersion()
Check the minimum version requirement of Node installed.
protected
checkNodeVersion(
)
: string
Return values
string —Node version
checkNpmVersion()
Check the minimum version requirement for Npm.
protected
checkNpmVersion(
)
: string
Return values
string —NPM version
initialize()
{@inheritdoc}
protected
initialize(
$input :
InputInterface
, $output :
OutputInterface
)
: mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
mixedsetContainer()
Setup the global container object.
public
setContainer(
$ci :
ContainerInterface
)
: void
Parameters
- $ci : ContainerInterface
isProduction()
Return if the app is in production mode.
protected
isProduction(
)
: bool
@return bool True/False if the app is in production mode