Module: Feature

Feature loading stage definitions

Source:
enum/Feature.js

Example

const Feature = require('cli-worker/lib/enum/Feature');

Members


<static> CONF :string

Configuration

Type:
  • string
Default Value:
  • Configure
Source:
enum/Feature.js

<static> INIT :string

Initialization, e.g. bootstrap, settings

Type:
  • string
Default Value:
  • Initial
Source:
enum/Feature.js

<static> PLUGIN :string

Attaching middlewares

Type:
  • string
Default Value:
  • Plugins
Source:
enum/Feature.js

<static> SERVICE :string

Services, e.g. loggers, i18n

Type:
  • string
Default Value:
  • Services
Source:
enum/Feature.js

Methods


<static> validate(featureObject)

Validate a feature object.

Parameters:
Name Type Description
featureObject object

Feature object

Properties:
Name Type Description
featureObject.type string

Feature loading stage

featureObject.load_ function

Feature loading method

Source:
enum/Feature.js
Returns:
Type
bool