Documentation

ScriptBuilder
in package

Table of Contents

Constants

OUTPUT_DIR  = __DIR__ . '/../../storage/scripts'
SOURCE_DIR  = __DIR__ . '/../../app/scripts'

Properties

$manifest  : mixed

Methods

build()  : void
getScriptsForPath()  : string
ensureOutputDirExists()  : void
getRelativePath()  : string
matchPath()  : bool
minify()  : string
parseConditions()  : array<string|int, mixed>

Constants

OUTPUT_DIR

private mixed OUTPUT_DIR = __DIR__ . '/../../storage/scripts'

SOURCE_DIR

private mixed SOURCE_DIR = __DIR__ . '/../../app/scripts'

Properties

Methods

getScriptsForPath()

public static getScriptsForPath(string $path) : string
Parameters
$path : string
Return values
string

ensureOutputDirExists()

private static ensureOutputDirExists() : void

getRelativePath()

private static getRelativePath(string $absolutePath) : string
Parameters
$absolutePath : string
Return values
string

matchPath()

private static matchPath(string $path, string $pattern) : bool
Parameters
$path : string
$pattern : string
Return values
bool

minify()

private static minify(string $code) : string
Parameters
$code : string
Return values
string

parseConditions()

private static parseConditions(string $content) : array<string|int, mixed>
Parameters
$content : string
Return values
array<string|int, mixed>

        
On this page

Search results