A configurable base class
Supports ES5, ES7, AMD, CommonJS, System and EcmaScript modules runs both on browser and server.
npm install --save @nod/base
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'
}));
gulp
or
npm run build
npm run watch
Please check available gulp tasks with:
gulp -T
- Gulp tasks as another dependency
- More detailed docs
by NOD studios