mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 10:08:57 +00:00
Add yosay to Yeoman generator
This commit is contained in:
@@ -2,6 +2,7 @@ import * as path from 'path';
|
|||||||
import * as yeoman from 'yeoman-generator';
|
import * as yeoman from 'yeoman-generator';
|
||||||
import * as uuid from 'node-uuid';
|
import * as uuid from 'node-uuid';
|
||||||
import * as glob from 'glob';
|
import * as glob from 'glob';
|
||||||
|
const yosay = require('yosay');
|
||||||
const toPascalCase = require('to-pascal-case');
|
const toPascalCase = require('to-pascal-case');
|
||||||
|
|
||||||
const templates = [
|
const templates = [
|
||||||
@@ -16,6 +17,7 @@ class MyGenerator extends yeoman.Base {
|
|||||||
|
|
||||||
constructor(args: string | string[], options: any) {
|
constructor(args: string | string[], options: any) {
|
||||||
super(args, options);
|
super(args, options);
|
||||||
|
this.log(yosay('Welcome to the ASP.NET Core Single-Page App generator!'));
|
||||||
}
|
}
|
||||||
|
|
||||||
prompting() {
|
prompting() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "generator-aspnet-spa",
|
"name": "generator-aspnet-spa",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"description": "Single-Page App templates for ASP.NET Core",
|
"description": "Single-Page App templates for ASP.NET Core",
|
||||||
"author": "Microsoft",
|
"author": "Microsoft",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
@@ -14,6 +14,7 @@
|
|||||||
"glob": "^7.0.3",
|
"glob": "^7.0.3",
|
||||||
"node-uuid": "^1.4.7",
|
"node-uuid": "^1.4.7",
|
||||||
"to-pascal-case": "^1.0.0",
|
"to-pascal-case": "^1.0.0",
|
||||||
"yeoman-generator": "^0.20.2"
|
"yeoman-generator": "^0.20.2",
|
||||||
|
"yosay": "^1.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user