periodicjs.core.extensions
Periodic's CoreExtension module, provides helpful methods for install, removing, configuring node modules that augment Periodic's default Express control flow.
Extensions are node modules that are loaded when an instance of periodic is instantiated.
A list of enabled,disabled and installed Extensions are located in content/extensions/extensions.json
API Documentation
Installation
$ npm install periodicjs.core.extensions
This is a part of Periodic's core.
Usage
Installing extensions
JavaScript
var Extensions = require('periodicjs.core.extensions'),
ExtensionCore = new Extensions({
dirname: __dirname
});
ExtensionCore.install(options,callback);
Removing extensions
JavaScript
var Extensions = require('periodicjs.core.extensions'),
ExtensionCore = new Extensions({
dirname: __dirname
});
ExtensionCore.uninstall(options,callback);
##API
ExtensionCore.loadExtensions(periodic);
##Development
Make sure you have grunt installed
$ npm install -g grunt-cli
Then run grunt watch
$ grunt watch
##Notes