API Docs for:
Show:

Helpers Class

Helper methods to perform different tasks

Constructor

Helpers

()

Methods

addChildren

(
  • index
  • identifier
)
Object private

Parameters:

  • index String
  • identifier String

Returns:

Object:

dest

getConfig

() Callback

Returns:

Callback:

Returns callback with error or config object

getTasksFile

() Callback

Returns:

Callback:

Returns callback with error or build tasks file path

getTasksFile

(
  • model
  • key
  • attached_with
)
Object private

Parameters:

  • model Object

    modules object to loop from

  • key String

    key to look for

  • attached_with String

    find hook is attached with which proccess

Returns:

Object:

Returns filtered model object

run

(
  • command
  • hooks_to_proccess
  • config
  • args
)

execute hooks configured with executed command/process

Parameters:

  • command String

    which command is getting executed

  • hooks_to_proccess Object

    list of hooks attached with executed command/process

  • config Object

    ngconfig object

  • args Object

    Command arguments

sortModules

(
  • attached_with
)
Promise

sort and return hooks ready to be executed

Parameters:

  • attached_with String

    hook-for identifier

Returns:

Promise:

List of sorted hooks

Properties

bundled_modules

String path to bundled hooks

config_file

String app config file final

content_path

String path to content directory to save bundled and app specific hooks

local_modules

String path to app specific hooks

project_path

String path to ngCli root

tasks_file

String app build tasks file final