@@ -13,37 +13,37 @@ const ask = inquirer.prompt;
1313 * @param {boolean } options.force - Flag whether to force install in existing project directory. May overwrite stuff.
1414 */
1515const init = options =>
16- wrapsAsync ( function * ( ) {
17- /**
18- * @property {string } project_root="./" - Path to the project root directory
19- * @property {string|Symbol } edition - The name of the edition npm package or a Symbol for no install
20- */
21- const editionAnswers = yield ask ( editionSetup ) ;
16+ wrapsAsync ( function * ( ) {
17+ /**
18+ * @property {string } project_root="./" - Path to the project root directory
19+ * @property {string|Symbol } edition - The name of the edition npm package or a Symbol for no install
20+ */
21+ const editionAnswers = yield ask ( editionSetup ) ;
2222
23- /**
24- * @property {object|Symbol } starterkit - The name of a starterkit npm package or a Symbol for no install
25- */
26- const starterkitAnswers = yield ask ( starterkitSetup ) ;
23+ /**
24+ * @property {object|Symbol } starterkit - The name of a starterkit npm package or a Symbol for no install
25+ */
26+ const starterkitAnswers = yield ask ( starterkitSetup ) ;
2727
28- /**
29- * @property {boolean } confirm - A bool hold the confirmation status
30- */
31- const confirmation = yield ask ( confirmSetup ) ;
28+ /**
29+ * @property {boolean } confirm - A bool hold the confirmation status
30+ */
31+ const confirmation = yield ask ( confirmSetup ) ;
3232
33- // IF we have no confirmation we start all over again.
34- if ( ! confirmation . confirm ) {
35- return init ( options ) ;
36- }
33+ // IF we have no confirmation we start all over again.
34+ if ( ! confirmation . confirm ) {
35+ return init ( options ) ;
36+ }
3737
38- return {
39- // Destructure the answers
40- projectDir : editionAnswers . project_root ,
41- edition : editionAnswers . edition !== false ? editionAnswers . edition : '' ,
42- starterkit :
43- starterkitAnswers . starterkit !== false
44- ? starterkitAnswers . starterkit
45- : '' ,
46- } ;
47- } ) ;
38+ return {
39+ // Destructure the answers
40+ projectDir : editionAnswers . project_root ,
41+ edition : editionAnswers . edition !== false ? editionAnswers . edition : '' ,
42+ starterkit :
43+ starterkitAnswers . starterkit !== false
44+ ? starterkitAnswers . starterkit
45+ : '' ,
46+ } ;
47+ } ) ;
4848
4949module . exports = init ;
0 commit comments