@@ -35,22 +35,22 @@ module.exports = yeoman.Base.extend({
3535
3636 this . option ( 'skip-install' , {
3737 desc : g . f ( 'Do not install npm dependencies.' ) ,
38- type : Boolean
38+ type : Boolean ,
3939 } ) ;
4040
4141 this . option ( 'skip-next-steps' , {
4242 desc : g . f ( 'Do not print "next steps" info' ) ,
43- type : Boolean
43+ type : Boolean ,
4444 } ) ;
4545
4646 this . option ( 'explorer' , {
4747 desc : g . f ( 'Add Loopback Explorer to the project (true by default)' ) ,
48- type : Boolean
48+ type : Boolean ,
4949 } ) ;
5050 } ,
5151
5252 greet : function ( ) {
53- g . log ( yosay ( g . f ( 'Let\'s create a LoopBack application!' ) ) ) ;
53+ this . log ( yosay ( g . f ( 'Let\'s create a LoopBack application!' ) ) ) ;
5454 } ,
5555
5656 help : function ( ) {
@@ -89,7 +89,7 @@ module.exports = yeoman.Base.extend({
8989 this . templates = list . map ( function ( t ) {
9090 return {
9191 name : g . f ( '%s (%s)' , t . name , t . description ) ,
92- value : t . name
92+ value : t . name ,
9393 } ;
9494 } ) ;
9595
@@ -215,7 +215,7 @@ module.exports = yeoman.Base.extend({
215215 } ,
216216
217217 generateYoRc : function ( ) {
218- g . log ( 'Generating .yo-rc.json' ) ;
218+ this . log ( g . f ( 'Generating {{ .yo-rc.json}}' ) ) ;
219219 this . config . save ( ) ;
220220 } ,
221221
@@ -230,27 +230,27 @@ module.exports = yeoman.Base.extend({
230230 this . log ( ) ;
231231 }
232232
233- g . log ( 'Next steps:' ) ;
233+ this . log ( g . f ( 'Next steps:' ) ) ;
234234 this . log ( ) ;
235235 if ( this . dir && this . dir !== '.' ) {
236- g . log ( ' Change directory to your app' ) ;
236+ this . log ( g . f ( ' Change directory to your app' ) ) ;
237237 this . log ( chalk . green ( ' $ cd ' + this . dir ) ) ;
238238 this . log ( ) ;
239239 }
240240 if ( cmd === 'apic' ) {
241- g . log ( ' Run API Designer to create, test, and publish your' +
242- ' application' ) ;
241+ this . log ( g . f ( ' Run API Designer to create, test, and publish your' +
242+ ' application' ) ) ;
243243 this . log ( chalk . green ( ' $ apic edit' ) ) ;
244244 this . log ( ) ;
245245 } else {
246- g . log ( ' Create a model in your app' ) ;
246+ this . log ( g . f ( ' Create a model in your app' ) ) ;
247247 this . log ( chalk . green ( ' $ ' + cmd + ' loopback:model' ) ) ;
248248 this . log ( ) ;
249- g . log (
250- ' Compose your API, run, deploy, profile, and monitor it with Arc' ) ;
249+ this . log ( g . f (
250+ ' Compose your API, run, deploy, profile, and monitor it with Arc' ) ) ;
251251 this . log ( chalk . green ( ' $ slc arc' ) ) ;
252252 this . log ( ) ;
253- g . log ( ' Run the app' ) ;
253+ this . log ( g . f ( ' Run the app' ) ) ;
254254 this . log ( chalk . green ( ' $ node .' ) ) ;
255255 this . log ( ) ;
256256 }
0 commit comments