Skip to content

Commit 30dfe81

Browse files
Merge pull request #116 from oracle/gitignore-ords-jwt-template
Fix for missing gitignore file on ords jwt template
2 parents 48e7b5a + 3bfa744 commit 30dfe81

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

generators/index.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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' ),

templates/ords-remix-jwt-sample/app/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ORDS Concert App - Project Configuration
22

3-
![ORDS Logo](../../images/ORDS.png)
3+
![ORDS Logo](../images/ORDS.png)
44

55
## Table of Contents
66

0 commit comments

Comments
 (0)