Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ env:
SITECORE_REPO: contentstack-expert-services/migration-tool-sitecore # Change this to your sitecore repo
CONTENTFUL_REPO: contentstack-expert-services/migration-tool-contentful # Change this to your contentful repo
WORDPRESS_REPO: contentstack-expert-services/migration-tool-wordpress # Change this to your wordpress repo
RSYNC_SITECORE_API_SRC_SERVICES_EXCLUDES: "--exclude 'src/services/contentful/' --exclude 'src/services/contentful.service.ts/' --exclude 'src/services/wordpress.service.ts/'" # Include only sitecore services
RSYNC_CONTENTFUL_API_SRC_SERVICES_EXCLUDES: "--exclude 'src/services/wordpress.service.ts/' --exclude 'src/services/sitecore.service.ts/'" # Include only contentful services
RSYNC_WORDPRESS_API_SRC_SERVICES_EXCLUDES: "--exclude 'src/services/contentful/' --exclude 'src/services/contentful.service.ts/' --exclude 'src/services/sitecore.service.ts/'" # Include only wordpress services
RSYNC_SITECORE_UPLOAD_API_SRC_EXCLUDES: "--exclude 'migration-contentful/' --exclude 'migration-wordpress/' --exclude 'controllers/wordpress/' --exclude 'models/contentful.json' --exclude 'models/wordpress.json' --exclude 'services/contentful' --exclude 'validators/aem' --exclude 'validators/contentful' --exclude 'validators/wordpress'" # Include only sitecore upload-api
RSYNC_CONTENTFUL_UPLOAD_API_SRC_EXCLUDES: "--exclude 'migration-sitecore/' --exclude 'migration-wordpress/' --exclude 'controllers/sitecore/' --exclude 'models/wordpress.json' --exclude 'validators/aem' --exclude 'validators/sitecore' --exclude 'validators/wordpress'" # Include only contentful upload-api
RSYNC_WORDPRESS_UPLOAD_API_SRC_EXCLUDES: "--exclude 'migration-sitecore/' --exclude 'migration-contentful/' --exclude 'controllers/sitecore/' --exclude 'models/contentful.json' --exclude 'validators/aem' --exclude 'validators/sitecore' --exclude 'validators/contentful'" # Include only wordpress upload-api
RSYNC_SITECORE_API_SRC_SERVICES_EXCLUDES: "--exclude 'src/services/contentful/' --exclude 'src/services/contentful.service.ts' --exclude 'src/services/wordpress.service.ts'" # Include only sitecore services
RSYNC_CONTENTFUL_API_SRC_SERVICES_EXCLUDES: "--exclude 'src/services/wordpress.service.ts' --exclude 'src/services/sitecore.service.ts'" # Include only contentful services
RSYNC_WORDPRESS_API_SRC_SERVICES_EXCLUDES: "--exclude 'src/services/contentful/' --exclude 'src/services/contentful.service.ts' --exclude 'src/services/sitecore.service.ts'" # Include only wordpress services
RSYNC_SITECORE_UPLOAD_API_SRC_EXCLUDES: "--exclude 'migration-contentful/' --exclude 'migration-wordpress/' --exclude 'controllers/wordpress/' --exclude 'models/contentful.json' --exclude 'models/wordpress.json' --exclude 'services/contentful/' --exclude 'validators/aem/' --exclude 'validators/contentful/' --exclude 'validators/wordpress/'" # Include only sitecore upload-api
RSYNC_CONTENTFUL_UPLOAD_API_SRC_EXCLUDES: "--exclude 'migration-sitecore/' --exclude 'migration-wordpress/' --exclude 'controllers/sitecore/' --exclude 'models/wordpress.json' --exclude 'validators/aem/' --exclude 'validators/sitecore/' --exclude 'validators/wordpress/'" # Include only contentful upload-api
RSYNC_WORDPRESS_UPLOAD_API_SRC_EXCLUDES: "--exclude 'migration-sitecore/' --exclude 'migration-contentful/' --exclude 'controllers/sitecore/' --exclude 'models/contentful.json' --exclude 'validators/aem/' --exclude 'validators/sitecore/' --exclude 'validators/contentful/'" # Include only wordpress upload-api
jobs:
sync-on-merge:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions api/src/services/contentful.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ const processField = (
}
}



};

Expand Down
1 change: 1 addition & 0 deletions api/src/services/contentful/jsonRTE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ function parseBlockAsset(obj: any, lang?: LangType, destination_stack_id?: Stack




function parseBlockquote(obj: any): any {
const children = obj.content.map((e: any) => parsers.get(e.nodeType)?.(e)).filter(Boolean);
return {
Expand Down
1 change: 0 additions & 1 deletion api/src/services/sitecore.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import customLogger from '../utils/custom-logger.utils.js';
const append = "a";



const baseDirName = MIGRATION_DATA_CONFIG.DATA
const {
ENTRIES_DIR_NAME,
Expand Down
1 change: 1 addition & 0 deletions api/src/services/wordpress.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const virtualConsole = new jsdom.VirtualConsole();
const __filename = fileURLToPath(import.meta.url);



// Get the current directory
const __dirname = path.dirname(__filename);

Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const envContents = {
};



// Function to create env files
const createEnvFiles = () => {
// Loop through each key in the envFilePaths object
Expand Down
1 change: 1 addition & 0 deletions upload-api/migration-contentful/config/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
},
"fileName": "en-us.json"



}
1 change: 1 addition & 0 deletions upload-api/migration-sitecore/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const MIGRATION_DATA_CONFIG = {
EXPORT_INFO_FILE: "export-info.json"
}



module.exports = {
MIGRATION_DATA_CONFIG
Expand Down
1 change: 1 addition & 0 deletions upload-api/migration-wordpress/config/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"fileName": "en-us.json",
"masterfile": "posts.json"



}
}
Expand Down
1 change: 1 addition & 0 deletions upload-api/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default {
},




localPath: '/home/gaurishn/Documents/contentstack/sitetitle.xml' //package 45.zip'
// localPath: '/Users/umesh.more/Documents/ui-migration/migration-v2-node-server/upload-api/extracted_files/package 45.zip'
Expand Down