Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 900e9ca

Browse files
Add deprecation notice to Yeoman package
1 parent ad758b1 commit 900e9ca

File tree

4 files changed

+25
-2
lines changed

4 files changed

+25
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

templates/package-builder/src/yeoman/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Please use "dotnet new" templates instead
1+
## Please use "dotnet new" templates instead
22

33
As of .NET Core 2.0, it's no longer necessary to use Yeoman to create new Single-Page Application projects.
44

@@ -10,6 +10,6 @@ Using the .NET Core 2.0 SDK, you can run any of the following commands in an emp
1010

1111
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`.
1212

13-
#### This Yeoman generator is DEPRECATED
13+
### This Yeoman generator is DEPRECATED
1414

1515
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).
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var Generator = require('yeoman-generator');
2+
var fs = require('fs');
3+
var path = require('path');
4+
var marked = require('marked');
5+
var TerminalRenderer = require('marked-terminal');
6+
7+
marked.setOptions({ renderer: new TerminalRenderer() });
8+
9+
module.exports = class extends Generator {
10+
run() {
11+
// Just display deprecation notice from README.md
12+
const readmePath = path.join(__dirname, '../README.md');
13+
console.log(marked(fs.readFileSync(readmePath, 'utf8')));
14+
}
15+
};

templates/package-builder/src/yeoman/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"description": "DEPRECATED. Do not use. Use 'dotnet new' to create ASP.NET Core Single-Page Application projects instead.",
55
"author": "Microsoft",
66
"license": "Apache-2.0",
7+
"files": [
8+
"app",
9+
"README.md"
10+
],
711
"keywords": [
812
"yeoman-generator"
913
],
@@ -15,5 +19,8 @@
1519
"url": "https://github.com/aspnet/JavaScriptServices.git"
1620
},
1721
"dependencies": {
22+
"marked": "^0.3.6",
23+
"marked-terminal": "^2.0.0",
24+
"yeoman-generator": "^1.0.0"
1825
}
1926
}

0 commit comments

Comments
 (0)