Skip to content

Commit ad4bf09

Browse files
Add yosay to Yeoman generator
1 parent a846ea8 commit ad4bf09

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

templates/yeoman/src/generator/app/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as path from 'path';
22
import * as yeoman from 'yeoman-generator';
33
import * as uuid from 'node-uuid';
44
import * as glob from 'glob';
5+
const yosay = require('yosay');
56
const toPascalCase = require('to-pascal-case');
67

78
const 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

templates/yeoman/src/generator/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",
@@ -14,6 +14,7 @@
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
}

0 commit comments

Comments
 (0)