Namespace: gulpScanDependencies

plugins.gulpScanDependencies

Functions

default

default(dependencies): Transform

Gulp plugin for scanning file dependencies. Dependencies are stored to an array in the provided map with the file’s relative path as the key.

If the map already has dependencies for the file the scanning is skipped.

Parameters

Name Type Description
dependencies Record<string, string[]> Map to store the dependencies to

Returns

Transform


isAudioSprite

isAudioSprite(data): boolean

Check if the JSON data is an audio sprite.

Parameters

Name Type Description
data any JSON data

Returns

boolean


isLayout

isLayout(data): boolean

Check if the JSON data is a Layout object.

Parameters

Name Type Description
data any JSON data

Returns

boolean


isMachine

isMachine(data): boolean

Check if the JSON data is a Machine object.

Parameters

Name Type Description
data any JSON data

Returns

boolean


isSpine

isSpine(data): boolean

Check if the JSON data is a Spine object.

Parameters

Name Type Description
data any JSON data

Returns

boolean


isSpriteSheet

isSpriteSheet(data): boolean

Check if the JSON data is a sprite sheet.

Parameters

Name Type Description
data any JSON data

Returns

boolean