Stop using `lib` fn, breaks browserify
This commit is contained in:
parent
3451932bde
commit
3a2766bcd9
24
index.js
24
index.js
|
@ -1,24 +1,22 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
function lib(path) { return require("./lib/" + path); }
|
var Config = require("./lib/config"),
|
||||||
|
MCP = require("./lib/mcp"),
|
||||||
var Config = lib("config"),
|
API = require("./lib/api");
|
||||||
MCP = lib("mcp"),
|
|
||||||
API = lib("api");
|
|
||||||
|
|
||||||
var exports = module.exports = {};
|
var exports = module.exports = {};
|
||||||
|
|
||||||
exports.MCP = lib("mcp");
|
exports.MCP = require("./lib/mcp");
|
||||||
exports.Robot = lib("robot");
|
exports.Robot = require("./lib/robot");
|
||||||
exports.Driver = lib("driver");
|
exports.Driver = require("./lib/driver");
|
||||||
exports.Adaptor = lib("adaptor");
|
exports.Adaptor = require("./lib/adaptor");
|
||||||
|
|
||||||
exports.Utils = lib("utils");
|
exports.Utils = require("./lib/utils");
|
||||||
exports.Logger = lib("logger");
|
exports.Logger = require("./lib/logger");
|
||||||
|
|
||||||
exports.IO = {
|
exports.IO = {
|
||||||
DigitalPin: lib("io/digital-pin"),
|
DigitalPin: require("./lib/io/digital-pin"),
|
||||||
Utils: lib("io/utils")
|
Utils: require("./lib/io/utils")
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.robot = MCP.create;
|
exports.robot = MCP.create;
|
||||||
|
|
Loading…
Reference in New Issue