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

Commit d928ef4

Browse files
Rename folders since the template package generator now creates a package for "dotnet new" as well as Yeoman
1 parent 1019026 commit d928ef4

File tree

22 files changed

+3
-3
lines changed

22 files changed

+3
-3
lines changed
File renamed without changes.
File renamed without changes.

templates/yeoman/package.json renamed to templates/package-builder/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "generator-aspnetcore-spa-generator",
33
"version": "1.0.0",
4-
"description": "Creates the Yeoman generator for ASP.NET Core SPA templates",
4+
"description": "Creates the Yeoman generator and 'dotnet new' package for ASP.NET Core SPA templates",
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",

templates/yeoman/src/build/build.ts renamed to templates/package-builder/src/build/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as childProcess from 'child_process';
99

1010
const isWindows = /^win/.test(process.platform);
1111
const textFileExtensions = ['.gitignore', 'template_gitignore', '.config', '.cs', '.cshtml', 'Dockerfile', '.html', '.js', '.json', '.jsx', '.md', '.nuspec', '.ts', '.tsx', '.xproj'];
12-
const yeomanGeneratorSource = './src/generator';
12+
const yeomanGeneratorSource = './src/yeoman';
1313

1414
const templates: { [key: string]: { dir: string, dotNetNewId: string, displayName: string } } = {
1515
'angular-2': { dir: '../../templates/Angular2Spa/', dotNetNewId: 'Angular', displayName: 'Angular 2' },
@@ -94,7 +94,7 @@ function buildYeomanNpmPackage() {
9494

9595
// Also copy the generator files (that's the compiled .js files, plus all other non-.ts files)
9696
const tempRoot = './tmp';
97-
copyRecursive(path.join(tempRoot, 'generator'), outputRoot, '**/*.js');
97+
copyRecursive(path.join(tempRoot, 'yeoman'), outputRoot, '**/*.js');
9898
copyRecursive(yeomanGeneratorSource, outputRoot, '**/!(*.ts)');
9999

100100
// Clean up
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)