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

@@ -1,3 +1,3 @@
/node_modules/
/built/
/generator-aspnet-spa/
/generator-aspnetcore-spa/

View File

@@ -2,4 +2,4 @@ To generator the Yeoman generator, execute:
npm run build
Output will appear in the `generator-aspnet-spa` directory.
Output will appear in the `generator-aspnetcore-spa` directory.

View File

@@ -1,5 +1,5 @@
{
"name": "generator-aspnetspa-generator",
"name": "generator-aspnetcore-spa-generator",
"version": "1.0.0",
"description": "Creates the Yeoman generator for ASP.NET Core SPA templates",
"main": "index.js",

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",

View File

@@ -7,6 +7,6 @@
},
"exclude": [
"node_modules",
"generator-aspnet-spa"
"generator-aspnetcore-spa"
]
}