Skip to content

Commit e187724

Browse files
committed
Refactor migration services and enhance Drupal integration
- Updated .gitignore to include new file types and directories. - Removed package-lock.json from the repository. - Added MySQL2 dependency to package.json for database interactions. - Introduced new ESLint configuration for the API. - Created nodemon.json for development environment settings. - Refactored various service files to improve error handling and logging. - Implemented new Drupal services for content extraction and mapping. - Enhanced existing services with better type handling and validation. - Updated UI components for improved user experience and functionality. - Added batch processing utilities for efficient data handling. - Improved overall code structure and documentation for better maintainability.
2 parents 2d37d02 + e3b3027 commit e187724

File tree

85 files changed

+12720
-5709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+12720
-5709
lines changed

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,4 +366,13 @@ app.json
366366
*extracted_files*
367367
*MigrationData*
368368
*.zip
369-
app.json
369+
*extracted_files*
370+
*.tsbuildinfo
371+
*drupalMigrationData*
372+
# Snyk Security Extension - AI Rules (auto-generated)
373+
.cursor/rules/snyk_rules.mdc
374+
/aem_data_structure
375+
376+
*.csv
377+
contentful.json
378+
test-*

api/.eslintrc.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
const path = require('path');
2+
3+
module.exports = {
4+
root: true,
5+
env: {
6+
browser: true,
7+
es2021: true,
8+
},
9+
extends: [
10+
'prettier',
11+
'eslint:recommended',
12+
'plugin:@typescript-eslint/recommended',
13+
],
14+
parser: '@typescript-eslint/parser',
15+
parserOptions: {
16+
ecmaVersion: 2022,
17+
project: [path.resolve(__dirname, 'tsconfig.json')],
18+
sourceType: 'module',
19+
},
20+
plugins: ['@typescript-eslint'],
21+
rules: {
22+
'operator-linebreak': [
23+
'error',
24+
'after',
25+
{
26+
overrides: {
27+
':': 'before',
28+
},
29+
},
30+
],
31+
'func-names': [0],
32+
'no-console': ['error', { allow: ['warn', 'error', 'info'] }],
33+
'@typescript-eslint/no-explicit-any': 'warn',
34+
},
35+
};
36+

api/.eslintrc.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

api/nodemon.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"watch": ["src"],
3+
"ext": "ts,js,json",
4+
"ignore": [
5+
"database/**/*",
6+
"logs/**/*",
7+
"*.log",
8+
"node_modules/**/*",
9+
"dist/**/*",
10+
"build/**/*",
11+
"cmsMigrationData/**/*",
12+
"test_output.log",
13+
"combine.log",
14+
"sample.log",
15+
"upload-api/**/*",
16+
"ui/**/*"
17+
],
18+
"exec": "tsx ./src/server.ts",
19+
"env": {
20+
"NODE_ENV": "production"
21+
},
22+
"delay": "1000",
23+
"verbose": true
24+
}

0 commit comments

Comments
 (0)