Class AppLoader

Start the app:

Source : file AppLoader.js at line 47

Constructor

new AppLoader ( )

The constructor

Source : file AppLoader.js at line 75

Public methods

loadApp ( options )

Load the app, searching all the needed infos to run the app correctly

Source : file AppLoader.js at line 267

Parameters

Name Type Description
options null or Object

The options for the app

Private properties

#sourceFileNames : Array of String

The source files names, included the path since theConfig.srcDir

Source : file AppLoader.js at line 54

Private getters and setters

readonly static get #EXIT_BAD_PARAMETER : Number

A const to use when exit the app due to a bad parameter

Source : file AppLoader.js at line 62

readonly static get #version : String

The version number

Source : file AppLoader.js at line 69

Private methods

#cleanOldFiles ( )

Clean the previously created files, to avoid deprecated files in the documentation.

Source : file AppLoader.js at line 118

#createConfig ( options )

Complete theConfig object from the app parameters

Source : file AppLoader.js at line 204

Parameters

Name Type Description
options null or Object

The options for the app

#readDir ( dir )

Read recursively the contains of a directory and store all the js files found in the #sourceFileNames property

Source : file AppLoader.js at line 86

Parameters

Name Type Description
dir String

The directory to read. It's a relative path, starting at theConfig.srcDir ( the path given in the --src parameter )

#showHelp ( )

Show the help on the screen

Source : file AppLoader.js at line 146

#validatePath ( path )

Validate a path:

Source : file AppLoader.js at line 174

Parameters

Name Type Description
path String

The path to validate