observing / square

The last build system you would ever want to use
MIT License
56 stars 9 forks source link

Rewrite the plugin interface #33

Open 3rd-Eden opened 12 years ago

3rd-Eden commented 12 years ago

The plugin interface is "okay" but it's to molded to much around a middleware interface that is supported by connect / express et all..

To make the core more clear we should extract some logic.

var square = require('square/plugin'); // some plugin tools

exports.configuration = {
    key: value,
    setting: 13131
}

exports.description = "bla bla bla"
exports.name = "bla bla bla bla"
exports.type = square.modifier; // type of plugin, modifies content, or something else.
exports.version = "1.0.0"; // plugin version

exports.init = function (configuration, fn) {

};

or something simple like that

3rd-Eden commented 11 years ago

The plugin interface has been written, still needs tests and transform old style plugins to the new interface.