UNPKG

spanwright

Version:

CLI tool to generate Cloud Spanner E2E testing framework projects with Go database tools and Playwright browser automation

76 lines 3.25 kB
export declare const APP_NAME = "Spanwright"; export declare const APP_DESCRIPTION = "Cloud Spanner E2E Testing Framework Generator"; export declare const GITHUB_URL = "https://github.com/nu0ma/spanwright"; export declare const CLI_FLAGS: { readonly VERSION: readonly ["--version", "-v"]; readonly HELP: readonly ["--help", "-h"]; readonly NON_INTERACTIVE: "--non-interactive"; }; export declare const ENV_VARS: { readonly CI: "CI"; readonly NON_INTERACTIVE: "SPANWRIGHT_NON_INTERACTIVE"; readonly DB_COUNT: "SPANWRIGHT_DB_COUNT"; readonly PRIMARY_DB_NAME: "SPANWRIGHT_PRIMARY_DB_NAME"; readonly PRIMARY_SCHEMA_PATH: "SPANWRIGHT_PRIMARY_SCHEMA_PATH"; readonly SECONDARY_DB_NAME: "SPANWRIGHT_SECONDARY_DB_NAME"; readonly SECONDARY_SCHEMA_PATH: "SPANWRIGHT_SECONDARY_SCHEMA_PATH"; }; export declare const DEFAULTS: { readonly DB_COUNT: "1"; readonly PRIMARY_DB_NAME: "primary-db"; readonly PRIMARY_SCHEMA_PATH: "./schema"; readonly SECONDARY_DB_NAME: "secondary-db"; readonly SECONDARY_SCHEMA_PATH: "./schema2"; readonly PROJECT_ID: "test-project"; readonly INSTANCE_ID: "test-instance"; readonly DOCKER_IMAGE: "gcr.io/cloud-spanner-emulator/emulator"; readonly CONTAINER_NAME: "spanner-emulator"; readonly SPANNER_PORT: "9010"; readonly ADMIN_PORT: "9020"; readonly STARTUP_WAIT: "20"; }; export declare const FILE_PATTERNS: { readonly GO_EXTENSION: ".go"; readonly PACKAGE_JSON_TEMPLATE: "_package.json"; readonly GITIGNORE_TEMPLATE: "_gitignore"; readonly GO_MOD_TEMPLATE: "go.mod.template"; readonly PACKAGE_JSON: "package.json"; readonly GITIGNORE: ".gitignore"; readonly GO_MOD: "go.mod"; readonly ENV: ".env"; }; export declare const TEMPLATE_VARS: { readonly PROJECT_NAME: "PROJECT_NAME"; }; export declare const VALIDATION: { readonly DB_COUNTS: readonly ["1", "2"]; readonly FLAG_PREFIX: "-"; }; export declare const VALIDATION_PATTERNS: { readonly PROJECT_NAME: RegExp; readonly DATABASE_NAME: RegExp; readonly SCHEMA_PATH: RegExp; readonly GENERIC_IDENTIFIER: RegExp; }; export declare const MESSAGES: { readonly ERRORS: { readonly NO_PROJECT_NAME: "❌ Please specify a project name"; readonly DIRECTORY_EXISTS: (name: string) => string; readonly INVALID_DB_COUNT: "❌ Please enter 1 or 2"; readonly ENV_DB_COUNT_INVALID: "❌ SPANWRIGHT_DB_COUNT must be 1 or 2"; }; readonly INFO: { readonly STARTING_SETUP: "🚀 Starting Spanner E2E Test Framework setup"; readonly CREATING_DIRECTORY: "📁 Creating project directory..."; readonly COPYING_TEMPLATES: "📦 Copying template files..."; readonly CONFIGURING_GO: "🔧 Configuring Go modules..."; readonly CREATING_ENV: "⚙️ Creating environment configuration file..."; readonly REMOVING_FILES: "🗑️ Removing unnecessary files (Single DB configuration)..."; readonly COMPLETED: "✅ Project creation completed!"; }; readonly USAGE: { readonly BASIC: "Usage: npx spanwright my-project"; readonly HELP_SUGGESTION: "Try \"spanwright --help\" for more information."; }; }; //# sourceMappingURL=constants.d.ts.map