Skip to content

Commit 08b043e

Browse files
authored
Merge pull request #644 from contentstack/feature/workflow
final test with workflow
2 parents 1af9c39 + 36cc033 commit 08b043e

File tree

4 files changed

+2
-39
lines changed

4 files changed

+2
-39
lines changed

.github/workflows/repo-sync.yml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -140,49 +140,11 @@ jobs:
140140
npm install eslint -g
141141
eslint . --fix --ignore-pattern "cli/**"
142142
143-
# echo "Running autoflake to remove unused imports..."
144-
# pip install autoflake
145-
# autoflake --remove-all-unused-imports --recursive --in-place .
146-
147-
# echo "Running ts-prune to remove unused file references..."
148-
# npm install -g ts-prune
149-
# ts-prune | awk '{print $1}' | xargs rm -f
150-
151143
rsync -av --delete ${{ env.RSYNC_SITECORE_API_SRC_SERVICES_EXCLUDES }} ../api/ ./api/
152144
rsync -av --delete ../ui/ ./ui/
153145
rsync -av --delete ${{ env.RSYNC_SITECORE_UPLOAD_API_SRC_EXCLUDES }} ../upload-api/src/ ./upload-api/src/
154146
rsync -av --delete ../upload-api/migration-sitecore/ ./upload-api/migration-sitecore/
155147
156-
# Ensure tsconfig.json exists, create a default one if missing
157-
# if [ ! -f "tsconfig.json" ]; then
158-
# echo "Creating default tsconfig.json..."
159-
# cat <<EOL > tsconfig.json
160-
# {
161-
# "compilerOptions": {
162-
# "target": "ES6",
163-
# "module": "CommonJS",
164-
# "strict": true,
165-
# "esModuleInterop": true,
166-
# "skipLibCheck": true,
167-
# "forceConsistentCasingInFileNames": true
168-
# },
169-
# "include": ["src/**/*"],
170-
# "exclude": ["node_modules", "dist"]
171-
# }
172-
# EOL
173-
# fi
174-
175-
# Remove unused imports
176-
# npx ts-remove-unused-imports api/
177-
# npx ts-remove-unused-imports ui/
178-
# npx ts-remove-unused-imports upload-api/
179-
180-
# Remove missing imports
181-
# npx ts-prune | grep -E '^(api/|ui/|upload-api/)/' | awk '{print $1}' | xargs -I {} sed -i '/import/d' {}
182-
183-
# # Format code
184-
# npx prettier --write .
185-
186148
# eslint api/ ui/ upload-api/ --rule 'import/no-unresolved: error' --format compact | awk -F ':' '{print $1}' | sort -u | xargs -I {} sed -i '/import/d' {}
187149
node remove-broken-imports.js
188150

api/src/services/contentful.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import jsonRTE from "./contentful/jsonRTE.js";
1414
import { getAllLocales, getLogMessage } from "../utils/index.js";
1515
import customLogger from "../utils/custom-logger.utils.js";
1616

17+
1718
const {
1819
DATA,
1920
// DIR

api/src/services/sitecore.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { getLogMessage } from '../utils/index.js';
1313
import customLogger from '../utils/custom-logger.utils.js';
1414
import { getSafePath } from '../utils/sanitize-path.utils.js';
1515

16+
1617
const append = 'a';
1718
const baseDirName = MIGRATION_DATA_CONFIG.DATA;
1819
const {

api/src/services/wordpress.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { getLogMessage } from "../utils/index.js";
1010
import { v4 as uuidv4 } from "uuid";
1111
import { orgService } from "./org.service.js";
1212

13-
1413
const { JSDOM } = jsdom;
1514
const virtualConsole = new jsdom.VirtualConsole();
1615
// Get the current file's path

0 commit comments

Comments
 (0)