@aws-amplify/cli-internal-gen2-migration-experimental-alpha 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API.md +108 -0
- package/CHANGELOG.md +4959 -0
- package/amplify-plugin.json +35 -0
- package/aws-amplify-cli-internal-gen2-migration-experimental-alpha-0.1.0.tgz +0 -0
- package/bin/amplify +11 -0
- package/bin/amplify.production.template +12 -0
- package/lib/amplify-exception-handler.d.ts +6 -0
- package/lib/amplify-exception-handler.d.ts.map +1 -0
- package/lib/amplify-exception-handler.js +158 -0
- package/lib/amplify-exception-handler.js.map +1 -0
- package/lib/amplify-service-helper.d.ts +4 -0
- package/lib/amplify-service-helper.d.ts.map +1 -0
- package/lib/amplify-service-helper.js +78 -0
- package/lib/amplify-service-helper.js.map +1 -0
- package/lib/app-config/config.d.ts +18 -0
- package/lib/app-config/config.d.ts.map +1 -0
- package/lib/app-config/config.js +89 -0
- package/lib/app-config/config.js.map +1 -0
- package/lib/app-config/debug-config.d.ts +14 -0
- package/lib/app-config/debug-config.d.ts.map +1 -0
- package/lib/app-config/debug-config.js +70 -0
- package/lib/app-config/debug-config.js.map +1 -0
- package/lib/app-config/getPath.d.ts +3 -0
- package/lib/app-config/getPath.d.ts.map +1 -0
- package/lib/app-config/getPath.js +47 -0
- package/lib/app-config/getPath.js.map +1 -0
- package/lib/app-config/index.d.ts +2 -0
- package/lib/app-config/index.d.ts.map +1 -0
- package/lib/app-config/index.js +18 -0
- package/lib/app-config/index.js.map +1 -0
- package/lib/attach-backend-steps/a10-queryProvider.d.ts +2 -0
- package/lib/attach-backend-steps/a10-queryProvider.d.ts.map +1 -0
- package/lib/attach-backend-steps/a10-queryProvider.js +99 -0
- package/lib/attach-backend-steps/a10-queryProvider.js.map +1 -0
- package/lib/attach-backend-steps/a20-analyzeProject.d.ts +3 -0
- package/lib/attach-backend-steps/a20-analyzeProject.d.ts.map +1 -0
- package/lib/attach-backend-steps/a20-analyzeProject.js +38 -0
- package/lib/attach-backend-steps/a20-analyzeProject.js.map +1 -0
- package/lib/attach-backend-steps/a30-initFrontend.d.ts +2 -0
- package/lib/attach-backend-steps/a30-initFrontend.d.ts.map +1 -0
- package/lib/attach-backend-steps/a30-initFrontend.js +83 -0
- package/lib/attach-backend-steps/a30-initFrontend.js.map +1 -0
- package/lib/attach-backend-steps/a40-generateFiles.d.ts +3 -0
- package/lib/attach-backend-steps/a40-generateFiles.d.ts.map +1 -0
- package/lib/attach-backend-steps/a40-generateFiles.js +129 -0
- package/lib/attach-backend-steps/a40-generateFiles.js.map +1 -0
- package/lib/attach-backend.d.ts +3 -0
- package/lib/attach-backend.d.ts.map +1 -0
- package/lib/attach-backend.js +230 -0
- package/lib/attach-backend.js.map +1 -0
- package/lib/commands/amplify.d.ts +2 -0
- package/lib/commands/amplify.d.ts.map +1 -0
- package/lib/commands/amplify.js +9 -0
- package/lib/commands/amplify.js.map +1 -0
- package/lib/commands/build.d.ts +8 -0
- package/lib/commands/build.d.ts.map +1 -0
- package/lib/commands/build.js +74 -0
- package/lib/commands/build.js.map +1 -0
- package/lib/commands/categories.d.ts +2 -0
- package/lib/commands/categories.d.ts.map +1 -0
- package/lib/commands/categories.js +8 -0
- package/lib/commands/categories.js.map +1 -0
- package/lib/commands/configure.d.ts +3 -0
- package/lib/commands/configure.d.ts.map +1 -0
- package/lib/commands/configure.js +105 -0
- package/lib/commands/configure.js.map +1 -0
- package/lib/commands/console.d.ts +3 -0
- package/lib/commands/console.d.ts.map +1 -0
- package/lib/commands/console.js +78 -0
- package/lib/commands/console.js.map +1 -0
- package/lib/commands/delete.d.ts +3 -0
- package/lib/commands/delete.d.ts.map +1 -0
- package/lib/commands/delete.js +16 -0
- package/lib/commands/delete.js.map +1 -0
- package/lib/commands/diagnose.d.ts +4 -0
- package/lib/commands/diagnose.d.ts.map +1 -0
- package/lib/commands/diagnose.js +236 -0
- package/lib/commands/diagnose.js.map +1 -0
- package/lib/commands/drift-detection/detect-local-drift.d.ts +22 -0
- package/lib/commands/drift-detection/detect-local-drift.d.ts.map +1 -0
- package/lib/commands/drift-detection/detect-local-drift.js +47 -0
- package/lib/commands/drift-detection/detect-local-drift.js.map +1 -0
- package/lib/commands/drift-detection/detect-stack-drift.d.ts +11 -0
- package/lib/commands/drift-detection/detect-stack-drift.d.ts.map +1 -0
- package/lib/commands/drift-detection/detect-stack-drift.js +230 -0
- package/lib/commands/drift-detection/detect-stack-drift.js.map +1 -0
- package/lib/commands/drift-detection/detect-template-drift.d.ts +27 -0
- package/lib/commands/drift-detection/detect-template-drift.d.ts.map +1 -0
- package/lib/commands/drift-detection/detect-template-drift.js +252 -0
- package/lib/commands/drift-detection/detect-template-drift.js.map +1 -0
- package/lib/commands/drift-detection/index.d.ts +4 -0
- package/lib/commands/drift-detection/index.d.ts.map +1 -0
- package/lib/commands/drift-detection/index.js +11 -0
- package/lib/commands/drift-detection/index.js.map +1 -0
- package/lib/commands/drift-detection/services/amplify-config-service.d.ts +7 -0
- package/lib/commands/drift-detection/services/amplify-config-service.d.ts.map +1 -0
- package/lib/commands/drift-detection/services/amplify-config-service.js +49 -0
- package/lib/commands/drift-detection/services/amplify-config-service.js.map +1 -0
- package/lib/commands/drift-detection/services/cloudformation-service.d.ts +13 -0
- package/lib/commands/drift-detection/services/cloudformation-service.d.ts.map +1 -0
- package/lib/commands/drift-detection/services/cloudformation-service.js +120 -0
- package/lib/commands/drift-detection/services/cloudformation-service.js.map +1 -0
- package/lib/commands/drift-detection/services/drift-formatter.d.ts +73 -0
- package/lib/commands/drift-detection/services/drift-formatter.d.ts.map +1 -0
- package/lib/commands/drift-detection/services/drift-formatter.js +651 -0
- package/lib/commands/drift-detection/services/drift-formatter.js.map +1 -0
- package/lib/commands/drift-detection/services/file-service.d.ts +7 -0
- package/lib/commands/drift-detection/services/file-service.d.ts.map +1 -0
- package/lib/commands/drift-detection/services/file-service.js +53 -0
- package/lib/commands/drift-detection/services/file-service.js.map +1 -0
- package/lib/commands/drift-detection/services/index.d.ts +5 -0
- package/lib/commands/drift-detection/services/index.d.ts.map +1 -0
- package/lib/commands/drift-detection/services/index.js +12 -0
- package/lib/commands/drift-detection/services/index.js.map +1 -0
- package/lib/commands/drift.d.ts +29 -0
- package/lib/commands/drift.d.ts.map +1 -0
- package/lib/commands/drift.js +228 -0
- package/lib/commands/drift.js.map +1 -0
- package/lib/commands/env/add.d.ts +3 -0
- package/lib/commands/env/add.d.ts.map +1 -0
- package/lib/commands/env/add.js +21 -0
- package/lib/commands/env/add.js.map +1 -0
- package/lib/commands/env/checkout.d.ts +3 -0
- package/lib/commands/env/checkout.d.ts.map +1 -0
- package/lib/commands/env/checkout.js +51 -0
- package/lib/commands/env/checkout.js.map +1 -0
- package/lib/commands/env/get.d.ts +3 -0
- package/lib/commands/env/get.d.ts.map +1 -0
- package/lib/commands/env/get.js +32 -0
- package/lib/commands/env/get.js.map +1 -0
- package/lib/commands/env/import.d.ts +3 -0
- package/lib/commands/env/import.d.ts.map +1 -0
- package/lib/commands/env/import.js +87 -0
- package/lib/commands/env/import.js.map +1 -0
- package/lib/commands/env/list.d.ts +2 -0
- package/lib/commands/env/list.d.ts.map +1 -0
- package/lib/commands/env/list.js +49 -0
- package/lib/commands/env/list.js.map +1 -0
- package/lib/commands/env/pull.d.ts +2 -0
- package/lib/commands/env/pull.d.ts.map +1 -0
- package/lib/commands/env/pull.js +12 -0
- package/lib/commands/env/pull.js.map +1 -0
- package/lib/commands/env/remove.d.ts +3 -0
- package/lib/commands/env/remove.d.ts.map +1 -0
- package/lib/commands/env/remove.js +63 -0
- package/lib/commands/env/remove.js.map +1 -0
- package/lib/commands/env/update.d.ts +3 -0
- package/lib/commands/env/update.d.ts.map +1 -0
- package/lib/commands/env/update.js +9 -0
- package/lib/commands/env/update.js.map +1 -0
- package/lib/commands/env.d.ts +2 -0
- package/lib/commands/env.d.ts.map +1 -0
- package/lib/commands/env.js +129 -0
- package/lib/commands/env.js.map +1 -0
- package/lib/commands/export.d.ts +3 -0
- package/lib/commands/export.d.ts.map +1 -0
- package/lib/commands/export.js +141 -0
- package/lib/commands/export.js.map +1 -0
- package/lib/commands/gen2-migration/_step.d.ts +16 -0
- package/lib/commands/gen2-migration/_step.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_step.js +15 -0
- package/lib/commands/gen2-migration/_step.js.map +1 -0
- package/lib/commands/gen2-migration/_validations.d.ts +22 -0
- package/lib/commands/gen2-migration/_validations.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_validations.js +227 -0
- package/lib/commands/gen2-migration/_validations.js.map +1 -0
- package/lib/commands/gen2-migration/cleanup.d.ts +8 -0
- package/lib/commands/gen2-migration/cleanup.d.ts.map +1 -0
- package/lib/commands/gen2-migration/cleanup.js +21 -0
- package/lib/commands/gen2-migration/cleanup.js.map +1 -0
- package/lib/commands/gen2-migration/clone.d.ts +8 -0
- package/lib/commands/gen2-migration/clone.d.ts.map +1 -0
- package/lib/commands/gen2-migration/clone.js +21 -0
- package/lib/commands/gen2-migration/clone.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/backend-updater.d.ts +7 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/backend-updater.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/backend-updater.js +84 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/backend-updater.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/dependency-merger.d.ts +8 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/dependency-merger.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/dependency-merger.js +105 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/dependency-merger.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/file-converter.d.ts +5 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/file-converter.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/file-converter.js +88 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/file-converter.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/gen2-file-generator.d.ts +8 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/gen2-file-generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/gen2-file-generator.js +36 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/gen2-file-generator.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/cdk-stack-parser.d.ts +5 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/cdk-stack-parser.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/cdk-stack-parser.js +81 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/cdk-stack-parser.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/pattern-detector.d.ts +15 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/pattern-detector.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/pattern-detector.js +35 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/pattern-detector.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/scanner/custom-resource-scanner.d.ts +5 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/scanner/custom-resource-scanner.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/scanner/custom-resource-scanner.js +66 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/scanner/custom-resource-scanner.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/transformer/amplify-helper-transformer.d.ts +6 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/transformer/amplify-helper-transformer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/transformer/amplify-helper-transformer.js +156 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/transformer/amplify-helper-transformer.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/types.d.ts +38 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/types.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/types.js +3 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/types.js.map +1 -0
- package/lib/commands/gen2-migration/decommission.d.ts +9 -0
- package/lib/commands/gen2-migration/decommission.d.ts.map +1 -0
- package/lib/commands/gen2-migration/decommission.js +70 -0
- package/lib/commands/gen2-migration/decommission.js.map +1 -0
- package/lib/commands/gen2-migration/generate.d.ts +8 -0
- package/lib/commands/gen2-migration/generate.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate.js +23 -0
- package/lib/commands/gen2-migration/generate.js.map +1 -0
- package/lib/commands/gen2-migration/lock.d.ts +10 -0
- package/lib/commands/gen2-migration/lock.d.ts.map +1 -0
- package/lib/commands/gen2-migration/lock.js +92 -0
- package/lib/commands/gen2-migration/lock.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.d.ts +5 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.js +76 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.d.ts +6 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.js +52 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.d.ts +40 -0
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.js +312 -0
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/generators/template-generator.d.ts +49 -0
- package/lib/commands/gen2-migration/refactor/generators/template-generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/generators/template-generator.js +518 -0
- package/lib/commands/gen2-migration/refactor/generators/template-generator.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/index.d.ts +2 -0
- package/lib/commands/gen2-migration/refactor/index.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/index.js +6 -0
- package/lib/commands/gen2-migration/refactor/index.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.d.ts +16 -0
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.js +69 -0
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/refactor.d.ts +19 -0
- package/lib/commands/gen2-migration/refactor/refactor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/refactor.js +223 -0
- package/lib/commands/gen2-migration/refactor/refactor.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.d.ts +13 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.js +137 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.d.ts +8 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.js +27 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.d.ts +14 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.js +137 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.d.ts +10 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.js +49 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/types.d.ts +125 -0
- package/lib/commands/gen2-migration/refactor/types.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/types.js +55 -0
- package/lib/commands/gen2-migration/refactor/types.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/utils.d.ts +2 -0
- package/lib/commands/gen2-migration/refactor/utils.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/utils.js +7 -0
- package/lib/commands/gen2-migration/refactor/utils.js.map +1 -0
- package/lib/commands/gen2-migration/shift.d.ts +8 -0
- package/lib/commands/gen2-migration/shift.d.ts.map +1 -0
- package/lib/commands/gen2-migration/shift.js +21 -0
- package/lib/commands/gen2-migration/shift.js.map +1 -0
- package/lib/commands/gen2-migration/stateful-resources.d.ts +2 -0
- package/lib/commands/gen2-migration/stateful-resources.d.ts.map +1 -0
- package/lib/commands/gen2-migration/stateful-resources.js +34 -0
- package/lib/commands/gen2-migration/stateful-resources.js.map +1 -0
- package/lib/commands/gen2-migration.d.ts +15 -0
- package/lib/commands/gen2-migration.d.ts.map +1 -0
- package/lib/commands/gen2-migration.js +181 -0
- package/lib/commands/gen2-migration.js.map +1 -0
- package/lib/commands/help.d.ts +3 -0
- package/lib/commands/help.d.ts.map +1 -0
- package/lib/commands/help.js +9 -0
- package/lib/commands/help.js.map +1 -0
- package/lib/commands/helpers/collect-files.d.ts +9 -0
- package/lib/commands/helpers/collect-files.d.ts.map +1 -0
- package/lib/commands/helpers/collect-files.js +141 -0
- package/lib/commands/helpers/collect-files.js.map +1 -0
- package/lib/commands/helpers/encryption-helpers.d.ts +7 -0
- package/lib/commands/helpers/encryption-helpers.d.ts.map +1 -0
- package/lib/commands/helpers/encryption-helpers.js +37 -0
- package/lib/commands/helpers/encryption-helpers.js.map +1 -0
- package/lib/commands/helpers/envUtils.d.ts +2 -0
- package/lib/commands/helpers/envUtils.d.ts.map +1 -0
- package/lib/commands/helpers/envUtils.js +21 -0
- package/lib/commands/helpers/envUtils.js.map +1 -0
- package/lib/commands/helpers/projectUtils.d.ts +2 -0
- package/lib/commands/helpers/projectUtils.d.ts.map +1 -0
- package/lib/commands/helpers/projectUtils.js +17 -0
- package/lib/commands/helpers/projectUtils.js.map +1 -0
- package/lib/commands/helpers/reporter-apis.d.ts +3 -0
- package/lib/commands/helpers/reporter-apis.d.ts.map +1 -0
- package/lib/commands/helpers/reporter-apis.js +29 -0
- package/lib/commands/helpers/reporter-apis.js.map +1 -0
- package/lib/commands/init.d.ts +3 -0
- package/lib/commands/init.d.ts.map +1 -0
- package/lib/commands/init.js +53 -0
- package/lib/commands/init.js.map +1 -0
- package/lib/commands/logout.d.ts +3 -0
- package/lib/commands/logout.d.ts.map +1 -0
- package/lib/commands/logout.js +33 -0
- package/lib/commands/logout.js.map +1 -0
- package/lib/commands/migrate.d.ts +2 -0
- package/lib/commands/migrate.d.ts.map +1 -0
- package/lib/commands/migrate.js +9 -0
- package/lib/commands/migrate.js.map +1 -0
- package/lib/commands/plugin/add.d.ts +3 -0
- package/lib/commands/plugin/add.d.ts.map +1 -0
- package/lib/commands/plugin/add.js +239 -0
- package/lib/commands/plugin/add.js.map +1 -0
- package/lib/commands/plugin/configure.d.ts +5 -0
- package/lib/commands/plugin/configure.d.ts.map +1 -0
- package/lib/commands/plugin/configure.js +326 -0
- package/lib/commands/plugin/configure.js.map +1 -0
- package/lib/commands/plugin/help.d.ts +3 -0
- package/lib/commands/plugin/help.d.ts.map +1 -0
- package/lib/commands/plugin/help.js +9 -0
- package/lib/commands/plugin/help.js.map +1 -0
- package/lib/commands/plugin/list.d.ts +3 -0
- package/lib/commands/plugin/list.d.ts.map +1 -0
- package/lib/commands/plugin/list.js +93 -0
- package/lib/commands/plugin/list.js.map +1 -0
- package/lib/commands/plugin/new.d.ts +3 -0
- package/lib/commands/plugin/new.d.ts.map +1 -0
- package/lib/commands/plugin/new.js +93 -0
- package/lib/commands/plugin/new.js.map +1 -0
- package/lib/commands/plugin/remove.d.ts +3 -0
- package/lib/commands/plugin/remove.d.ts.map +1 -0
- package/lib/commands/plugin/remove.js +113 -0
- package/lib/commands/plugin/remove.js.map +1 -0
- package/lib/commands/plugin/scan.d.ts +2 -0
- package/lib/commands/plugin/scan.d.ts.map +1 -0
- package/lib/commands/plugin/scan.js +9 -0
- package/lib/commands/plugin/scan.js.map +1 -0
- package/lib/commands/plugin/verify.d.ts +3 -0
- package/lib/commands/plugin/verify.d.ts.map +1 -0
- package/lib/commands/plugin/verify.js +19 -0
- package/lib/commands/plugin/verify.js.map +1 -0
- package/lib/commands/plugin.d.ts +3 -0
- package/lib/commands/plugin.d.ts.map +1 -0
- package/lib/commands/plugin.js +63 -0
- package/lib/commands/plugin.js.map +1 -0
- package/lib/commands/publish.d.ts +2 -0
- package/lib/commands/publish.d.ts.map +1 -0
- package/lib/commands/publish.js +43 -0
- package/lib/commands/publish.js.map +1 -0
- package/lib/commands/pull.d.ts +3 -0
- package/lib/commands/pull.d.ts.map +1 -0
- package/lib/commands/pull.js +68 -0
- package/lib/commands/pull.js.map +1 -0
- package/lib/commands/push.d.ts +3 -0
- package/lib/commands/push.d.ts.map +1 -0
- package/lib/commands/push.js +26 -0
- package/lib/commands/push.js.map +1 -0
- package/lib/commands/run.d.ts +3 -0
- package/lib/commands/run.d.ts.map +1 -0
- package/lib/commands/run.js +12 -0
- package/lib/commands/run.js.map +1 -0
- package/lib/commands/status.d.ts +3 -0
- package/lib/commands/status.d.ts.map +1 -0
- package/lib/commands/status.js +79 -0
- package/lib/commands/status.js.map +1 -0
- package/lib/commands/uninstall.d.ts +3 -0
- package/lib/commands/uninstall.d.ts.map +1 -0
- package/lib/commands/uninstall.js +92 -0
- package/lib/commands/uninstall.js.map +1 -0
- package/lib/commands/upgrade.d.ts +3 -0
- package/lib/commands/upgrade.d.ts.map +1 -0
- package/lib/commands/upgrade.js +121 -0
- package/lib/commands/upgrade.js.map +1 -0
- package/lib/commands/version.d.ts +2 -0
- package/lib/commands/version.d.ts.map +1 -0
- package/lib/commands/version.js +10 -0
- package/lib/commands/version.js.map +1 -0
- package/lib/conditional-local-logging-init.d.ts +3 -0
- package/lib/conditional-local-logging-init.d.ts.map +1 -0
- package/lib/conditional-local-logging-init.js +14 -0
- package/lib/conditional-local-logging-init.js.map +1 -0
- package/lib/config-steps/c0-analyzeProject.d.ts +2 -0
- package/lib/config-steps/c0-analyzeProject.d.ts.map +1 -0
- package/lib/config-steps/c0-analyzeProject.js +151 -0
- package/lib/config-steps/c0-analyzeProject.js.map +1 -0
- package/lib/config-steps/c1-configFrontend.d.ts +2 -0
- package/lib/config-steps/c1-configFrontend.d.ts.map +1 -0
- package/lib/config-steps/c1-configFrontend.js +73 -0
- package/lib/config-steps/c1-configFrontend.js.map +1 -0
- package/lib/config-steps/c2-configProviders.d.ts +2 -0
- package/lib/config-steps/c2-configProviders.d.ts.map +1 -0
- package/lib/config-steps/c2-configProviders.js +97 -0
- package/lib/config-steps/c2-configProviders.js.map +1 -0
- package/lib/config-steps/c9-onFailure.d.ts +2 -0
- package/lib/config-steps/c9-onFailure.d.ts.map +1 -0
- package/lib/config-steps/c9-onFailure.js +43 -0
- package/lib/config-steps/c9-onFailure.js.map +1 -0
- package/lib/config-steps/c9-onSuccess.d.ts +2 -0
- package/lib/config-steps/c9-onSuccess.d.ts.map +1 -0
- package/lib/config-steps/c9-onSuccess.js +17 -0
- package/lib/config-steps/c9-onSuccess.js.map +1 -0
- package/lib/configure-new-user.d.ts +2 -0
- package/lib/configure-new-user.d.ts.map +1 -0
- package/lib/configure-new-user.js +61 -0
- package/lib/configure-new-user.js.map +1 -0
- package/lib/context-manager.d.ts +6 -0
- package/lib/context-manager.d.ts.map +1 -0
- package/lib/context-manager.js +101 -0
- package/lib/context-manager.js.map +1 -0
- package/lib/display-banner-messages.d.ts +3 -0
- package/lib/display-banner-messages.d.ts.map +1 -0
- package/lib/display-banner-messages.js +51 -0
- package/lib/display-banner-messages.js.map +1 -0
- package/lib/domain/add-plugin-result.d.ts +12 -0
- package/lib/domain/add-plugin-result.d.ts.map +1 -0
- package/lib/domain/add-plugin-result.js +17 -0
- package/lib/domain/add-plugin-result.js.map +1 -0
- package/lib/domain/amplify-plugin-type.d.ts +7 -0
- package/lib/domain/amplify-plugin-type.d.ts.map +1 -0
- package/lib/domain/amplify-plugin-type.js +11 -0
- package/lib/domain/amplify-plugin-type.js.map +1 -0
- package/lib/domain/amplify-toolkit.d.ts +84 -0
- package/lib/domain/amplify-toolkit.d.ts.map +1 -0
- package/lib/domain/amplify-toolkit.js +244 -0
- package/lib/domain/amplify-toolkit.js.map +1 -0
- package/lib/domain/amplify-usageData/FlowReport.d.ts +30 -0
- package/lib/domain/amplify-usageData/FlowReport.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/FlowReport.js +99 -0
- package/lib/domain/amplify-usageData/FlowReport.js.map +1 -0
- package/lib/domain/amplify-usageData/NoFlowReport.d.ts +12 -0
- package/lib/domain/amplify-usageData/NoFlowReport.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/NoFlowReport.js +21 -0
- package/lib/domain/amplify-usageData/NoFlowReport.js.map +1 -0
- package/lib/domain/amplify-usageData/NoUsageData.d.ts +24 -0
- package/lib/domain/amplify-usageData/NoUsageData.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/NoUsageData.js +69 -0
- package/lib/domain/amplify-usageData/NoUsageData.js.map +1 -0
- package/lib/domain/amplify-usageData/SerializableError.d.ts +16 -0
- package/lib/domain/amplify-usageData/SerializableError.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/SerializableError.js +129 -0
- package/lib/domain/amplify-usageData/SerializableError.js.map +1 -0
- package/lib/domain/amplify-usageData/Timer.d.ts +8 -0
- package/lib/domain/amplify-usageData/Timer.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/Timer.js +17 -0
- package/lib/domain/amplify-usageData/Timer.js.map +1 -0
- package/lib/domain/amplify-usageData/UsageData.d.ts +45 -0
- package/lib/domain/amplify-usageData/UsageData.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/UsageData.js +163 -0
- package/lib/domain/amplify-usageData/UsageData.js.map +1 -0
- package/lib/domain/amplify-usageData/UsageDataPayload.d.ts +26 -0
- package/lib/domain/amplify-usageData/UsageDataPayload.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/UsageDataPayload.js +69 -0
- package/lib/domain/amplify-usageData/UsageDataPayload.js.map +1 -0
- package/lib/domain/amplify-usageData/VersionManager.d.ts +3 -0
- package/lib/domain/amplify-usageData/VersionManager.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/VersionManager.js +29 -0
- package/lib/domain/amplify-usageData/VersionManager.js.map +1 -0
- package/lib/domain/amplify-usageData/getUsageDataUrl.d.ts +4 -0
- package/lib/domain/amplify-usageData/getUsageDataUrl.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/getUsageDataUrl.js +27 -0
- package/lib/domain/amplify-usageData/getUsageDataUrl.js.map +1 -0
- package/lib/domain/amplify-usageData/identifiable-input-regex.d.ts +3 -0
- package/lib/domain/amplify-usageData/identifiable-input-regex.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/identifiable-input-regex.js +80 -0
- package/lib/domain/amplify-usageData/identifiable-input-regex.js.map +1 -0
- package/lib/domain/amplify-usageData/index.d.ts +4 -0
- package/lib/domain/amplify-usageData/index.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/index.js +8 -0
- package/lib/domain/amplify-usageData/index.js.map +1 -0
- package/lib/domain/command-input.d.ts +12 -0
- package/lib/domain/command-input.d.ts.map +1 -0
- package/lib/domain/command-input.js +11 -0
- package/lib/domain/command-input.js.map +1 -0
- package/lib/domain/context.d.ts +11 -0
- package/lib/domain/context.d.ts.map +1 -0
- package/lib/domain/context.js +13 -0
- package/lib/domain/context.js.map +1 -0
- package/lib/domain/error.d.ts +1 -0
- package/lib/domain/error.d.ts.map +1 -0
- package/lib/domain/error.js +1 -0
- package/lib/domain/error.js.map +1 -0
- package/lib/domain/input-verification-result.d.ts +7 -0
- package/lib/domain/input-verification-result.d.ts.map +1 -0
- package/lib/domain/input-verification-result.js +12 -0
- package/lib/domain/input-verification-result.js.map +1 -0
- package/lib/domain/inquirer-helper.d.ts +7 -0
- package/lib/domain/inquirer-helper.d.ts.map +1 -0
- package/lib/domain/inquirer-helper.js +5 -0
- package/lib/domain/inquirer-helper.js.map +1 -0
- package/lib/execution-manager.d.ts +9 -0
- package/lib/execution-manager.d.ts.map +1 -0
- package/lib/execution-manager.js +339 -0
- package/lib/execution-manager.js.map +1 -0
- package/lib/extensions/amplify-helpers/apply-auth-mode.d.ts +5 -0
- package/lib/extensions/amplify-helpers/apply-auth-mode.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/apply-auth-mode.js +63 -0
- package/lib/extensions/amplify-helpers/apply-auth-mode.js.map +1 -0
- package/lib/extensions/amplify-helpers/auto-updates.d.ts +2 -0
- package/lib/extensions/amplify-helpers/auto-updates.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/auto-updates.js +13 -0
- package/lib/extensions/amplify-helpers/auto-updates.js.map +1 -0
- package/lib/extensions/amplify-helpers/confirm-prompt.d.ts +2 -0
- package/lib/extensions/amplify-helpers/confirm-prompt.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/confirm-prompt.js +47 -0
- package/lib/extensions/amplify-helpers/confirm-prompt.js.map +1 -0
- package/lib/extensions/amplify-helpers/constants.d.ts +25 -0
- package/lib/extensions/amplify-helpers/constants.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/constants.js +28 -0
- package/lib/extensions/amplify-helpers/constants.js.map +1 -0
- package/lib/extensions/amplify-helpers/construct-exeInfo.d.ts +3 -0
- package/lib/extensions/amplify-helpers/construct-exeInfo.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/construct-exeInfo.js +23 -0
- package/lib/extensions/amplify-helpers/construct-exeInfo.js.map +1 -0
- package/lib/extensions/amplify-helpers/copy-batch.d.ts +3 -0
- package/lib/extensions/amplify-helpers/copy-batch.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/copy-batch.js +31 -0
- package/lib/extensions/amplify-helpers/copy-batch.js.map +1 -0
- package/lib/extensions/amplify-helpers/current-cloud-backend-utils.d.ts +4 -0
- package/lib/extensions/amplify-helpers/current-cloud-backend-utils.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/current-cloud-backend-utils.js +76 -0
- package/lib/extensions/amplify-helpers/current-cloud-backend-utils.js.map +1 -0
- package/lib/extensions/amplify-helpers/delete-project.d.ts +8 -0
- package/lib/extensions/amplify-helpers/delete-project.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/delete-project.js +89 -0
- package/lib/extensions/amplify-helpers/delete-project.js.map +1 -0
- package/lib/extensions/amplify-helpers/docs-manager.d.ts +2 -0
- package/lib/extensions/amplify-helpers/docs-manager.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/docs-manager.js +20 -0
- package/lib/extensions/amplify-helpers/docs-manager.js.map +1 -0
- package/lib/extensions/amplify-helpers/editor-selection.d.ts +7 -0
- package/lib/extensions/amplify-helpers/editor-selection.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/editor-selection.js +134 -0
- package/lib/extensions/amplify-helpers/editor-selection.js.map +1 -0
- package/lib/extensions/amplify-helpers/envResourceParams.d.ts +6 -0
- package/lib/extensions/amplify-helpers/envResourceParams.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/envResourceParams.js +89 -0
- package/lib/extensions/amplify-helpers/envResourceParams.js.map +1 -0
- package/lib/extensions/amplify-helpers/execute-provider-utils.d.ts +3 -0
- package/lib/extensions/amplify-helpers/execute-provider-utils.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/execute-provider-utils.js +43 -0
- package/lib/extensions/amplify-helpers/execute-provider-utils.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-all-category-pluginInfos.d.ts +6 -0
- package/lib/extensions/amplify-helpers/get-all-category-pluginInfos.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-all-category-pluginInfos.js +16 -0
- package/lib/extensions/amplify-helpers/get-all-category-pluginInfos.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-all-envs.d.ts +2 -0
- package/lib/extensions/amplify-helpers/get-all-envs.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-all-envs.js +10 -0
- package/lib/extensions/amplify-helpers/get-all-envs.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-amplify-appId.d.ts +2 -0
- package/lib/extensions/amplify-helpers/get-amplify-appId.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-amplify-appId.js +11 -0
- package/lib/extensions/amplify-helpers/get-amplify-appId.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-amplify-version.d.ts +2 -0
- package/lib/extensions/amplify-helpers/get-amplify-version.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-amplify-version.js +44 -0
- package/lib/extensions/amplify-helpers/get-amplify-version.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-category-pluginInfo.d.ts +3 -0
- package/lib/extensions/amplify-helpers/get-category-pluginInfo.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-category-pluginInfo.js +29 -0
- package/lib/extensions/amplify-helpers/get-category-pluginInfo.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-cloud-init-status.d.ts +5 -0
- package/lib/extensions/amplify-helpers/get-cloud-init-status.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-cloud-init-status.js +54 -0
- package/lib/extensions/amplify-helpers/get-cloud-init-status.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-env-details.d.ts +3 -0
- package/lib/extensions/amplify-helpers/get-env-details.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-env-details.js +13 -0
- package/lib/extensions/amplify-helpers/get-env-details.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-env-info.d.ts +3 -0
- package/lib/extensions/amplify-helpers/get-env-info.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-env-info.js +15 -0
- package/lib/extensions/amplify-helpers/get-env-info.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-frontend-plugins.d.ts +3 -0
- package/lib/extensions/amplify-helpers/get-frontend-plugins.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-frontend-plugins.js +19 -0
- package/lib/extensions/amplify-helpers/get-frontend-plugins.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-imported-auth-properties.d.ts +10 -0
- package/lib/extensions/amplify-helpers/get-imported-auth-properties.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-imported-auth-properties.js +43 -0
- package/lib/extensions/amplify-helpers/get-imported-auth-properties.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-plugin-instance.d.ts +3 -0
- package/lib/extensions/amplify-helpers/get-plugin-instance.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-plugin-instance.js +15 -0
- package/lib/extensions/amplify-helpers/get-plugin-instance.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-plugin.d.ts +2 -0
- package/lib/extensions/amplify-helpers/get-plugin.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-plugin.js +15 -0
- package/lib/extensions/amplify-helpers/get-plugin.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-project-config.d.ts +2 -0
- package/lib/extensions/amplify-helpers/get-project-config.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-project-config.js +8 -0
- package/lib/extensions/amplify-helpers/get-project-config.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-project-details.d.ts +9 -0
- package/lib/extensions/amplify-helpers/get-project-details.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-project-details.js +25 -0
- package/lib/extensions/amplify-helpers/get-project-details.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-project-meta.d.ts +3 -0
- package/lib/extensions/amplify-helpers/get-project-meta.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-project-meta.js +12 -0
- package/lib/extensions/amplify-helpers/get-project-meta.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-provider-plugins.d.ts +5 -0
- package/lib/extensions/amplify-helpers/get-provider-plugins.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-provider-plugins.js +66 -0
- package/lib/extensions/amplify-helpers/get-provider-plugins.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-resource-outputs.d.ts +14 -0
- package/lib/extensions/amplify-helpers/get-resource-outputs.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-resource-outputs.js +70 -0
- package/lib/extensions/amplify-helpers/get-resource-outputs.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-root-stack-id.d.ts +2 -0
- package/lib/extensions/amplify-helpers/get-root-stack-id.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-root-stack-id.js +15 -0
- package/lib/extensions/amplify-helpers/get-root-stack-id.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-tags.d.ts +4 -0
- package/lib/extensions/amplify-helpers/get-tags.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-tags.js +39 -0
- package/lib/extensions/amplify-helpers/get-tags.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-userpoolgroup-list.d.ts +3 -0
- package/lib/extensions/amplify-helpers/get-userpoolgroup-list.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-userpoolgroup-list.js +50 -0
- package/lib/extensions/amplify-helpers/get-userpoolgroup-list.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-when-function.d.ts +2 -0
- package/lib/extensions/amplify-helpers/get-when-function.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-when-function.js +62 -0
- package/lib/extensions/amplify-helpers/get-when-function.js.map +1 -0
- package/lib/extensions/amplify-helpers/git-manager.d.ts +2 -0
- package/lib/extensions/amplify-helpers/git-manager.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/git-manager.js +103 -0
- package/lib/extensions/amplify-helpers/git-manager.js.map +1 -0
- package/lib/extensions/amplify-helpers/hash-dir.d.ts +2 -0
- package/lib/extensions/amplify-helpers/hash-dir.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/hash-dir.js +11 -0
- package/lib/extensions/amplify-helpers/hash-dir.js.map +1 -0
- package/lib/extensions/amplify-helpers/input-validation.d.ts +2 -0
- package/lib/extensions/amplify-helpers/input-validation.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/input-validation.js +30 -0
- package/lib/extensions/amplify-helpers/input-validation.js.map +1 -0
- package/lib/extensions/amplify-helpers/invoke-delete-env-params.d.ts +3 -0
- package/lib/extensions/amplify-helpers/invoke-delete-env-params.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/invoke-delete-env-params.js +13 -0
- package/lib/extensions/amplify-helpers/invoke-delete-env-params.js.map +1 -0
- package/lib/extensions/amplify-helpers/invoke-plugin-method.d.ts +3 -0
- package/lib/extensions/amplify-helpers/invoke-plugin-method.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/invoke-plugin-method.js +56 -0
- package/lib/extensions/amplify-helpers/invoke-plugin-method.js.map +1 -0
- package/lib/extensions/amplify-helpers/leave-breadcrumbs.d.ts +2 -0
- package/lib/extensions/amplify-helpers/leave-breadcrumbs.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/leave-breadcrumbs.js +44 -0
- package/lib/extensions/amplify-helpers/leave-breadcrumbs.js.map +1 -0
- package/lib/extensions/amplify-helpers/list-categories.d.ts +2 -0
- package/lib/extensions/amplify-helpers/list-categories.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/list-categories.js +8 -0
- package/lib/extensions/amplify-helpers/list-categories.js.map +1 -0
- package/lib/extensions/amplify-helpers/load-runtime-plugin.d.ts +3 -0
- package/lib/extensions/amplify-helpers/load-runtime-plugin.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/load-runtime-plugin.js +53 -0
- package/lib/extensions/amplify-helpers/load-runtime-plugin.js.map +1 -0
- package/lib/extensions/amplify-helpers/make-id.d.ts +2 -0
- package/lib/extensions/amplify-helpers/make-id.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/make-id.js +12 -0
- package/lib/extensions/amplify-helpers/make-id.js.map +1 -0
- package/lib/extensions/amplify-helpers/on-category-outputs-change.d.ts +3 -0
- package/lib/extensions/amplify-helpers/on-category-outputs-change.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/on-category-outputs-change.js +123 -0
- package/lib/extensions/amplify-helpers/on-category-outputs-change.js.map +1 -0
- package/lib/extensions/amplify-helpers/open-editor.d.ts +3 -0
- package/lib/extensions/amplify-helpers/open-editor.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/open-editor.js +111 -0
- package/lib/extensions/amplify-helpers/open-editor.js.map +1 -0
- package/lib/extensions/amplify-helpers/path-manager.d.ts +17 -0
- package/lib/extensions/amplify-helpers/path-manager.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/path-manager.js +116 -0
- package/lib/extensions/amplify-helpers/path-manager.js.map +1 -0
- package/lib/extensions/amplify-helpers/permission-flow.d.ts +2 -0
- package/lib/extensions/amplify-helpers/permission-flow.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/permission-flow.js +62 -0
- package/lib/extensions/amplify-helpers/permission-flow.js.map +1 -0
- package/lib/extensions/amplify-helpers/press-enter-to-continue.d.ts +2 -0
- package/lib/extensions/amplify-helpers/press-enter-to-continue.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/press-enter-to-continue.js +15 -0
- package/lib/extensions/amplify-helpers/press-enter-to-continue.js.map +1 -0
- package/lib/extensions/amplify-helpers/print.d.ts +16 -0
- package/lib/extensions/amplify-helpers/print.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/print.js +115 -0
- package/lib/extensions/amplify-helpers/print.js.map +1 -0
- package/lib/extensions/amplify-helpers/project-name-validation.d.ts +5 -0
- package/lib/extensions/amplify-helpers/project-name-validation.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/project-name-validation.js +27 -0
- package/lib/extensions/amplify-helpers/project-name-validation.js.map +1 -0
- package/lib/extensions/amplify-helpers/push-resources.d.ts +6 -0
- package/lib/extensions/amplify-helpers/push-resources.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/push-resources.js +149 -0
- package/lib/extensions/amplify-helpers/push-resources.js.map +1 -0
- package/lib/extensions/amplify-helpers/read-breadcrumbs.d.ts +2 -0
- package/lib/extensions/amplify-helpers/read-breadcrumbs.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/read-breadcrumbs.js +57 -0
- package/lib/extensions/amplify-helpers/read-breadcrumbs.js.map +1 -0
- package/lib/extensions/amplify-helpers/read-json-file.d.ts +3 -0
- package/lib/extensions/amplify-helpers/read-json-file.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/read-json-file.js +10 -0
- package/lib/extensions/amplify-helpers/read-json-file.js.map +1 -0
- package/lib/extensions/amplify-helpers/remove-env-from-cloud.d.ts +2 -0
- package/lib/extensions/amplify-helpers/remove-env-from-cloud.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/remove-env-from-cloud.js +71 -0
- package/lib/extensions/amplify-helpers/remove-env-from-cloud.js.map +1 -0
- package/lib/extensions/amplify-helpers/remove-pinpoint-policy.d.ts +2 -0
- package/lib/extensions/amplify-helpers/remove-pinpoint-policy.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/remove-pinpoint-policy.js +60 -0
- package/lib/extensions/amplify-helpers/remove-pinpoint-policy.js.map +1 -0
- package/lib/extensions/amplify-helpers/remove-resource.d.ts +15 -0
- package/lib/extensions/amplify-helpers/remove-resource.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/remove-resource.js +113 -0
- package/lib/extensions/amplify-helpers/remove-resource.js.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status-data.d.ts +40 -0
- package/lib/extensions/amplify-helpers/resource-status-data.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status-data.js +467 -0
- package/lib/extensions/amplify-helpers/resource-status-data.js.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status-diff.d.ts +64 -0
- package/lib/extensions/amplify-helpers/resource-status-diff.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status-diff.js +210 -0
- package/lib/extensions/amplify-helpers/resource-status-diff.js.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status-view.d.ts +8 -0
- package/lib/extensions/amplify-helpers/resource-status-view.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status-view.js +70 -0
- package/lib/extensions/amplify-helpers/resource-status-view.js.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status.d.ts +6 -0
- package/lib/extensions/amplify-helpers/resource-status.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status.js +43 -0
- package/lib/extensions/amplify-helpers/resource-status.js.map +1 -0
- package/lib/extensions/amplify-helpers/root-stack-status.d.ts +3 -0
- package/lib/extensions/amplify-helpers/root-stack-status.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/root-stack-status.js +74 -0
- package/lib/extensions/amplify-helpers/root-stack-status.js.map +1 -0
- package/lib/extensions/amplify-helpers/service-select-prompt.d.ts +3 -0
- package/lib/extensions/amplify-helpers/service-select-prompt.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/service-select-prompt.js +103 -0
- package/lib/extensions/amplify-helpers/service-select-prompt.js.map +1 -0
- package/lib/extensions/amplify-helpers/shared-questions.d.ts +10 -0
- package/lib/extensions/amplify-helpers/shared-questions.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/shared-questions.js +13 -0
- package/lib/extensions/amplify-helpers/shared-questions.js.map +1 -0
- package/lib/extensions/amplify-helpers/show-all-help.d.ts +2 -0
- package/lib/extensions/amplify-helpers/show-all-help.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/show-all-help.js +102 -0
- package/lib/extensions/amplify-helpers/show-all-help.js.map +1 -0
- package/lib/extensions/amplify-helpers/show-help.d.ts +2 -0
- package/lib/extensions/amplify-helpers/show-help.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/show-help.js +15 -0
- package/lib/extensions/amplify-helpers/show-help.js.map +1 -0
- package/lib/extensions/amplify-helpers/show-helpful-provider-links.d.ts +3 -0
- package/lib/extensions/amplify-helpers/show-helpful-provider-links.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/show-helpful-provider-links.js +51 -0
- package/lib/extensions/amplify-helpers/show-helpful-provider-links.js.map +1 -0
- package/lib/extensions/amplify-helpers/trigger-flow.d.ts +20 -0
- package/lib/extensions/amplify-helpers/trigger-flow.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/trigger-flow.js +416 -0
- package/lib/extensions/amplify-helpers/trigger-flow.js.map +1 -0
- package/lib/extensions/amplify-helpers/update-amplify-meta.d.ts +21 -0
- package/lib/extensions/amplify-helpers/update-amplify-meta.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/update-amplify-meta.js +252 -0
- package/lib/extensions/amplify-helpers/update-amplify-meta.js.map +1 -0
- package/lib/extensions/amplify-helpers/update-backend-config.d.ts +5 -0
- package/lib/extensions/amplify-helpers/update-backend-config.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/update-backend-config.js +43 -0
- package/lib/extensions/amplify-helpers/update-backend-config.js.map +1 -0
- package/lib/extensions/amplify-helpers/update-project-config.d.ts +3 -0
- package/lib/extensions/amplify-helpers/update-project-config.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/update-project-config.js +13 -0
- package/lib/extensions/amplify-helpers/update-project-config.js.map +1 -0
- package/lib/extensions/amplify-helpers/update-tracked-files.d.ts +3 -0
- package/lib/extensions/amplify-helpers/update-tracked-files.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/update-tracked-files.js +87 -0
- package/lib/extensions/amplify-helpers/update-tracked-files.js.map +1 -0
- package/lib/extensions/amplify-helpers/write-object-as-json.d.ts +2 -0
- package/lib/extensions/amplify-helpers/write-object-as-json.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/write-object-as-json.js +10 -0
- package/lib/extensions/amplify-helpers/write-object-as-json.js.map +1 -0
- package/lib/global-prefix.d.ts +2 -0
- package/lib/global-prefix.d.ts.map +1 -0
- package/lib/global-prefix.js +141 -0
- package/lib/global-prefix.js.map +1 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +207 -0
- package/lib/index.js.map +1 -0
- package/lib/init-steps/postInitSetup.d.ts +3 -0
- package/lib/init-steps/postInitSetup.d.ts.map +1 -0
- package/lib/init-steps/postInitSetup.js +85 -0
- package/lib/init-steps/postInitSetup.js.map +1 -0
- package/lib/init-steps/preInitSetup.d.ts +5 -0
- package/lib/init-steps/preInitSetup.d.ts.map +1 -0
- package/lib/init-steps/preInitSetup.js +153 -0
- package/lib/init-steps/preInitSetup.js.map +1 -0
- package/lib/init-steps/s0-analyzeProject.d.ts +6 -0
- package/lib/init-steps/s0-analyzeProject.d.ts.map +1 -0
- package/lib/init-steps/s0-analyzeProject.js +308 -0
- package/lib/init-steps/s0-analyzeProject.js.map +1 -0
- package/lib/init-steps/s1-initFrontend.d.ts +4 -0
- package/lib/init-steps/s1-initFrontend.d.ts.map +1 -0
- package/lib/init-steps/s1-initFrontend.js +92 -0
- package/lib/init-steps/s1-initFrontend.js.map +1 -0
- package/lib/init-steps/s2-initProviders.d.ts +2 -0
- package/lib/init-steps/s2-initProviders.d.ts.map +1 -0
- package/lib/init-steps/s2-initProviders.js +95 -0
- package/lib/init-steps/s2-initProviders.js.map +1 -0
- package/lib/init-steps/s8-scaffoldHeadless.d.ts +3 -0
- package/lib/init-steps/s8-scaffoldHeadless.d.ts.map +1 -0
- package/lib/init-steps/s8-scaffoldHeadless.js +68 -0
- package/lib/init-steps/s8-scaffoldHeadless.js.map +1 -0
- package/lib/init-steps/s9-onFailure.d.ts +2 -0
- package/lib/init-steps/s9-onFailure.d.ts.map +1 -0
- package/lib/init-steps/s9-onFailure.js +45 -0
- package/lib/init-steps/s9-onFailure.js.map +1 -0
- package/lib/init-steps/s9-onSuccess.d.ts +6 -0
- package/lib/init-steps/s9-onSuccess.d.ts.map +1 -0
- package/lib/init-steps/s9-onSuccess.js +216 -0
- package/lib/init-steps/s9-onSuccess.js.map +1 -0
- package/lib/initialize-env.d.ts +3 -0
- package/lib/initialize-env.d.ts.map +1 -0
- package/lib/initialize-env.js +170 -0
- package/lib/initialize-env.js.map +1 -0
- package/lib/input-manager.d.ts +6 -0
- package/lib/input-manager.d.ts.map +1 -0
- package/lib/input-manager.js +253 -0
- package/lib/input-manager.js.map +1 -0
- package/lib/input-params-manager.d.ts +5 -0
- package/lib/input-params-manager.d.ts.map +1 -0
- package/lib/input-params-manager.js +77 -0
- package/lib/input-params-manager.js.map +1 -0
- package/lib/migrate-project.d.ts +3 -0
- package/lib/migrate-project.d.ts.map +1 -0
- package/lib/migrate-project.js +258 -0
- package/lib/migrate-project.js.map +1 -0
- package/lib/plugin-helpers/access-plugins-file.d.ts +4 -0
- package/lib/plugin-helpers/access-plugins-file.d.ts.map +1 -0
- package/lib/plugin-helpers/access-plugins-file.js +66 -0
- package/lib/plugin-helpers/access-plugins-file.js.map +1 -0
- package/lib/plugin-helpers/compare-plugins.d.ts +3 -0
- package/lib/plugin-helpers/compare-plugins.d.ts.map +1 -0
- package/lib/plugin-helpers/compare-plugins.js +13 -0
- package/lib/plugin-helpers/compare-plugins.js.map +1 -0
- package/lib/plugin-helpers/create-new-plugin.d.ts +3 -0
- package/lib/plugin-helpers/create-new-plugin.d.ts.map +1 -0
- package/lib/plugin-helpers/create-new-plugin.js +234 -0
- package/lib/plugin-helpers/create-new-plugin.js.map +1 -0
- package/lib/plugin-helpers/display-plugin-platform.d.ts +15 -0
- package/lib/plugin-helpers/display-plugin-platform.d.ts.map +1 -0
- package/lib/plugin-helpers/display-plugin-platform.js +102 -0
- package/lib/plugin-helpers/display-plugin-platform.js.map +1 -0
- package/lib/plugin-helpers/platform-health-check.d.ts +12 -0
- package/lib/plugin-helpers/platform-health-check.d.ts.map +1 -0
- package/lib/plugin-helpers/platform-health-check.js +138 -0
- package/lib/plugin-helpers/platform-health-check.js.map +1 -0
- package/lib/plugin-helpers/scan-plugin-platform.d.ts +7 -0
- package/lib/plugin-helpers/scan-plugin-platform.d.ts.map +1 -0
- package/lib/plugin-helpers/scan-plugin-platform.js +188 -0
- package/lib/plugin-helpers/scan-plugin-platform.js.map +1 -0
- package/lib/plugin-helpers/verify-plugin.d.ts +8 -0
- package/lib/plugin-helpers/verify-plugin.d.ts.map +1 -0
- package/lib/plugin-helpers/verify-plugin.js +125 -0
- package/lib/plugin-helpers/verify-plugin.js.map +1 -0
- package/lib/plugin-manager.d.ts +18 -0
- package/lib/plugin-manager.d.ts.map +1 -0
- package/lib/plugin-manager.js +252 -0
- package/lib/plugin-manager.js.map +1 -0
- package/lib/pre-deployment-pull.d.ts +3 -0
- package/lib/pre-deployment-pull.d.ts.map +1 -0
- package/lib/pre-deployment-pull.js +82 -0
- package/lib/pre-deployment-pull.js.map +1 -0
- package/lib/project-config-version-check.d.ts +3 -0
- package/lib/project-config-version-check.d.ts.map +1 -0
- package/lib/project-config-version-check.js +153 -0
- package/lib/project-config-version-check.js.map +1 -0
- package/lib/pull-backend.d.ts +3 -0
- package/lib/pull-backend.d.ts.map +1 -0
- package/lib/pull-backend.js +45 -0
- package/lib/pull-backend.js.map +1 -0
- package/lib/rewireDeprecatedCommands.d.ts +3 -0
- package/lib/rewireDeprecatedCommands.d.ts.map +1 -0
- package/lib/rewireDeprecatedCommands.js +19 -0
- package/lib/rewireDeprecatedCommands.js.map +1 -0
- package/lib/utils/global-prefix.d.ts +2 -0
- package/lib/utils/global-prefix.d.ts.map +1 -0
- package/lib/utils/global-prefix.js +109 -0
- package/lib/utils/global-prefix.js.map +1 -0
- package/lib/utils/headless-input-utils.d.ts +5 -0
- package/lib/utils/headless-input-utils.d.ts.map +1 -0
- package/lib/utils/headless-input-utils.js +37 -0
- package/lib/utils/headless-input-utils.js.map +1 -0
- package/lib/utils/is-child-path.d.ts +2 -0
- package/lib/utils/is-child-path.d.ts.map +1 -0
- package/lib/utils/is-child-path.js +46 -0
- package/lib/utils/is-child-path.js.map +1 -0
- package/lib/utils/mobilehub-support.d.ts +3 -0
- package/lib/utils/mobilehub-support.d.ts.map +1 -0
- package/lib/utils/mobilehub-support.js +45 -0
- package/lib/utils/mobilehub-support.js.map +1 -0
- package/lib/utils/post-install-initialization.d.ts +2 -0
- package/lib/utils/post-install-initialization.d.ts.map +1 -0
- package/lib/utils/post-install-initialization.js +75 -0
- package/lib/utils/post-install-initialization.js.map +1 -0
- package/lib/utils/set-ops.d.ts +4 -0
- package/lib/utils/set-ops.d.ts.map +1 -0
- package/lib/utils/set-ops.js +44 -0
- package/lib/utils/set-ops.js.map +1 -0
- package/lib/utils/team-provider-migrate.d.ts +3 -0
- package/lib/utils/team-provider-migrate.d.ts.map +1 -0
- package/lib/utils/team-provider-migrate.js +76 -0
- package/lib/utils/team-provider-migrate.js.map +1 -0
- package/lib/utils/verify-expected-env-params.d.ts +3 -0
- package/lib/utils/verify-expected-env-params.d.ts.map +1 -0
- package/lib/utils/verify-expected-env-params.js +51 -0
- package/lib/utils/verify-expected-env-params.js.map +1 -0
- package/lib/utils/win-constants.d.ts +4 -0
- package/lib/utils/win-constants.d.ts.map +1 -0
- package/lib/utils/win-constants.js +43 -0
- package/lib/utils/win-constants.js.map +1 -0
- package/lib/utils/win-utils.d.ts +3 -0
- package/lib/utils/win-utils.d.ts.map +1 -0
- package/lib/utils/win-utils.js +113 -0
- package/lib/utils/win-utils.js.map +1 -0
- package/lib/version-notifier.d.ts +3 -0
- package/lib/version-notifier.d.ts.map +1 -0
- package/lib/version-notifier.js +21 -0
- package/lib/version-notifier.js.map +1 -0
- package/package.json +293 -0
- package/readme.md +4 -0
- package/resources/sample-hooks/hooks-readme.md +7 -0
- package/resources/sample-hooks/post-push.sh.sample +24 -0
- package/resources/sample-hooks/pre-push.js.sample +27 -0
- package/sample-headless-scripts/headless_add_external_env.sh +30 -0
- package/sample-headless-scripts/headless_configure_project.sh +35 -0
- package/sample-headless-scripts/headless_init_env.sh +47 -0
- package/sample-headless-scripts/headless_init_env_auth.sh +30 -0
- package/sample-headless-scripts/headless_init_new_project.sh +34 -0
- package/sample-headless-scripts/headless_publish.sh +15 -0
- package/sample-headless-scripts/headless_push.sh +15 -0
- package/scripts/post-install.js +34 -0
- package/templates/amplify-skeleton/.config/project-config__android.json +11 -0
- package/templates/amplify-skeleton/.config/project-config__flutter.json +11 -0
- package/templates/amplify-skeleton/.config/project-config__ios.json +6 -0
- package/templates/amplify-skeleton/.config/project-config__javascript.json +15 -0
- package/templates/amplify-skeleton/backend/api/amplifyDatasource/parameters.json +5 -0
- package/templates/amplify-skeleton/backend/api/amplifyDatasource/schema.graphql +10 -0
- package/templates/amplify-skeleton/backend/api/amplifyDatasource/stacks/CustomResources.json +58 -0
- package/templates/amplify-skeleton/backend/api/amplifyDatasource/transform.conf.json +9 -0
- package/templates/amplify-skeleton/backend/backend-config.json +20 -0
- package/templates/plugin-template/amplify-plugin.json +6 -0
- package/templates/plugin-template/commands/help.js +8 -0
- package/templates/plugin-template/commands/version.js +8 -0
- package/templates/plugin-template/event-handlers/handle-PostInit.js +10 -0
- package/templates/plugin-template/event-handlers/handle-PostPush.js +10 -0
- package/templates/plugin-template/event-handlers/handle-PreInit.js +10 -0
- package/templates/plugin-template/event-handlers/handle-PrePush.js +10 -0
- package/templates/plugin-template/index.js +20 -0
- package/templates/plugin-template/package.json +11 -0
- package/templates/plugin-template-frontend/amplify-plugin.json +6 -0
- package/templates/plugin-template-frontend/commands/help.js +8 -0
- package/templates/plugin-template-frontend/commands/version.js +8 -0
- package/templates/plugin-template-frontend/event-handlers/handle-PostInit.js +10 -0
- package/templates/plugin-template-frontend/event-handlers/handle-PostPush.js +10 -0
- package/templates/plugin-template-frontend/event-handlers/handle-PreInit.js +10 -0
- package/templates/plugin-template-frontend/event-handlers/handle-PrePush.js +10 -0
- package/templates/plugin-template-frontend/index.js +62 -0
- package/templates/plugin-template-frontend/package.json +11 -0
- package/templates/plugin-template-provider/amplify-plugin.json +6 -0
- package/templates/plugin-template-provider/commands/help.js +8 -0
- package/templates/plugin-template-provider/commands/version.js +8 -0
- package/templates/plugin-template-provider/event-handlers/handle-PostInit.js +10 -0
- package/templates/plugin-template-provider/event-handlers/handle-PostPush.js +10 -0
- package/templates/plugin-template-provider/event-handlers/handle-PreInit.js +10 -0
- package/templates/plugin-template-provider/event-handlers/handle-PrePush.js +10 -0
- package/templates/plugin-template-provider/index.js +50 -0
- package/templates/plugin-template-provider/package.json +11 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate-project.js","sourceRoot":"","sources":["../src/migrate-project.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,2CAA6B;AAC7B,kDAA0B;AAC1B,8CAAsB;AACtB,mCAAoC;AACpC,oEASuC;AACvC,kEAA8D;AAC9D,sEAA6E;AAC7E,0EAA+E;AAC/E,0CAA8C;AAE9C,MAAM,OAAO,GAAG,IAAA,aAAG,EAAC,EAAE,CAAC,CAAC;AAExB,MAAM,qBAAqB,GACzB,6KAA6K,CAAC;AAChL,MAAM,oBAAoB,GACxB,kOAAkO,CAAC;AAK9N,MAAM,cAAc,GAAG,KAAK,EAAE,OAAmB,EAAiB,EAAE;IACzE,MAAM,WAAW,GAAG,8BAAW,CAAC,eAAe,EAAE,CAAC;IAClD,IAAI,CAAC,WAAW,EAAE,CAAC;QAEjB,OAAO;IACT,CAAC;IAED,MAAM,aAAa,GAAG,+BAAY,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAIjE,IAAI,CAA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AAY,CAAC,CAAC,KAAK,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC;gBAGxF,IAAI,WAAW,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;oBAC9D,aAAa,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC,MAAM,GAAG,EAAE,CAAC;oBAElD,IAAI,WAAW,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE,CAAC;wBAC/C,aAAa,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,YAAY,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;oBACtH,CAAC;gBACH,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,WAAmB,EAAQ,EAAE;IACxD,MAAM,iBAAiB,GAAG,8BAAW,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;IACxE,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,WAAmB,EAAQ,EAAE;IACxD,MAAM,iBAAiB,GAAG,8BAAW,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAExE,IAAA,iCAAmB,EAAC,iBAAiB,CAAC,CAAC;AACzC,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PluginPlatform } from '@aws-amplify/amplify-cli-core';
|
|
2
|
+
export declare function readPluginsJsonFile(): PluginPlatform | undefined;
|
|
3
|
+
export declare function writePluginsJsonFile(pluginsJson: PluginPlatform): void;
|
|
4
|
+
//# sourceMappingURL=access-plugins-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access-plugins-file.d.ts","sourceRoot":"","sources":["../../src/plugin-helpers/access-plugins-file.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAA4B,MAAM,+BAA+B,CAAC;AAEzF,wBAAgB,mBAAmB,IAAI,cAAc,GAAG,SAAS,CAMhE;AAED,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,cAAc,GAAG,IAAI,CAKtE"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.readPluginsJsonFile = readPluginsJsonFile;
|
|
37
|
+
exports.writePluginsJsonFile = writePluginsJsonFile;
|
|
38
|
+
const path = __importStar(require("path"));
|
|
39
|
+
const os = __importStar(require("os"));
|
|
40
|
+
const amplify_cli_core_1 = require("@aws-amplify/amplify-cli-core");
|
|
41
|
+
function readPluginsJsonFile() {
|
|
42
|
+
const pluginsFilePath = getPluginsJsonFilePath();
|
|
43
|
+
return amplify_cli_core_1.JSONUtilities.readJson(pluginsFilePath, {
|
|
44
|
+
throwIfNotExist: false,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function writePluginsJsonFile(pluginsJson) {
|
|
48
|
+
const systemDotAmplifyDirPath = getSystemDotAmplifyDirPath();
|
|
49
|
+
const pluginsJsonFilePath = path.join(systemDotAmplifyDirPath, getPluginsJsonFileName());
|
|
50
|
+
amplify_cli_core_1.JSONUtilities.writeJson(pluginsJsonFilePath, pluginsJson);
|
|
51
|
+
}
|
|
52
|
+
function getPluginsJsonFilePath() {
|
|
53
|
+
return path.join(getSystemDotAmplifyDirPath(), getPluginsJsonFileName());
|
|
54
|
+
}
|
|
55
|
+
function getSystemDotAmplifyDirPath() {
|
|
56
|
+
return path.join(os.homedir(), amplify_cli_core_1.constants.DOT_AMPLIFY_DIR_NAME);
|
|
57
|
+
}
|
|
58
|
+
function getPluginsJsonFileName() {
|
|
59
|
+
let result = amplify_cli_core_1.constants.PLUGINS_FILE_NAME;
|
|
60
|
+
const amplifyExecutableName = path.basename(process.argv[1]);
|
|
61
|
+
if (amplifyExecutableName === 'amplify-dev') {
|
|
62
|
+
result = `${amplifyExecutableName}-${amplify_cli_core_1.constants.PLUGINS_FILE_NAME}`;
|
|
63
|
+
}
|
|
64
|
+
return result;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=access-plugins-file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access-plugins-file.js","sourceRoot":"","sources":["../../src/plugin-helpers/access-plugins-file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,kDAMC;AAED,oDAKC;AAjBD,2CAA6B;AAC7B,uCAAyB;AACzB,oEAAyF;AAEzF,SAAgB,mBAAmB;IACjC,MAAM,eAAe,GAAG,sBAAsB,EAAE,CAAC;IAEjD,OAAO,gCAAa,CAAC,QAAQ,CAAiB,eAAe,EAAE;QAC7D,eAAe,EAAE,KAAK;KACvB,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,oBAAoB,CAAC,WAA2B;IAC9D,MAAM,uBAAuB,GAAG,0BAA0B,EAAE,CAAC;IAC7D,MAAM,mBAAmB,GAAG,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,sBAAsB,EAAE,CAAC,CAAC;IAEzF,gCAAa,CAAC,SAAS,CAAC,mBAAmB,EAAE,WAAW,CAAC,CAAC;AAC5D,CAAC;AAED,SAAS,sBAAsB;IAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,sBAAsB,EAAE,CAAC,CAAC;AAC3E,CAAC;AAED,SAAS,0BAA0B;IACjC,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,4BAAS,CAAC,oBAAoB,CAAC,CAAC;AACjE,CAAC;AAED,SAAS,sBAAsB;IAC7B,IAAI,MAAM,GAAG,4BAAS,CAAC,iBAAiB,CAAC;IACzC,MAAM,qBAAqB,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAE7D,IAAI,qBAAqB,KAAK,aAAa,EAAE,CAAC;QAC5C,MAAM,GAAG,GAAG,qBAAqB,IAAI,4BAAS,CAAC,iBAAiB,EAAE,CAAC;IACrE,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-plugins.d.ts","sourceRoot":"","sources":["../../src/plugin-helpers/compare-plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,WAU5E"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.twoPluginsAreTheSame = twoPluginsAreTheSame;
|
|
4
|
+
function twoPluginsAreTheSame(plugin0, plugin1) {
|
|
5
|
+
if (plugin0.packageLocation === plugin1.packageLocation) {
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
if (plugin0.packageName === plugin1.packageName && plugin0.packageVersion === plugin1.packageVersion) {
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=compare-plugins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-plugins.js","sourceRoot":"","sources":["../../src/plugin-helpers/compare-plugins.ts"],"names":[],"mappings":";;AAEA,oDAUC;AAVD,SAAgB,oBAAoB,CAAC,OAAmB,EAAE,OAAmB;IAC3E,IAAI,OAAO,CAAC,eAAe,KAAK,OAAO,CAAC,eAAe,EAAE,CAAC;QACxD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,OAAO,CAAC,WAAW,KAAK,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,cAAc,KAAK,OAAO,CAAC,cAAc,EAAE,CAAC;QACrG,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-new-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin-helpers/create-new-plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAS5C,wBAA8B,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAOxH"}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.default = createNewPlugin;
|
|
37
|
+
const path = __importStar(require("path"));
|
|
38
|
+
const fs = __importStar(require("fs-extra"));
|
|
39
|
+
const inquirer = __importStar(require("inquirer"));
|
|
40
|
+
const amplify_cli_core_1 = require("@aws-amplify/amplify-cli-core");
|
|
41
|
+
const amplify_plugin_type_1 = require("../domain/amplify-plugin-type");
|
|
42
|
+
const verify_plugin_1 = require("./verify-plugin");
|
|
43
|
+
const display_plugin_platform_1 = require("./display-plugin-platform");
|
|
44
|
+
const INDENTATIONSPACE = 4;
|
|
45
|
+
async function createNewPlugin(context, pluginParentDirPath) {
|
|
46
|
+
const pluginName = await getPluginName(context, pluginParentDirPath);
|
|
47
|
+
if (pluginName) {
|
|
48
|
+
const pluginDirPath = await copyAndUpdateTemplateFiles(context, pluginParentDirPath, pluginName);
|
|
49
|
+
return pluginDirPath;
|
|
50
|
+
}
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
async function getPluginName(context, pluginParentDirPath) {
|
|
54
|
+
let pluginName = 'my-amplify-plugin';
|
|
55
|
+
const yesFlag = context.input.options && context.input.options[amplify_cli_core_1.constants.YES];
|
|
56
|
+
if (context.input.subCommands.length > 1) {
|
|
57
|
+
pluginName = context.input.subCommands[1];
|
|
58
|
+
}
|
|
59
|
+
else if (!yesFlag) {
|
|
60
|
+
const pluginNameQuestion = {
|
|
61
|
+
type: 'input',
|
|
62
|
+
name: 'pluginName',
|
|
63
|
+
message: 'What should be the name of the plugin:',
|
|
64
|
+
default: pluginName,
|
|
65
|
+
validate: async (input) => {
|
|
66
|
+
const pluginNameValidationResult = await (0, verify_plugin_1.validPluginName)(input);
|
|
67
|
+
if (!pluginNameValidationResult.isValid) {
|
|
68
|
+
return pluginNameValidationResult.message || 'Invalid plugin name';
|
|
69
|
+
}
|
|
70
|
+
return true;
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
const answer = await inquirer.prompt(pluginNameQuestion);
|
|
74
|
+
pluginName = answer.pluginName;
|
|
75
|
+
}
|
|
76
|
+
const pluginDirPath = path.join(pluginParentDirPath, pluginName);
|
|
77
|
+
if (fs.existsSync(pluginDirPath) && !yesFlag) {
|
|
78
|
+
context.print.error(`The directory ${pluginName} already exists`);
|
|
79
|
+
const overwriteQuestion = {
|
|
80
|
+
type: 'confirm',
|
|
81
|
+
name: 'ifOverWrite',
|
|
82
|
+
message: 'Do you want to overwrite it?',
|
|
83
|
+
default: false,
|
|
84
|
+
};
|
|
85
|
+
const answer = await inquirer.prompt(overwriteQuestion);
|
|
86
|
+
if (answer.ifOverWrite) {
|
|
87
|
+
return pluginName;
|
|
88
|
+
}
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
return pluginName;
|
|
92
|
+
}
|
|
93
|
+
async function copyAndUpdateTemplateFiles(context, pluginParentDirPath, pluginName) {
|
|
94
|
+
const pluginDirPath = path.join(pluginParentDirPath, pluginName);
|
|
95
|
+
fs.emptyDirSync(pluginDirPath);
|
|
96
|
+
const pluginType = await promptForPluginType(context);
|
|
97
|
+
const eventHandlers = await promptForEventSubscription(context);
|
|
98
|
+
let srcDirPath = path.join(__dirname, '../../templates/plugin-template');
|
|
99
|
+
if (pluginType === amplify_plugin_type_1.AmplifyPluginType.frontend.toString()) {
|
|
100
|
+
srcDirPath = path.join(__dirname, '../../templates/plugin-template-frontend');
|
|
101
|
+
}
|
|
102
|
+
else if (pluginType === amplify_plugin_type_1.AmplifyPluginType.provider.toString()) {
|
|
103
|
+
srcDirPath = path.join(__dirname, '../../templates/plugin-template-provider');
|
|
104
|
+
}
|
|
105
|
+
fs.copySync(srcDirPath, pluginDirPath);
|
|
106
|
+
updatePackageJson(pluginDirPath, pluginName);
|
|
107
|
+
updateAmplifyPluginJson(pluginDirPath, pluginName, pluginType, eventHandlers);
|
|
108
|
+
updateEventHandlersFolder(pluginDirPath, eventHandlers);
|
|
109
|
+
return pluginDirPath;
|
|
110
|
+
}
|
|
111
|
+
async function promptForPluginType(context) {
|
|
112
|
+
const yesFlag = context.input.options && context.input.options[amplify_cli_core_1.constants.YES];
|
|
113
|
+
if (yesFlag) {
|
|
114
|
+
return amplify_plugin_type_1.AmplifyPluginType.util;
|
|
115
|
+
}
|
|
116
|
+
{
|
|
117
|
+
const pluginTypes = Object.keys(amplify_plugin_type_1.AmplifyPluginType);
|
|
118
|
+
const LEARNMORE = 'Learn more';
|
|
119
|
+
const choices = pluginTypes.concat([LEARNMORE]);
|
|
120
|
+
const answer = await inquirer.prompt({
|
|
121
|
+
type: 'list',
|
|
122
|
+
name: 'selection',
|
|
123
|
+
message: 'Specify the plugin type',
|
|
124
|
+
choices,
|
|
125
|
+
default: amplify_plugin_type_1.AmplifyPluginType.util,
|
|
126
|
+
});
|
|
127
|
+
if (answer.selection === LEARNMORE) {
|
|
128
|
+
displayAmplifyPluginTypesLearnMore(context);
|
|
129
|
+
return await promptForPluginType(context);
|
|
130
|
+
}
|
|
131
|
+
return answer.selection;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
function displayAmplifyPluginTypesLearnMore(context) {
|
|
135
|
+
context.print.green('The Amplify CLI supports these plugin types:');
|
|
136
|
+
context.print.red(amplify_plugin_type_1.AmplifyPluginType.category);
|
|
137
|
+
context.print.green(`${amplify_plugin_type_1.AmplifyPluginType.category} plugins allows the CLI user to add, \
|
|
138
|
+
remove and configure a set of backend resources. They in turn use provider plugins to \
|
|
139
|
+
provision these resources in the cloud.`);
|
|
140
|
+
context.print.red(amplify_plugin_type_1.AmplifyPluginType.provider);
|
|
141
|
+
context.print.green(`${amplify_plugin_type_1.AmplifyPluginType.provider} plugins expose methods for other plugins \
|
|
142
|
+
like the category plugin to provision resources in the cloud. The Amplify CLI prompts the user \
|
|
143
|
+
to select provider plugins to initialize during the execution of the amplify init command \
|
|
144
|
+
(if there are multiple cloud provider plugins present), \
|
|
145
|
+
and then invoke the init method of the selected provider plugins.`);
|
|
146
|
+
context.print.red(amplify_plugin_type_1.AmplifyPluginType.frontend);
|
|
147
|
+
context.print.green(`${amplify_plugin_type_1.AmplifyPluginType.frontend} plugins are responsible for detecting \
|
|
148
|
+
the frontend framework used by the frontend project and handle the frontend project and handle \
|
|
149
|
+
generation of all the configuration files required by the frontend framework.`);
|
|
150
|
+
context.print.red(amplify_plugin_type_1.AmplifyPluginType.util);
|
|
151
|
+
context.print.green(`${amplify_plugin_type_1.AmplifyPluginType.util} plugins are general purpose utility plugins, \
|
|
152
|
+
they provide utility functions for other plugins.`);
|
|
153
|
+
context.print.green('For more information please read - \
|
|
154
|
+
https://docs.amplify.aws/cli/plugins/architecture#plugin-types');
|
|
155
|
+
}
|
|
156
|
+
async function promptForEventSubscription(context) {
|
|
157
|
+
const yesFlag = context.input.options && context.input.options[amplify_cli_core_1.constants.YES];
|
|
158
|
+
const eventHandlers = Object.keys(amplify_cli_core_1.AmplifyEvent);
|
|
159
|
+
if (yesFlag) {
|
|
160
|
+
return eventHandlers;
|
|
161
|
+
}
|
|
162
|
+
{
|
|
163
|
+
const LEARNMORE = 'Learn more';
|
|
164
|
+
const choices = eventHandlers.concat([LEARNMORE]);
|
|
165
|
+
const answer = await inquirer.prompt({
|
|
166
|
+
type: 'checkbox',
|
|
167
|
+
name: 'selections',
|
|
168
|
+
message: 'What Amplify CLI events do you want the plugin to handle?',
|
|
169
|
+
choices,
|
|
170
|
+
default: eventHandlers,
|
|
171
|
+
});
|
|
172
|
+
if (answer.selections.includes(LEARNMORE)) {
|
|
173
|
+
displayAmplifyEventsLearnMore(context);
|
|
174
|
+
return await promptForEventSubscription(context);
|
|
175
|
+
}
|
|
176
|
+
return answer.selections;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
function displayAmplifyEventsLearnMore(context) {
|
|
180
|
+
const indentationStr = (0, display_plugin_platform_1.createIndentation)(INDENTATIONSPACE);
|
|
181
|
+
context.print.green('The Amplify CLI aims to provide a flexible and loosely-coupled \
|
|
182
|
+
pluggable platform for the plugins.');
|
|
183
|
+
context.print.green('To make this possible, \
|
|
184
|
+
the platform broadcasts events for plugins to handle.');
|
|
185
|
+
context.print.green('If a plugin subscribes to an event, its event handler is \
|
|
186
|
+
invoked by the Amplify CLI Core on such event.');
|
|
187
|
+
context.print.green('');
|
|
188
|
+
context.print.green('The Amplify CLI currently broadcasts these events to plugins:');
|
|
189
|
+
context.print.red(amplify_cli_core_1.AmplifyEvent.PreInit);
|
|
190
|
+
context.print.green(`${indentationStr}${amplify_cli_core_1.AmplifyEvent.PreInit} handler is invoked prior to the \
|
|
191
|
+
execution of the amplify init command.`);
|
|
192
|
+
context.print.red(amplify_cli_core_1.AmplifyEvent.PostInit);
|
|
193
|
+
context.print.green(`${indentationStr}${amplify_cli_core_1.AmplifyEvent.PostInit} handler is invoked on the \
|
|
194
|
+
complete execution of the amplify init command.`);
|
|
195
|
+
context.print.red(amplify_cli_core_1.AmplifyEvent.PrePush);
|
|
196
|
+
context.print.green(`${indentationStr}${amplify_cli_core_1.AmplifyEvent.PrePush} handler is invoked prior to the \
|
|
197
|
+
execution of the amplify push command.`);
|
|
198
|
+
context.print.red(amplify_cli_core_1.AmplifyEvent.PostPush);
|
|
199
|
+
context.print.green(`${indentationStr}${amplify_cli_core_1.AmplifyEvent.PostPush} handler is invoked on the \
|
|
200
|
+
complete execution of the amplify push command.`);
|
|
201
|
+
context.print.red(amplify_cli_core_1.AmplifyEvent.PrePull);
|
|
202
|
+
context.print.green(`${indentationStr}${amplify_cli_core_1.AmplifyEvent.PrePull} handler is invoked prior to the \
|
|
203
|
+
execution of the amplify pull command.`);
|
|
204
|
+
context.print.red(amplify_cli_core_1.AmplifyEvent.PostPull);
|
|
205
|
+
context.print.green(`${indentationStr}${amplify_cli_core_1.AmplifyEvent.PostPull} handler is invoked on the \
|
|
206
|
+
complete execution of the amplify pull command.`);
|
|
207
|
+
context.print.warning('This feature is currently under active development, \
|
|
208
|
+
events might be added or removed in future releases.');
|
|
209
|
+
}
|
|
210
|
+
function updatePackageJson(pluginDirPath, pluginName) {
|
|
211
|
+
const filePath = path.join(pluginDirPath, 'package.json');
|
|
212
|
+
const packageJson = amplify_cli_core_1.JSONUtilities.readJson(filePath);
|
|
213
|
+
packageJson.name = pluginName;
|
|
214
|
+
amplify_cli_core_1.JSONUtilities.writeJson(filePath, packageJson);
|
|
215
|
+
}
|
|
216
|
+
function updateAmplifyPluginJson(pluginDirPath, pluginName, pluginType, eventHandlers) {
|
|
217
|
+
const filePath = path.join(pluginDirPath, amplify_cli_core_1.constants.MANIFEST_FILE_NAME);
|
|
218
|
+
const amplifyPluginJson = amplify_cli_core_1.JSONUtilities.readJson(filePath);
|
|
219
|
+
amplifyPluginJson.name = pluginName;
|
|
220
|
+
amplifyPluginJson.type = pluginType;
|
|
221
|
+
amplifyPluginJson.eventHandlers = eventHandlers;
|
|
222
|
+
amplify_cli_core_1.JSONUtilities.writeJson(filePath, amplifyPluginJson);
|
|
223
|
+
}
|
|
224
|
+
function updateEventHandlersFolder(pluginDirPath, eventHandlers) {
|
|
225
|
+
const dirPath = path.join(pluginDirPath, 'event-handlers');
|
|
226
|
+
const fileNames = fs.readdirSync(dirPath);
|
|
227
|
+
fileNames.forEach((fileName) => {
|
|
228
|
+
const eventName = fileName.replace('handle-', '').split('.')[0];
|
|
229
|
+
if (!eventHandlers.includes(eventName)) {
|
|
230
|
+
fs.removeSync(path.join(dirPath, fileName));
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
//# sourceMappingURL=create-new-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-new-plugin.js","sourceR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luginPlatform } from '@aws-amplify/amplify-cli-core';
|
|
3
|
+
export declare function displaySimpleString(context: Context, title: string, contents: string, indentation?: number): void;
|
|
4
|
+
export declare function displayStringArray(context: Context, title: string, contents: string[], indentation?: number): void;
|
|
5
|
+
export declare function displayPluginDirectories(context: Context, pluginPlatform: PluginPlatform): void;
|
|
6
|
+
export declare function displayPrefixes(context: Context, pluginPlatform: PluginPlatform): void;
|
|
7
|
+
export declare function displayScanInterval(context: Context, pluginPlatform: PluginPlatform): void;
|
|
8
|
+
export declare function displayConfiguration(context: Context, pluginPlatform: PluginPlatform): void;
|
|
9
|
+
export declare function displayGeneralInfo(context: Context, pluginPlatform: PluginPlatform): void;
|
|
10
|
+
export declare function displayPluginPlatform(context: Context, pluginPlatform: PluginPlatform): void;
|
|
11
|
+
export declare function displayPluginCollection(context: Context, pluginCollection: PluginCollection, group?: string): void;
|
|
12
|
+
export declare function displayPluginInfoArray(context: Context, pluginInfoArray: Array<PluginInfo>, group?: string): void;
|
|
13
|
+
export declare function displayPluginInfo(context: Context, pluginInfo: PluginInfo, group?: string): void;
|
|
14
|
+
export declare function createIndentation(spaceCount: number): string;
|
|
15
|
+
//# sourceMappingURL=display-plugin-platform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display-plugin-platform.d.ts","sourceRoot":"","sources":["../../src/plugin-helpers/display-plugin-platform.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAI7F,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,SAAI,QAIrG;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,WAAW,SAAI,QAMtG;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,QAIxF;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,QAI/E;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,QAInF;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,QAMpF;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,QAQlF;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,QAIrF;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,SAAK,QAIvG;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,CAAC,UAAU,CAAC,EAAE,KAAK,SAAK,QAItG;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,SAAK,QAUrF;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAa5D"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.displaySimpleString = displaySimpleString;
|
|
7
|
+
exports.displayStringArray = displayStringArray;
|
|
8
|
+
exports.displayPluginDirectories = displayPluginDirectories;
|
|
9
|
+
exports.displayPrefixes = displayPrefixes;
|
|
10
|
+
exports.displayScanInterval = displayScanInterval;
|
|
11
|
+
exports.displayConfiguration = displayConfiguration;
|
|
12
|
+
exports.displayGeneralInfo = displayGeneralInfo;
|
|
13
|
+
exports.displayPluginPlatform = displayPluginPlatform;
|
|
14
|
+
exports.displayPluginCollection = displayPluginCollection;
|
|
15
|
+
exports.displayPluginInfoArray = displayPluginInfoArray;
|
|
16
|
+
exports.displayPluginInfo = displayPluginInfo;
|
|
17
|
+
exports.createIndentation = createIndentation;
|
|
18
|
+
const util_1 = __importDefault(require("util"));
|
|
19
|
+
const defaultIndentationStr = ' ';
|
|
20
|
+
function displaySimpleString(context, title, contents, indentation = 0) {
|
|
21
|
+
const indentationStr = createIndentation(indentation);
|
|
22
|
+
context.print.blue(`${indentationStr}${title}:`);
|
|
23
|
+
context.print.info(`${indentationStr}${defaultIndentationStr}${contents}`);
|
|
24
|
+
}
|
|
25
|
+
function displayStringArray(context, title, contents, indentation = 0) {
|
|
26
|
+
const indentationStr = createIndentation(indentation);
|
|
27
|
+
context.print.blue(`${indentationStr}${title}:`);
|
|
28
|
+
contents.forEach((strItem) => {
|
|
29
|
+
context.print.info(`${indentationStr}${defaultIndentationStr}${strItem}`);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function displayPluginDirectories(context, pluginPlatform) {
|
|
33
|
+
context.print.info('');
|
|
34
|
+
displayStringArray(context, 'Directories where the CLI scans for plugins:', pluginPlatform.pluginDirectories);
|
|
35
|
+
context.print.info('');
|
|
36
|
+
}
|
|
37
|
+
function displayPrefixes(context, pluginPlatform) {
|
|
38
|
+
context.print.info('');
|
|
39
|
+
displayStringArray(context, 'Plugin name prefixes for the CLI to search for:', pluginPlatform.pluginPrefixes);
|
|
40
|
+
context.print.info('');
|
|
41
|
+
}
|
|
42
|
+
function displayScanInterval(context, pluginPlatform) {
|
|
43
|
+
context.print.info('');
|
|
44
|
+
displaySimpleString(context, 'Automatic plugin scan interval in seconds', pluginPlatform.maxScanIntervalInSeconds.toString());
|
|
45
|
+
context.print.info('');
|
|
46
|
+
}
|
|
47
|
+
function displayConfiguration(context, pluginPlatform) {
|
|
48
|
+
context.print.info('');
|
|
49
|
+
displayStringArray(context, 'Directories for plugin scan', pluginPlatform.pluginDirectories);
|
|
50
|
+
displayStringArray(context, 'Prefixes for plugin scan', pluginPlatform.pluginPrefixes);
|
|
51
|
+
displaySimpleString(context, 'Automatic plugin scan interval in seconds', pluginPlatform.maxScanIntervalInSeconds.toString());
|
|
52
|
+
context.print.info('');
|
|
53
|
+
}
|
|
54
|
+
function displayGeneralInfo(context, pluginPlatform) {
|
|
55
|
+
context.print.info('');
|
|
56
|
+
displayStringArray(context, 'Directories for plugin scan', pluginPlatform.pluginDirectories);
|
|
57
|
+
displayStringArray(context, 'Prefixes for plugin scan', pluginPlatform.pluginPrefixes);
|
|
58
|
+
displayStringArray(context, 'Manually added plugins', pluginPlatform.userAddedLocations);
|
|
59
|
+
displaySimpleString(context, 'Automatic plugin scan interval in seconds', pluginPlatform.maxScanIntervalInSeconds.toString());
|
|
60
|
+
displaySimpleString(context, 'Last scan time stamp', pluginPlatform.lastScanTime.toString());
|
|
61
|
+
context.print.info('');
|
|
62
|
+
}
|
|
63
|
+
function displayPluginPlatform(context, pluginPlatform) {
|
|
64
|
+
displayGeneralInfo(context, pluginPlatform);
|
|
65
|
+
displayPluginCollection(context, pluginPlatform.plugins, 'active plugin');
|
|
66
|
+
displayPluginCollection(context, pluginPlatform.excluded, 'excluded plugin');
|
|
67
|
+
}
|
|
68
|
+
function displayPluginCollection(context, pluginCollection, group = '') {
|
|
69
|
+
Object.keys(pluginCollection).forEach((key) => {
|
|
70
|
+
displayPluginInfoArray(context, pluginCollection[key], group);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function displayPluginInfoArray(context, pluginInfoArray, group = '') {
|
|
74
|
+
pluginInfoArray.forEach((pluginInfo) => {
|
|
75
|
+
displayPluginInfo(context, pluginInfo, group);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function displayPluginInfo(context, pluginInfo, group = '') {
|
|
79
|
+
const { manifest, packageName, packageVersion } = pluginInfo;
|
|
80
|
+
const title = `${manifest.name}: ${packageName}@${packageVersion}`;
|
|
81
|
+
context.print.info('');
|
|
82
|
+
if (group.length > 0) {
|
|
83
|
+
context.print.red(group);
|
|
84
|
+
}
|
|
85
|
+
context.print.blue(title);
|
|
86
|
+
context.print.info(util_1.default.inspect(pluginInfo, undefined, Infinity));
|
|
87
|
+
context.print.info('');
|
|
88
|
+
}
|
|
89
|
+
function createIndentation(spaceCount) {
|
|
90
|
+
if (spaceCount === 0) {
|
|
91
|
+
return '';
|
|
92
|
+
}
|
|
93
|
+
let charArray = [' '];
|
|
94
|
+
while (charArray.length * 2 <= spaceCount) {
|
|
95
|
+
charArray = charArray.concat(charArray);
|
|
96
|
+
}
|
|
97
|
+
if (charArray.length < spaceCount) {
|
|
98
|
+
charArray = charArray.concat(charArray.slice(0, spaceCount - charArray.length));
|
|
99
|
+
}
|
|
100
|
+
return charArray.join('');
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=display-plugin-platform.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display-plugin-platform.js","sourceRoot":"","sources":["../../src/plugin-helpers/display-plugin-platform.ts"],"names":[],"mappings":";;;;;AAMA,kDAIC;AAED,gDAMC;AAED,4DAIC;AAED,0CAIC;AAED,kDAIC;AAED,oDAMC;AAED,gDAQC;AAED,sDAIC;AAED,0DAIC;AAED,wDAIC;AAED,8CAUC;AAED,8CAaC;AAnGD,gDAAwB;AAIxB,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAEnC,SAAgB,mBAAmB,CAAC,OAAgB,EAAE,KAAa,EAAE,QAAgB,EAAE,WAAW,GAAG,CAAC;IACpG,MAAM,cAAc,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAC;IACtD,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,cAAc,GAAG,KAAK,GAAG,CAAC,CAAC;IACjD,OAAO,CAAC,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,CAAC,CAAC,CAAC;IAClE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzB,CAAC;AAED,SAAgB,iBAAiB,CAAC,UAAkB;IAClD,IAAI,UAAU,KAAK,CAAC,EAAE,CAAC;QACrB,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,IAAI,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC;IAEtB,OAAO,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,UAAU,EAAE,CAAC;QAC1C,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC1C,CAAC;IACD,IAAI,SAAS,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;QAClC,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IAClF,CAAC;IACD,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PluginPlatform } from '@aws-amplify/amplify-cli-core';
|
|
2
|
+
export type PluginDescription = {
|
|
3
|
+
name: string;
|
|
4
|
+
type: string;
|
|
5
|
+
packageName: string;
|
|
6
|
+
packageVersion?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function checkPlatformHealth(pluginPlatform: PluginPlatform): Promise<boolean>;
|
|
9
|
+
export declare function getOfficialPlugins(): {
|
|
10
|
+
[key: string]: PluginDescription | Array<PluginDescription>;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=platform-health-check.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-health-check.d.ts","sourceRoot":"","sources":["../../src/plugin-helpers/platform-health-check.ts"],"names":[],"mappings":"AAKA,OAAO,EAAqC,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAMlG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAOF,wBAAsB,mBAAmB,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAiE1F;AAeD,wBAAgB,kBAAkB,IAAI;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAA;CAAE,CAwBpG"}
|