/base

Base EcmaScript class for modules of NOD studios

Primary LanguageJavaScriptApache License 2.0Apache-2.0

@nod/base

A configurable base class

Supports ES5, ES7, AMD, CommonJS, System and EcmaScript modules runs both on browser and server.

GitHub tag Build status Dependency Status Join the chat

Usage:

Installation:

npm install --save @nod/base

Examples:

import { Base } from '@nod/base';
class Example extends Base {
 initialize() {
   // do stuff
 }
}
import { Base, Configuration } from '@nod/base';

class ExampleConfiguration extends Configuration {
  defaultVal = 'example val';  
}

class Example extends Base {
   initialize() {
    this.console.log(this.options.defaultVal);
    this.console.info(this.options.secondVal);
   }
}

let example = new Example(new ExampleConfiguration({
 secondVal : 'test'
}));

Build and develop:

gulp

or

npm run build
npm run watch

Please check available gulp tasks with:

gulp -T

TODO:

  • Gulp tasks as another dependency
  • More detailed docs

Support:

Send e-mail Join the chat

forthebadge by NOD studios