Methods

(async) boot(optionsopt) → {App}

Main entry point of a Bajo app. Returned value is the app instance itself.

While you can code directly around it, you typically write your code the main plugin ({mainNs}) or writing your own custom plugin.

I recommend the second method for its portability.

Parameters:
NameTypeAttributesDescription
optionsObject<optional>

App options.

Properties
NameTypeAttributesDescription
cwdstring<optional>

Set current working directory. Defaults to the script directory.

pluginsArray.<string><optional>

Array of plugins to load. If provided, it override the list in package.json and .plugins file.

configObject<optional>

Plugin's config object. If provided, plugin configs will no longer be read from its config files.

Returns:
Type: 
App
Example
// index.js file. Your main package entry point
import bajo from 'bajo'
await bajo()