API Docs for:
Show:

Sync Class

Class to sync bundled / local hooks , helps in registering hooks in short

Constructor

Sync

()

Methods

fetchModules

(
  • config
)
Promise

Parameters:

  • config Object

    config object to obtain project root and scan npm modules for ng hooks

Returns:

Promise:

Returns promise with list of ng hooks

init

(
  • type
)
Promise

Parameters:

  • type String

    bundled or nothing

Returns:

Promise:

Returns promise object with config(if not bundled) and project root

registerModules

(
  • modules
)
String

Parameters:

  • modules Object

    Hooks object to register standalone and dependent hooks as local js modules

Returns:

String:

Returns promise with success or error on saving hooks

Properties

content_path

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

project_path

String path to ngCli root