Add deprecation notice to Yeoman package

This commit is contained in:
Steve Sanderson
2017-08-22 17:11:02 -07:00
parent ad758b1060
commit 900e9ca835
4 changed files with 25 additions and 2 deletions

View File

@@ -0,0 +1 @@
/node_modules

View File

@@ -1,4 +1,4 @@
# Please use "dotnet new" templates instead ## Please use "dotnet new" templates instead
As of .NET Core 2.0, it's no longer necessary to use Yeoman to create new Single-Page Application projects. As of .NET Core 2.0, it's no longer necessary to use Yeoman to create new Single-Page Application projects.
@@ -10,6 +10,6 @@ Using the .NET Core 2.0 SDK, you can run any of the following commands in an emp
Or, if you want to create an Aurelia, Knockout, or Vue application, you should run `dotnet new --install Microsoft.AspNetCore.SpaTemplates::*` first. This will add `aurelia`, `knockout`, and `vue` templates to `dotnet new`. Or, if you want to create an Aurelia, Knockout, or Vue application, you should run `dotnet new --install Microsoft.AspNetCore.SpaTemplates::*` first. This will add `aurelia`, `knockout`, and `vue` templates to `dotnet new`.
#### This Yeoman generator is DEPRECATED ### This Yeoman generator is DEPRECATED
Please don't use `generator-aspnetcore-spa` to create new projects. Its output is outdated and no longer maintained. Instead, use `dotnet new` as described above (or if you're on Windows and use Visual Studio, you can just use *File->New Project* to create Angular, React, or React+Redux projects). Please don't use `generator-aspnetcore-spa` to create new projects. Its output is outdated and no longer maintained. Instead, use `dotnet new` as described above (or if you're on Windows and use Visual Studio, you can just use *File->New Project* to create Angular, React, or React+Redux projects).

View File

@@ -0,0 +1,15 @@
var Generator = require('yeoman-generator');
var fs = require('fs');
var path = require('path');
var marked = require('marked');
var TerminalRenderer = require('marked-terminal');
marked.setOptions({ renderer: new TerminalRenderer() });
module.exports = class extends Generator {
run() {
// Just display deprecation notice from README.md
const readmePath = path.join(__dirname, '../README.md');
console.log(marked(fs.readFileSync(readmePath, 'utf8')));
}
};

View File

@@ -4,6 +4,10 @@
"description": "DEPRECATED. Do not use. Use 'dotnet new' to create ASP.NET Core Single-Page Application projects instead.", "description": "DEPRECATED. Do not use. Use 'dotnet new' to create ASP.NET Core Single-Page Application projects instead.",
"author": "Microsoft", "author": "Microsoft",
"license": "Apache-2.0", "license": "Apache-2.0",
"files": [
"app",
"README.md"
],
"keywords": [ "keywords": [
"yeoman-generator" "yeoman-generator"
], ],
@@ -15,5 +19,8 @@
"url": "https://github.com/aspnet/JavaScriptServices.git" "url": "https://github.com/aspnet/JavaScriptServices.git"
}, },
"dependencies": { "dependencies": {
"marked": "^0.3.6",
"marked-terminal": "^2.0.0",
"yeoman-generator": "^1.0.0"
} }
} }