Rename folders since the template package generator now creates a package for "dotnet new" as well as Yeoman
This commit is contained in:
parent
1019026943
commit
d928ef4f12
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "generator-aspnetcore-spa-generator",
|
||||
"version": "1.0.0",
|
||||
"description": "Creates the Yeoman generator for ASP.NET Core SPA templates",
|
||||
"description": "Creates the Yeoman generator and 'dotnet new' package for ASP.NET Core SPA templates",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
|
|
@ -9,7 +9,7 @@ import * as childProcess from 'child_process';
|
|||
|
||||
const isWindows = /^win/.test(process.platform);
|
||||
const textFileExtensions = ['.gitignore', 'template_gitignore', '.config', '.cs', '.cshtml', 'Dockerfile', '.html', '.js', '.json', '.jsx', '.md', '.nuspec', '.ts', '.tsx', '.xproj'];
|
||||
const yeomanGeneratorSource = './src/generator';
|
||||
const yeomanGeneratorSource = './src/yeoman';
|
||||
|
||||
const templates: { [key: string]: { dir: string, dotNetNewId: string, displayName: string } } = {
|
||||
'angular-2': { dir: '../../templates/Angular2Spa/', dotNetNewId: 'Angular', displayName: 'Angular 2' },
|
||||
|
|
@ -94,7 +94,7 @@ function buildYeomanNpmPackage() {
|
|||
|
||||
// Also copy the generator files (that's the compiled .js files, plus all other non-.ts files)
|
||||
const tempRoot = './tmp';
|
||||
copyRecursive(path.join(tempRoot, 'generator'), outputRoot, '**/*.js');
|
||||
copyRecursive(path.join(tempRoot, 'yeoman'), outputRoot, '**/*.js');
|
||||
copyRecursive(yeomanGeneratorSource, outputRoot, '**/!(*.ts)');
|
||||
|
||||
// Clean up
|
||||
Loading…
Reference in New Issue