mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Add deprecation notice to Yeoman package
This commit is contained in:
1
templates/package-builder/src/yeoman/.gitignore
vendored
Normal file
1
templates/package-builder/src/yeoman/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/node_modules
|
||||
@@ -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.
|
||||
|
||||
@@ -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`.
|
||||
|
||||
#### 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).
|
||||
|
||||
15
templates/package-builder/src/yeoman/app/index.js
Normal file
15
templates/package-builder/src/yeoman/app/index.js
Normal 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')));
|
||||
}
|
||||
};
|
||||
@@ -4,6 +4,10 @@
|
||||
"description": "DEPRECATED. Do not use. Use 'dotnet new' to create ASP.NET Core Single-Page Application projects instead.",
|
||||
"author": "Microsoft",
|
||||
"license": "Apache-2.0",
|
||||
"files": [
|
||||
"app",
|
||||
"README.md"
|
||||
],
|
||||
"keywords": [
|
||||
"yeoman-generator"
|
||||
],
|
||||
@@ -15,5 +19,8 @@
|
||||
"url": "https://github.com/aspnet/JavaScriptServices.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"marked": "^0.3.6",
|
||||
"marked-terminal": "^2.0.0",
|
||||
"yeoman-generator": "^1.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user