Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Environment

Hierarchy

  • Environment

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

  • Parameters

    • cwd: string

    Returns Environment

Properties

cwd

cwd: string

Optional env

env: string | string[]

Current environment.

Methods

component

  • component(name: string): any
  • Returns component variables merged with global variables.

    If env is not set or require failed, returns an empty object.

    Parameters

    • name: string

      Component name

    Returns any

global

  • global(): any
  • Returns global variables.

    If env is not set or require failed, returns an empty object.

    Returns any

resetReducers

  • resetReducers(): void
  • Resets reducers to the defaults.

    Returns void

setReducers

  • Sets list of reducers using the specified callback function.

    Parameters

    Returns void

Object literals

paths

paths: object

Paths of environment files.

component

component: string = "environments/#{environment}/#{component}"

global

global: string = "environments/#{environment}"

Generated using TypeDoc