0.2.1-alpha.3 • Published 5 years ago

@fastpanel/core v0.2.1-alpha.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

fastPanel Core.

The main core of the "fastPanel" system.


Env

  # Defines the current environment.
  # Can be: "develop", "staging", "production".
  NODE_ENV='develop'

  # Defines app settings.
  APP_NAME='fastPanel'
  APP_CLI_BIN='node build/cli.js'

  # Defines a folder structure of the application.
  APP_PATH='App'
  CONFIG_PATH='App/Config'
  LOGGER_PATH='App/Logs'

Commands

setup

Configure components.

  Options:
    --help       Output usage information.
    -e, --env    Save as current environment settings.
    -f, --force  Forced reconfiguration of components.
  node build/cli.js setup

Events

watchdog

The event is triggered every second. Be extremely careful USE OF THE EVENTS.

  this.events.on('watchdog', (app: Application) => {});

cli:getCommands

The event is triggered when the application is ready to register console commands.

  this.events.once('cli:getCommands', (cli: Caporal) => {});

License

The MIT License (MIT)


Copyright

(c) 2014 - 2019 Desionlab