UNPKG

gen-jhipster

Version:

VHipster - Spring Boot + Angular/React/Vue in one handy generator

85 lines (84 loc) 4.94 kB
/** * Copyright 2013-2026 the original author or authors from the JHipster project. * * This file is part of the JHipster project, see https://www.jhipster.tech/ * for more information. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { ExportGeneratorOptionsFromCommand, ExportStoragePropertiesFromCommand, ParsableCommand } from '../../lib/command/types.ts'; import BaseGenerator from '../base/index.ts'; import type { GenericTask } from '../base-core/types.ts'; import type { Application as SimpleApplication } from '../base-simple-application/types.d.ts'; import type { Tasks as WorkspacesTasks } from './tasks.ts'; import type { Config as BaseWorkspacesConfig, Deployment as BaseDeployment, Features as BaseWorkspacesFeatures, Options as BaseWorkspacesOptions, Source as BaseWorkspacesSource, WorkspacesApplication } from './types.ts'; /** * This is the base class for a generator that generates entities. */ export default abstract class BaseWorkspacesGenerator<Deployment extends BaseDeployment = BaseDeployment, Application extends SimpleApplication = WorkspacesApplication, Config extends BaseWorkspacesConfig = BaseWorkspacesConfig, Options extends BaseWorkspacesOptions = BaseWorkspacesOptions, Source extends BaseWorkspacesSource = BaseWorkspacesSource, Features extends BaseWorkspacesFeatures = BaseWorkspacesFeatures, Tasks extends WorkspacesTasks<Deployment, Source, Application> = WorkspacesTasks<Deployment, Source, Application>> extends BaseGenerator<Config, Options, Source, Features, Tasks> { #private; static readonly PROMPTING_WORKSPACES: string; static readonly CONFIGURING_WORKSPACES: string; static readonly LOADING_WORKSPACES: string; static readonly PREPARING_WORKSPACES: string; constructor(args?: string[], options?: Options, features?: Features); get jhipsterConfigWithDefaults(): { appsFolders: string[]; directoryPath: "../"; clusteredDbApps: string[]; serviceDiscoveryType: "consul"; dockerRepositoryName: ""; dockerPushCommand: "docker push"; kubernetesNamespace: "default"; kubernetesServiceType: string; kubernetesUseDynamicStorage: false; kubernetesStorageClassName: ""; ingressDomain: ""; monitoring: string; istio: false; ingressType: string; gatewayType?: undefined; apisixGateway?: undefined; } & Config; get context(): {}; get appsFolders(): string[]; get directoryPath(): string; get workspacesRoot(): string; get promptingWorkspaces(): {}; get configuringWorkspaces(): {}; get loadingWorkspaces(): {}; get preparingWorkspaces(): {}; workspacePath(...dest: string[]): string; private resolveApplicationFolders; setWorkspacesRoot(root: string): void; bootstrapApplications(): Promise<void>; getArgsForPriority(priorityName: string): any; /** * Utility method to get typed objects for autocomplete. */ asPromptingWorkspacesTaskGroup<const T extends Record<string, GenericTask<this, Tasks['PromptingWorkspacesTaskParam']>>>(taskGroup: T): Record<keyof T, GenericTask<any, Tasks['PromptingWorkspacesTaskParam']>>; /** * Utility method to get typed objects for autocomplete. */ asConfiguringWorkspacesTaskGroup<const T extends Record<string, GenericTask<this, Tasks['ConfiguringWorkspacesTaskParam']>>>(taskGroup: T): Record<keyof T, GenericTask<any, Tasks['ConfiguringWorkspacesTaskParam']>>; /** * Utility method to get typed objects for autocomplete. */ asLoadingWorkspacesTaskGroup<const T extends Record<string, GenericTask<this, Tasks['LoadingWorkspacesTaskParam']>>>(taskGroup: T): Record<keyof T, GenericTask<any, Tasks['LoadingWorkspacesTaskParam']>>; /** * Utility method to get typed objects for autocomplete. */ asPreparingWorkspacesTaskGroup<const T extends Record<string, GenericTask<this, Tasks['PreparingWorkspacesTaskParam']>>>(taskGroup: T): Record<keyof T, GenericTask<any, Tasks['PreparingWorkspacesTaskParam']>>; } export declare class CommandBaseWorkspacesGenerator<Command extends ParsableCommand, AdditionalOptions = unknown> extends BaseWorkspacesGenerator<BaseDeployment, WorkspacesApplication, BaseWorkspacesConfig & ExportStoragePropertiesFromCommand<Command>, BaseWorkspacesOptions & ExportGeneratorOptionsFromCommand<Command> & AdditionalOptions> { }