App

core. App

The main application class

Constructor

new App()

Source:

Extends

  • AbstractModule

Members

app :App

Description:
  • Instance of App instance (required by all AbstractModules)
Source:
Instance of App instance (required by all AbstractModules)
Type:
  • App

args :Object

Description:
  • Reference to the passed arguments (parsed for easy reference)
Source:
Reference to the passed arguments (parsed for easy reference)
Type:
  • Object

config :Config

Description:
  • Reference to the Config instance
Source:
Reference to the Config instance
Type:
  • Config

dependencies :Object

Description:
  • The Adapt module dependencies and their configs
Source:
The Adapt module dependencies and their configs
Type:
  • Object

dependencyloader :DependencyLoader

Description:
  • Reference to the DependencyLoader instance
Source:
Reference to the DependencyLoader instance
Type:
  • DependencyLoader

errors :Errors

Description:
  • Reference to the error registry
Source:
Reference to the error registry
Type:
  • Errors

git :Object

Description:
  • Git metadata for the application (branch and commit hash)
Source:
Git metadata for the application (branch and commit hash)
Type:
  • Object

lang :Lang

Description:
  • Reference to the Lang instance
Source:
Reference to the Lang instance
Type:
  • Lang

logger :Logger

Description:
  • Reference to the Logger instance
Source:
Reference to the Logger instance
Type:
  • Logger

(static) instance :App

Description:
  • The singleton instance. Self-initialises it if there isn't one.
Source:
The singleton instance. Self-initialises it if there isn't one.
Type:
  • App

Methods

getGitInfo() → {Object}

Description:
  • Attempts to load and parse the local git data for the root repository
Source:
Returns:
Type
Object

(async) init()

Source:

(async) waitForModule(…modNames) → {Promise}

Description:
  • Enables waiting for other modules to load
Source:
Parameters:
Name Type Attributes Description
modNames String <repeatable>
Names of modules to wait for
Returns:
Resolves when specified module has been loaded
Type
Promise