UserFrosting API

BuildAssets extends BaseCommand Uses NodeVersionCheck

Assets builder CLI Tools.

Wrapper for npm/node commands.

Tags
author

Alex Weissman (https://alexanderweissman.com)

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

Methods

configure()

{@inheritdoc}

protected configure( ) : mixed
Return values
mixed

execute()

{@inheritdoc}

protected execute( $input : InputInterface , $output : OutputInterface ) : mixed
Parameters
$input : InputInterface
$output : OutputInterface
Return values
mixed

npmInstall()

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
mixed

assetsInstall()

Perform UF Assets installation.

protected assetsInstall( ) : mixed
Return values
mixed

buildAssets()

Build the production bundle.

protected buildAssets( ) : mixed
Return values
mixed

clean()

Run the `uf-clean` command to delete installed assets, delete compiled bundle config file and delete compiled assets.

protected clean( ) : mixed
Return values
mixed

checkNodeVersion()

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
mixed

setContainer()

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

Return values
bool

Search results