diff --git a/templates/yeoman/.gitignore b/templates/yeoman/.gitignore index 2b5ec07..33254eb 100644 --- a/templates/yeoman/.gitignore +++ b/templates/yeoman/.gitignore @@ -1,3 +1,3 @@ /node_modules/ /built/ -/generator-aspnet-spa/ +/generator-aspnetcore-spa/ diff --git a/templates/yeoman/README.md b/templates/yeoman/README.md index 9a05998..74d42ab 100644 --- a/templates/yeoman/README.md +++ b/templates/yeoman/README.md @@ -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. diff --git a/templates/yeoman/package.json b/templates/yeoman/package.json index 72b1df4..e97d33f 100644 --- a/templates/yeoman/package.json +++ b/templates/yeoman/package.json @@ -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", diff --git a/templates/yeoman/src/build/build.ts b/templates/yeoman/src/build/build.ts index af05496..91cf323 100644 --- a/templates/yeoman/src/build/build.ts +++ b/templates/yeoman/src/build/build.ts @@ -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); diff --git a/templates/yeoman/src/generator/app/index.ts b/templates/yeoman/src/generator/app/index.ts index 93f13c9..7a7e95c 100644 --- a/templates/yeoman/src/generator/app/index.ts +++ b/templates/yeoman/src/generator/app/index.ts @@ -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'); } }); diff --git a/templates/yeoman/src/generator/package.json b/templates/yeoman/src/generator/package.json index be33790..1cf5861 100644 --- a/templates/yeoman/src/generator/package.json +++ b/templates/yeoman/src/generator/package.json @@ -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", diff --git a/templates/yeoman/tsconfig.json b/templates/yeoman/tsconfig.json index 6cc3875..107dfae 100644 --- a/templates/yeoman/tsconfig.json +++ b/templates/yeoman/tsconfig.json @@ -7,6 +7,6 @@ }, "exclude": [ "node_modules", - "generator-aspnet-spa" + "generator-aspnetcore-spa" ] }