-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: split cv files into txt files for easier management
- Loading branch information
dbil
committed
Jan 6, 2025
1 parent
bd70dd5
commit 0bf08a7
Showing
8 changed files
with
129 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import * as fs from 'fs'; | ||
import * as path from 'path'; | ||
|
||
// Get the project root directory (backend folder) | ||
const rootDir = path.resolve(__dirname, '../..'); | ||
console.log('Root directory:', rootDir); | ||
|
||
// Define source and target directories | ||
const sourceDir = path.join(rootDir, 'cv-chatbot-backend', 'cv-files'); | ||
const targetDir = path.join(rootDir, 'dist', 'cv-chatbot-backend', 'cv-files'); | ||
|
||
try { | ||
console.log('Source directory:', sourceDir); | ||
console.log('Target directory:', targetDir); | ||
|
||
// Create target directory if it doesn't exist | ||
if (!fs.existsSync(targetDir)) { | ||
fs.mkdirSync(targetDir, { recursive: true }); | ||
} | ||
|
||
// Check if source directory exists | ||
if (!fs.existsSync(sourceDir)) { | ||
console.error(`Source directory not found: ${sourceDir}`); | ||
console.error('Current directory:', __dirname); | ||
process.exit(1); | ||
} | ||
|
||
// Copy all .txt files | ||
const files = fs.readdirSync(sourceDir); | ||
files.forEach(file => { | ||
if (file.endsWith('.txt')) { | ||
const sourcePath = path.join(sourceDir, file); | ||
const targetPath = path.join(targetDir, file); | ||
fs.copyFileSync(sourcePath, targetPath); | ||
console.log(`Copied: ${file}`); | ||
} | ||
}); | ||
|
||
console.log('CV files copied successfully!'); | ||
} catch (error) { | ||
console.error('Error copying files:', error); | ||
console.error('Current directory:', __dirname); | ||
process.exit(1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Software Engineer at Company X (2020-Present) | ||
- Led development of microservices architecture | ||
- Implemented CI/CD pipelines | ||
- Mentored junior developers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Programming Languages: | ||
- TypeScript/JavaScript | ||
- Python | ||
- Java | ||
|
||
Technologies: | ||
- Azure Cloud Services | ||
- Docker | ||
- Kubernetes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,8 @@ | |
"sourceMap": true, | ||
"strict": true, | ||
"esModuleInterop": true | ||
} | ||
}, | ||
"include": [ | ||
"cv-chatbot-backend/**/*" | ||
] | ||
} |