Permalink
Browse files

cleanup for plugin.js

  • Loading branch information...
1 parent 40a895d commit 0c10c5e8543078bff256d53ce59119907bbdf6ed @crcn crcn committed Jan 22, 2013
View
BIN .DS_Store
Binary file not shown.
View
No changes.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
@@ -1,5 +1,4 @@
-var router = require("beanpoll").router(),
-pluginLoader = require("plugin").loader(),
+var plugin = require("plugin")(),
EventEmitter = require('events').EventEmitter;
require('./config');
@@ -13,7 +12,7 @@ exports.init = function(callback) {
- if(initialized) return callback(router);
+ if(initialized) return callback(loaer.module("router"));
em.addListener('init', callback);
@@ -22,9 +21,10 @@ exports.init = function(callback) {
initialized = true;
- pluginLoader.options(router).
- require(__dirname + '/beans').
- init();
+ var router = plugin.
+ require(__dirname + '/plugins').
+ load().
+ module("router");
router.pull('load/config', function() {
@@ -7,7 +7,7 @@ vine = require('vine');
*/
-
+exports.require = ["router"];
exports.plugin = function(router) {
router.on({
@@ -5,6 +5,7 @@
var vine = require('vine'),
exec = require('child_process').exec;
+exports.require = ["router"];
exports.plugin = function(router) {
router.on({
@@ -1,3 +1,4 @@
+exports.require = ["router"];
exports.plugin = function(router) {
router.on({
@@ -1,5 +1,6 @@
var celeri = require('celeri');
+exports.require = ["router"];
exports.plugin = function(router) {
var helpMenu = {};
@@ -2,7 +2,8 @@ var vine = require('vine'),
exec = require('child_process').exec,
fs = require('fs');
-exports.plugin = function(router) {
+exports.require = ["router"];
+exports.plugin = function(router, loader) {
//include third-party modules now.
@@ -15,7 +16,7 @@ exports.plugin = function(router) {
}
- this.require(pluginsDir);
+ loader.require(pluginsDir);
function exec2(cmd, cwd, callback) {
@@ -5,6 +5,7 @@ fs = require('fs');
* "Untouches" target projects so they appear to be updated in cupboard
*/
+exports.require = ["router"];
exports.plugin = function(router) {
function findLink(path, moduleName, callback) {
@@ -9,6 +9,7 @@ _ = require('underscore');
* lists all projects within cupboard
*/
+exports.require = ["router"];
exports.plugin = function(router) {
@@ -1,3 +1,4 @@
+exports.require = ["router"];
exports.plugin = function(router) {
router.on({
@@ -1,5 +1,6 @@
var vine = require('vine');
+exports.require = ["router"];
exports.plugin = function(router) {
router.on({
@@ -2,6 +2,7 @@
* "Untouches" target projects so they appear to be updated in cupboard
*/
+exports.require = ["router"];
exports.plugin = function(router) {
router.on({
@@ -5,6 +5,7 @@
var vine = require('vine'),
fs = require('fs');
+exports.require = ["router"];
exports.plugin = function(router) {
router.on({
@@ -2,6 +2,7 @@ var chowder = require('chowder'),
vine = require('vine'),
path = require('path');
+exports.require = ["router"];
exports.plugin = function(router) {
var include = [process.env.MAIN_CFG];
File renamed without changes.
@@ -3,8 +3,10 @@ vine = require('vine'),
path = require('path'),
exec = require('child_process').exec;
+exports.require = ["router"];
exports.plugin = function(router) {
-
+
+
var Project, config, commands = {};
router.on({
File renamed without changes.
@@ -0,0 +1,5 @@
+var beanpoll = require("beanpoll");
+
+exports.plugin = function () {
+ return beanpoll.router();
+}
View
@@ -17,7 +17,7 @@
"underscore": "*",
"structr": "0.2.x",
"beanpoll": "<0.3.0",
- "plugin": "<0.2.0",
+ "plugin": "<0.3.0",
"vine": "0.0.10",
"chowder": "*",
"watch_r": "*",

0 comments on commit 0c10c5e

Please sign in to comment.