From 594104be4c1e820f4709e4305f1d99a326ac141f Mon Sep 17 00:00:00 2001 From: Joe Alves Date: Tue, 31 May 2016 15:35:57 -0400 Subject: [PATCH] Extra options for generation --- bin/generate.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/generate.js b/bin/generate.js index b9fd475..31006a6 100644 --- a/bin/generate.js +++ b/bin/generate.js @@ -6,7 +6,16 @@ var rename = bluebird.promisify(require('fs').rename); ncp.limit = 16; -var newProjectDir = process.cwd(); +var newProjectDir = (function () { + + if (process.argv[2]) { + return path.join(process.cwd(), process.argv[2]); + } + + return process.cwd(); + +})(); + var generatorFilesPath = path.join(__dirname, '../generated');