ScriptBuilder
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>
OUTPUT_DIR
private
mixed
OUTPUT_DIR
= __DIR__ . '/../../storage/scripts'
SOURCE_DIR
private
mixed
SOURCE_DIR
= __DIR__ . '/../../app/scripts'
$manifest
private
static mixed
$manifest
= []
build()
public
static build() : void
getScriptsForPath()
public
static getScriptsForPath(string $path) : string
Parameters
-
$path
: string
-
ensureOutputDirExists()
private
static ensureOutputDirExists() : void
getRelativePath()
private
static getRelativePath(string $absolutePath) : string
Parameters
-
$absolutePath
: string
-
matchPath()
private
static matchPath(string $path, string $pattern) : bool
Parameters
-
$path
: string
-
-
$pattern
: string
-
minify()
private
static minify(string $code) : string
Parameters
-
$code
: string
-
parseConditions()
private
static parseConditions(string $content) : array<string|int, mixed>
Parameters
-
$content
: string
-
Return values
array<string|int, mixed>