diff --git a/lib/create.js b/lib/create.js index cdfaa9d..f8811b9 100644 --- a/lib/create.js +++ b/lib/create.js @@ -146,13 +146,13 @@ var createDirs = function(options, callback) { }); }; -exports.init = function(options, callback) { +var init = function(options, callback) { var start = (new Date()).getTime(); log.info('creating module (' + options.name + ') in: ' + options.location); if (util.exists(options.location)) { log.bail('destination already exists, you are on your own! bailing..'); } - + createDirs(options, function() { util.tree(options.location, options.root, function(tree) { log.log(''); @@ -165,3 +165,8 @@ exports.init = function(options, callback) { }); }; +module.exports = { + init: init, + createJSON: createJSON, + createDirs: createDirs +};