Add yosay to Yeoman generator

This commit is contained in:
SteveSandersonMS
2016-05-02 10:24:37 -07:00
parent a846ea85e0
commit ad4bf09407
2 changed files with 6 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ import * as path from 'path';
import * as yeoman from 'yeoman-generator';
import * as uuid from 'node-uuid';
import * as glob from 'glob';
const yosay = require('yosay');
const toPascalCase = require('to-pascal-case');
const templates = [
@@ -16,6 +17,7 @@ class MyGenerator extends yeoman.Base {
constructor(args: string | string[], options: any) {
super(args, options);
this.log(yosay('Welcome to the ASP.NET Core Single-Page App generator!'));
}
prompting() {

View File

@@ -1,6 +1,6 @@
{
"name": "generator-aspnet-spa",
"version": "0.1.2",
"version": "0.1.3",
"description": "Single-Page App templates for ASP.NET Core",
"author": "Microsoft",
"license": "Apache-2.0",
@@ -14,6 +14,7 @@
"glob": "^7.0.3",
"node-uuid": "^1.4.7",
"to-pascal-case": "^1.0.0",
"yeoman-generator": "^0.20.2"
"yeoman-generator": "^0.20.2",
"yosay": "^1.1.1"
}
}