@fastpanel/core
TypeScript icon, indicating that this package has built-in type declarations

0.2.1-alpha.3 • Public • Published

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

Package Sidebar

Install

npm i @fastpanel/core

Weekly Downloads

2

Version

0.2.1-alpha.3

License

MIT

Unpacked Size

68.5 kB

Total Files

59

Last publish

Collaborators

  • fenixphp