File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,7 @@ const pkg = require('../../package.json');
66
77module . exports = class extends Generator {
88 async prompting ( ) {
9- this . log (
10- yosay ( `Welcome to the ${ chalk . red ( pkg . name ) } generator!` ) ,
11- ) ;
9+ this . log ( yosay ( `Welcome to the ${ chalk . red ( pkg . name ) } generator!` ) ) ;
1210
1311 const gitName = this . user . git . name ( ) || 'organization' ;
1412 const gitEmail = this . user . git . email ( ) || 'hi@domain.com' ;
@@ -60,8 +58,7 @@ module.exports = class extends Generator {
6058 } ,
6159 ] ;
6260
63- return this . prompt ( prompts ) . then ( props => {
64- // To access props later use this.props.someAnswer;
61+ return this . prompt ( prompts ) . then ( ( props ) => {
6562 this . props = props ;
6663 } ) ;
6764 }
@@ -79,6 +76,6 @@ module.exports = class extends Generator {
7976 }
8077
8178 install ( ) {
82- // this.yarnInstall();
79+ this . yarnInstall ( ) ;
8380 }
8481} ;
You can’t perform that action at this time.
0 commit comments