@@ -9,7 +9,7 @@ import * as childProcess from 'child_process'
99import * as targz from 'tar.gz' ;
1010
1111const isWindows = / ^ w i n / . test ( process . platform ) ;
12- const textFileExtensions = [ '.gitignore' , 'template_gitignore' , ' .config', '.cs' , '.cshtml' , '.csproj' , '.html' , '.js' , '.json' , '.jsx' , '.md' , '.nuspec' , '.ts' , '.tsx' ] ;
12+ const textFileExtensions = [ '.gitignore' , '.config' , '.cs' , '.cshtml' , '.csproj' , '.html' , '.js' , '.json' , '.jsx' , '.md' , '.nuspec' , '.ts' , '.tsx' ] ;
1313
1414const dotNetPackages = [
1515'Microsoft.DotNet.Web.Spa.ProjectTemplates' ,
@@ -28,10 +28,7 @@ function writeFileEnsuringDirExists(root: string, filename: string, contents: st
2828}
2929
3030function listFilesExcludingGitignored ( root : string ) : string [ ] {
31- // Note that the gitignore files, prior to be written by the generator, are called 'template_gitignore'
32- // instead of '.gitignore'. This is a workaround for Yeoman doing strange stuff with .gitignore files
33- // (it renames them to .npmignore, which is not helpful).
34- let gitIgnorePath = path . join ( root , 'template_gitignore' ) ;
31+ let gitIgnorePath = path . join ( root , '.gitignore' ) ;
3532let gitignoreEvaluator = fs . existsSync ( gitIgnorePath )
3633 ? gitignore . compile ( fs . readFileSync ( gitIgnorePath , 'utf8' ) )
3734 : { accepts : ( ) => true } ;
@@ -99,8 +96,7 @@ function buildDotNetNewNuGetPackage(packageId: string){
9996const sourceProjectName = 'WebApplicationBasic' ;
10097const projectGuid = '00000000-0000-0000-0000-000000000000' ;
10198const filenameReplacements = [
102- { from : / .* \. c s p r o j $ / , to : `${ sourceProjectName } .csproj` } ,
103- { from : / \b t e m p l a t e _ g i t i g n o r e $ / , to : '.gitignore' }
99+ { from : / .* \. c s p r o j $ / , to : `${ sourceProjectName } .csproj` }
104100] ;
105101const contentReplacements = [ ] ;
106102
0 commit comments