@@ -119,9 +119,12 @@ export default class extends Generator {
119
119
ignoreNoMatch : true
120
120
}
121
121
) ;
122
+ this . fs . copy (
123
+ this . templatePath ( `${ this . options . templateChoice } /.gitignore.template` ) ,
124
+ this . destinationPath ( '.gitignore' ) ,
125
+ ) ;
122
126
/**
123
127
* The ORDS Concert App template provides:
124
- * A .gitignore file
125
128
* A markdown lint configuration file (.markdownlint.json)
126
129
* A .env.example file
127
130
* Additionally, the sample app expects that the user configures their development
@@ -131,10 +134,6 @@ export default class extends Generator {
131
134
* app contains their own mechanisms to talk with the db.
132
135
*/
133
136
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
- ) ;
138
137
this . fs . copy (
139
138
this . templatePath ( `${ this . options . templateChoice } /.markdownlint.jsonc` ) ,
140
139
this . destinationPath ( '.markdownlint.jsonc' ) ,
@@ -144,11 +143,6 @@ export default class extends Generator {
144
143
this . destinationPath ( '.env.example' ) ,
145
144
) ;
146
145
} else {
147
- this . fs . copy (
148
- this . templatePath ( `${ this . options . templateChoice } /.gitignore.template` ) ,
149
- this . destinationPath ( '.gitignore' ) ,
150
- ) ;
151
-
152
146
this . fs . copyTpl (
153
147
this . templatePath ( `${ path . dirname ( this . options . templateChoice ) } /app/${ path . basename ( this . options . templateChoice ) == 'node-jet' ? 'index-proxied' : 'index' } .cjs` ) ,
154
148
this . destinationPath ( 'server/index.cjs' ) ,
0 commit comments