Internal helpers called by Bajo that only used once for bootstrapping. It should remains hidden and not to be imported by any program.
- Source
Methods
(async, static) bootOrder()
Setup plugins boot orders by reading plugin's .bootorder
file if provided.
- Source
(async, static) bootPlugins()
Iterate through all plugins loaded and do:
- Source
(async, static) buildBaseConfig()
Building bajo base config. Mostly dealing with directory setups:
- determine base directory
- check whether data directory is valid. If not exist, create one inside project dir
- ensure data config directory is there
- ensure tmp dir is there
- read the list of plugins from
.plugins
file
- Source
(async, static) buildExtConfig()
Bajo extra config:
- reading config file
- merge config with arguments & environments values
- Set environment (
dev
orprod
)
- Source
(async, static) buildPlugins()
Building all plugins:
- load from app's pluginPkgs
- iterate through the list and build related plugins
- making sure main plugin is there. If not, create from template
- attach these plugins to the app instance
- Source
(async, static) collectConfigHandlers()
Collect all config handlers, including the one provided by plugins
- Source
(async, static) exitHandler()
Attach plugins exit handlers and make sure the app shutdowns gracefully
- Source
(async, static) runAsApplet()
If app is in applet
mode, this little helper should take care plugin's applet boot process
- Source