main.js 396 B

12345678910111213141516
  1. var path = require("path");
  2. var Commoner = require("./lib/commoner").Commoner;
  3. exports.Commoner = Commoner;
  4. function defCallback(name) {
  5. exports[name] = function() {
  6. var commoner = new Commoner;
  7. commoner[name].apply(commoner, arguments);
  8. commoner.cliBuildP();
  9. return commoner;
  10. };
  11. }
  12. defCallback("version");
  13. defCallback("resolve");
  14. defCallback("process");