@@ -119,9 +119,12 @@ export default class extends Generator {
119119 ignoreNoMatch : true
120120 }
121121 ) ;
122+ this . fs . copy (
123+ this . templatePath ( `${ this . options . templateChoice } /.gitignore.template` ) ,
124+ this . destinationPath ( '.gitignore' ) ,
125+ ) ;
122126 /**
123127 * The ORDS Concert App template provides:
124- * A .gitignore file
125128 * A markdown lint configuration file (.markdownlint.json)
126129 * A .env.example file
127130 * Additionally, the sample app expects that the user configures their development
@@ -131,10 +134,6 @@ export default class extends Generator {
131134 * app contains their own mechanisms to talk with the db.
132135 */
133136 if ( this . options . templateChoice . includes ( 'ords-remix-jwt-sample' ) ) {
134- this . fs . copy (
135- this . templatePath ( `${ this . options . templateChoice } /.gitignore` ) ,
136- this . destinationPath ( '.gitignore' ) ,
137- ) ;
138137 this . fs . copy (
139138 this . templatePath ( `${ this . options . templateChoice } /.markdownlint.jsonc` ) ,
140139 this . destinationPath ( '.markdownlint.jsonc' ) ,
@@ -144,11 +143,6 @@ export default class extends Generator {
144143 this . destinationPath ( '.env.example' ) ,
145144 ) ;
146145 } else {
147- this . fs . copy (
148- this . templatePath ( `${ this . options . templateChoice } /.gitignore.template` ) ,
149- this . destinationPath ( '.gitignore' ) ,
150- ) ;
151-
152146 this . fs . copyTpl (
153147 this . templatePath ( `${ path . dirname ( this . options . templateChoice ) } /app/${ path . basename ( this . options . templateChoice ) == 'node-jet' ? 'index-proxied' : 'index' } .cjs` ) ,
154148 this . destinationPath ( 'server/index.cjs' ) ,
0 commit comments