Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ packages/amplify-opensearch-simulator/emulator
packages/graphql*/lib
packages/amplify-graphql-transformer-*/lib
packages/amplify-cli/lib
packages/amplify-cli/src/commands/gen2-migration/amplify-gen2-migration-codegen-dg/lib
packages/amplify-cli-npm/lib
packages/amplify-cli-core/lib
packages/amplify-cli-core-vNext/lib
Expand Down
11 changes: 9 additions & 2 deletions packages/amplify-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"access": "public"
},
"scripts": {
"build": "tsc",
"test": "jest --logHeapUsage",
"build": "tsc -p tsconfig.json && tsc -p ./src/commands/gen2-migration/amplify-gen2-migration-codegen-dg/tsconfig.json",
"test": "jest --logHeapUsage && jest --config src/commands/gen2-migration/amplify-gen2-migration-codegen-dg/jest.config.js",
"postinstall": "node scripts/post-install.js",
"watch": "tsc -w",
"clean": "rimraf ./lib tsconfig.tsbuildinfo",
Expand Down Expand Up @@ -107,6 +107,9 @@
},
"devDependencies": {
"@aws-amplify/amplify-function-plugin-interface": "1.12.1",
"@aws-sdk/client-cognito-identity-provider": "^3.624.0",
"@aws-sdk/client-lambda": "^3.624.0",
"@aws-sdk/client-s3": "^3.624.0",
"@types/archiver": "^5.3.1",
"@types/columnify": "^1.5.1",
"@types/folder-hash": "^4.0.1",
Expand Down Expand Up @@ -139,6 +142,10 @@
"/node_modules/",
"/templates/"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/src/commands/gen2-migration/amplify-gen2-migration-codegen-dg/"
],
"moduleFileExtensions": [
"ts",
"tsx",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['<rootDir>/src/**/*.test.ts'],
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: {
strict: false,
skipLibCheck: true,
moduleResolution: 'node',
esModuleInterop: true,
allowSyntheticDefaultImports: true,
},
},
],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
collectCoverage: false,
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Auth adapter - converts Gen 1 auth config to intermediate format
// Logic from amplify-gen1-codegen-auth-adapter
export const adaptAuthConfig = async (gen1AuthConfig: any) => {
// Convert Gen 1 auth configuration to intermediate format
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Data adapter - converts Gen 1 GraphQL/DynamoDB config to intermediate format
// Logic from amplify-gen1-codegen-data-adapter
export const adaptDataConfig = async (gen1DataConfig: any) => {
// Convert Gen 1 data configuration to intermediate format
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Functions adapter - converts Gen 1 Lambda functions to intermediate format
// Logic from amplify-gen1-codegen-function-adapter
export const adaptFunctionsConfig = async (gen1FunctionsConfig: any[]) => {
// Convert Gen 1 functions configuration to intermediate format
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Project adapter - handles Gen 1 project detection and parsing
// Logic from amplify-migration
export const detectGen1Project = async (projectPath: string) => {
// Detect if project is Gen 1
// Parse amplify directory structure
// Extract project metadata
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Storage adapter - converts Gen 1 S3 storage config to intermediate format
// Logic from amplify-gen1-codegen-storage-adapter
export const adaptStorageConfig = async (gen1StorageConfig: any) => {
// Convert Gen 1 storage configuration to intermediate format
};
Loading
Loading