Skip to content

Commit 9cb6d5d

Browse files
Update Yeoman generator references to aspnet to aspnetcore
1 parent c073248 commit 9cb6d5d

7 files changed

Lines changed: 8 additions & 16 deletions

File tree

templates/yeoman/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/node_modules/
22
/built/
3-
/generator-aspnet-spa/
3+
/generator-aspnetcore-spa/

templates/yeoman/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ To generator the Yeoman generator, execute:
22

33
npm run build
44

5-
Output will appear in the `generator-aspnet-spa` directory.
5+
Output will appear in the `generator-aspnetcore-spa` directory.

templates/yeoman/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "generator-aspnetspa-generator",
2+
"name": "generator-aspnetcore-spa-generator",
33
"version": "1.0.0",
44
"description": "Creates the Yeoman generator for ASP.NET Core SPA templates",
55
"main": "index.js",

templates/yeoman/src/build/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function copyRecursive(sourceRoot: string, destRoot: string, matchGlob: string)
7777
});
7878
}
7979

80-
const outputRoot = './generator-aspnet-spa';
80+
const outputRoot = './generator-aspnetcore-spa';
8181
const outputTemplatesRoot = path.join(outputRoot, 'app/templates');
8282
rimraf.sync(outputTemplatesRoot);
8383

templates/yeoman/src/generator/app/index.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,12 @@ class MyGenerator extends yeoman.Base {
5656
}
5757

5858
installingDeps() {
59-
// Strictly speaking, with DNX, the 'prepare' script runs 'npm install' anyway so we don't really need
60-
// to run it from here. But it will be needed with RC2, and it doesn't make the setup take much longer
61-
// because the second run is almost a no-op, so it's OK to leave it here for now.
6259
this.installDependencies({
6360
npm: true,
6461
bower: false,
6562
callback: () => {
66-
this.spawnCommandSync('dnu', ['restore']);
67-
68-
// With DNX, the 'prepare' script builds the vendor files automatically so the following is not
69-
// required. With RC2 and the 'dotnet' tooling, that won't happen automatically, so the following
70-
// will be required:
71-
// this.spawnCommandSync('./node_modules/.bin/webpack', ['--config', 'webpack.config.vendor.js']);
72-
63+
this.spawnCommandSync('dotnet', ['restore']);
64+
this.spawnCommandSync('./node_modules/.bin/webpack', ['--config', 'webpack.config.vendor.js']);
7365
this.spawnCommandSync('./node_modules/.bin/webpack');
7466
}
7567
});

templates/yeoman/src/generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "generator-aspnet-spa",
2+
"name": "generator-aspnetcore-spa",
33
"version": "0.1.3",
44
"description": "Single-Page App templates for ASP.NET Core",
55
"author": "Microsoft",

templates/yeoman/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
},
88
"exclude": [
99
"node_modules",
10-
"generator-aspnet-spa"
10+
"generator-aspnetcore-spa"
1111
]
1212
}

0 commit comments

Comments
 (0)