Skip to content
Browse files

FIXED - 'rocket' project creation utility to now owkr with non-plurar…

… dirs
  • Loading branch information...
1 parent 25bdedc commit 15ef604f31cb111ba93b35499b70f0d025660220 @glesperance committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 bin/rocket.js
View
8 bin/rocket.js
@@ -13,7 +13,7 @@
*/
function printUsage() {
- var generators = fs.readdirSync(path.join(__dirname, '..', 'libs', 'generators'))
+ var generators = fs.readdirSync(path.join(__dirname, '..', 'lib', 'generator'))
, generators_list = ''
;
@@ -121,10 +121,10 @@
}
if(parsed.init) {
- require('../libs/generators/_project_generator')(parsed.init);
+ require('../lib/generator/_project_generator')(parsed.init);
}else if(parsed.info) {
- generator = require('../libs/generators/' + parsed.info + '_generator/').info();
+ generator = require('../lib/generator/' + parsed.info + '_generator/').info();
}else if(parsed.add) {
@@ -136,7 +136,7 @@
;
try {
- generator = require('../libs/generators/' + parsed.add + '_generator');
+ generator = require('../lib/generator/' + parsed.add + '_generator');
}catch(err){
console.log(('xxx ERROR : [' + parsed.add + '] wrong element type.').red);
}

0 comments on commit 15ef604

Please sign in to comment.
Something went wrong with that request. Please try again.