File tree Expand file tree Collapse file tree
templates/yeoman/src/generator Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import * as path from 'path';
22import * as yeoman from 'yeoman-generator' ;
33import * as uuid from 'node-uuid' ;
44import * as glob from 'glob' ;
5+ const yosay = require ( 'yosay' ) ;
56const toPascalCase = require ( 'to-pascal-case' ) ;
67
78const templates = [
@@ -16,8 +17,9 @@ class MyGenerator extends yeoman.Base {
1617
1718 constructor ( args : string | string [ ] , options : any ) {
1819 super ( args , options ) ;
20+ this . log ( yosay ( 'Welcome to the ASP.NET Core Single-Page App generator!' ) ) ;
1921 }
20-
22+
2123 prompting ( ) {
2224 const done = this . async ( ) ;
2325
Original file line number Diff line number Diff line change 11{
22 "name" : " generator-aspnet-spa" ,
3- "version" : " 0.1.2 " ,
3+ "version" : " 0.1.3 " ,
44 "description" : " Single-Page App templates for ASP.NET Core" ,
55 "author" : " Microsoft" ,
66 "license" : " Apache-2.0" ,
1414 "glob" : " ^7.0.3" ,
1515 "node-uuid" : " ^1.4.7" ,
1616 "to-pascal-case" : " ^1.0.0" ,
17- "yeoman-generator" : " ^0.20.2"
17+ "yeoman-generator" : " ^0.20.2" ,
18+ "yosay" : " ^1.1.1"
1819 }
1920}
You can’t perform that action at this time.
0 commit comments