periodicjs.core.extensions
v7.0.0
Published
extension helper functions for periodicjs cms framework
Downloads
69
Readme
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
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); //load extensions defined in content/extensions/extensions.json
##Development Make sure you have grunt installed
$ npm install -g grunt-cli
Then run grunt watch
$ grunt watch
##Notes
- Check out https://github.com/typesettin/periodicjs for the full Periodic Documentation