Update Yeoman generator references to aspnet to aspnetcore

This commit is contained in:
SteveSandersonMS
2016-04-29 12:10:20 +01:00
parent c073248981
commit 9cb6d5d2b6
7 changed files with 8 additions and 16 deletions

View File

@@ -77,7 +77,7 @@ function copyRecursive(sourceRoot: string, destRoot: string, matchGlob: string)
});
}
const outputRoot = './generator-aspnet-spa';
const outputRoot = './generator-aspnetcore-spa';
const outputTemplatesRoot = path.join(outputRoot, 'app/templates');
rimraf.sync(outputTemplatesRoot);

View File

@@ -56,20 +56,12 @@ class MyGenerator extends yeoman.Base {
}
installingDeps() {
// Strictly speaking, with DNX, the 'prepare' script runs 'npm install' anyway so we don't really need
// to run it from here. But it will be needed with RC2, and it doesn't make the setup take much longer
// because the second run is almost a no-op, so it's OK to leave it here for now.
this.installDependencies({
npm: true,
bower: false,
callback: () => {
this.spawnCommandSync('dnu', ['restore']);
// With DNX, the 'prepare' script builds the vendor files automatically so the following is not
// required. With RC2 and the 'dotnet' tooling, that won't happen automatically, so the following
// will be required:
// this.spawnCommandSync('./node_modules/.bin/webpack', ['--config', 'webpack.config.vendor.js']);
this.spawnCommandSync('dotnet', ['restore']);
this.spawnCommandSync('./node_modules/.bin/webpack', ['--config', 'webpack.config.vendor.js']);
this.spawnCommandSync('./node_modules/.bin/webpack');
}
});

View File

@@ -1,5 +1,5 @@
{
"name": "generator-aspnet-spa",
"name": "generator-aspnetcore-spa",
"version": "0.1.3",
"description": "Single-Page App templates for ASP.NET Core",
"author": "Microsoft",