En construcción

Configuración por defecto

A continuación se escribe un ejemplo completo de un archivo de configuración, que contiene la configuración por defecto de BO:

const   crt   =   ' -----BEGIN   CERTIFICATE-----
MIIC...
-----END   CERTIFICATE----- ' ;
const   key   =   ' -----BEGIN   PRIVATE   KEY----- MIIE... -----END   PRIVATE   KEY----- ' ;
module . exports   =   {
  name :   ' lib ' ,
  type :   ' spa ' ,
  author :   '' ,
  version :   ' 0.0.1 ' ,
  description :   '' ,
  enabled_cors :   true ,
  render :   {
    css_auto_unit :   ' px ' ,
    pre_render :   false ,
    lazy_loading :   false ,
  } ,
  packaging :   {
    single_origin :   true ,
    add_maps :   true ,
  } ,
  log :   {
    request :   false ,
    response :   false ,
  } ,
  repositories :   [ ] ,
  constants :   {
    APP :   '' ,
    API :   '' ,
    RES :   '' ,
    debug :   true ,
  } ,
  tasks :   { } ,
  app :   {
    protocol :   ' http ' ,
    host :   ' 0.0.0.0 ' ,
    port :   0 ,
    crt :   crt ,
    key :   key ,
    path_build :   ` ${   __workspace_folder . path   } /build ` ,
    path_public :   __workspace_folder . path ,
    filter :   [ / \. b ( j | h | c ) $| \. ( js | css | htm ( l ? )) $ /i ] ,
    start :   true ,
    watch :   true ,
    tasks :   [ ] ,
    ignore :   [
      / build /i ,
      / node_modules /i ,
      / package \. json $ /i ,
      / package-lock \. json $ /i ,
      / bo \. conf $ /i ,
      / \. ds_stores $ /i ,
      / \. editorconfig $ /i ,
    ] ,
  } ,
  api :   {
    protocol :   ' http ' ,
    host :   ' 0.0.0.0 ' ,
    port :   0 ,
    crt :   crt ,
    key :   key ,
    path_build :   ` ${   __workspace_folder . path   } /build ` ,
    path_public :   __workspace_folder . path ,
    filter :   [ / \. bj $ /i ] ,
    start :   true ,
    watch :   true ,
    tasks :   [ ] ,
    ignore :   [
      / build /i ,
      / node_modules /i ,
      / package \. json $ /i ,
      / package-lock \. json $ /i ,
      / bo \. conf $ /i ,
      / \. ds_stores $ /i ,
      / \. editorconfig $ /i ,
    ] ,
  } ,
  res :   {
    protocol :   ' http ' ,
    host :   ' 0.0.0.0 ' ,
    port :   0 ,
    crt :   crt ,
    key :   key ,
    path_build :   ` ${   __workspace_folder . path   } /build/resources ` ,
    path_public :   __workspace_folder . path ,
    start :   true ,
    watch :   true ,
    tasks :   [ ] ,
    ignore :   [
      / build /i ,
      / node_modules /i ,
      / package \. json $ /i ,
      / package-lock \. json $ /i ,
      / bo \. conf $ /i ,
      / \. ds_store $ /i ,
      / \. editorconfig $ /i ,
      / \. b ( c | h | j ) $ /i ,
    ] ,
  } ,
  " [prod] " :   {
    packaging :   {
      add_maps :   false ,
    } ,
    constants :   {   APP : ' . ' ,   API : ' . ' ,   RES : ' . ' ,   debug : false   } ,
  } ,
}