Closed albertosantini closed 8 years ago
This is a proposal how to split the source code in modules.
index.js
module.exports = require("./lib/rio");
lib/rio.js
var evaluate = require("./evaluate"); var debug = require("./debug"); var shutdown = require("./shutdown"); exports.evaluate = evaluate.evaluate; exports.E = evaluate.evaluate; exports.enableDebug = debug.enableDebug; exports.enableRecordMode = debug.enableRecordMode; exports.enablePlaybackMode = debug.enablePlaybackMode; exports.shutdown = shutdown.shutdown;
This list is only a suggestion.
lib/util.js
lib/global.js
lib/debug.js
lib/parse.js
lib/auth.js
lib/send.js
lib/evaluate.js
lib/shutdown.js
First split: https://github.com/albertosantini/node-rio/commit/cb841c4d5d78dd156d4969d1deb343aac71f78cf
At last dev-2.x branch is merged.
dev-2.x
This is a proposal how to split the source code in modules.
index.js
lib/rio.js
This list is only a suggestion.
lib/util.js
lib/global.js
lib/debug.js
lib/parse.js
lib/auth.js
lib/send.js
lib/evaluate.js
lib/shutdown.js