mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 10:08:57 +00:00
Update Yeoman generator references to aspnet to aspnetcore
This commit is contained in:
2
templates/yeoman/.gitignore
vendored
2
templates/yeoman/.gitignore
vendored
@@ -1,3 +1,3 @@
|
|||||||
/node_modules/
|
/node_modules/
|
||||||
/built/
|
/built/
|
||||||
/generator-aspnet-spa/
|
/generator-aspnetcore-spa/
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ To generator the Yeoman generator, execute:
|
|||||||
|
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
Output will appear in the `generator-aspnet-spa` directory.
|
Output will appear in the `generator-aspnetcore-spa` directory.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "generator-aspnetspa-generator",
|
"name": "generator-aspnetcore-spa-generator",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Creates the Yeoman generator for ASP.NET Core SPA templates",
|
"description": "Creates the Yeoman generator for ASP.NET Core SPA templates",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
|||||||
@@ -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');
|
const outputTemplatesRoot = path.join(outputRoot, 'app/templates');
|
||||||
rimraf.sync(outputTemplatesRoot);
|
rimraf.sync(outputTemplatesRoot);
|
||||||
|
|
||||||
|
|||||||
@@ -56,20 +56,12 @@ class MyGenerator extends yeoman.Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
installingDeps() {
|
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({
|
this.installDependencies({
|
||||||
npm: true,
|
npm: true,
|
||||||
bower: false,
|
bower: false,
|
||||||
callback: () => {
|
callback: () => {
|
||||||
this.spawnCommandSync('dnu', ['restore']);
|
this.spawnCommandSync('dotnet', ['restore']);
|
||||||
|
this.spawnCommandSync('./node_modules/.bin/webpack', ['--config', 'webpack.config.vendor.js']);
|
||||||
// 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('./node_modules/.bin/webpack');
|
this.spawnCommandSync('./node_modules/.bin/webpack');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "generator-aspnet-spa",
|
"name": "generator-aspnetcore-spa",
|
||||||
"version": "0.1.3",
|
"version": "0.1.3",
|
||||||
"description": "Single-Page App templates for ASP.NET Core",
|
"description": "Single-Page App templates for ASP.NET Core",
|
||||||
"author": "Microsoft",
|
"author": "Microsoft",
|
||||||
|
|||||||
@@ -7,6 +7,6 @@
|
|||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"generator-aspnet-spa"
|
"generator-aspnetcore-spa"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user