UNPKG

@nxrocks/nx-ktor

Version:

Nx plugin to generate, run, package, build (and more) Ktor projects inside your Nx workspace

36 lines (35 loc) 1.32 kB
import { NormalizedSchema } from '../generators/project/schema'; import { BuilderCommandAliasType } from '@nxrocks/common-jvm'; import { ProjectConfiguration } from '@nx/devkit'; export declare const DEFAULT_KTOR_INITIALIZR_URL = "https://start.ktor.io"; export interface KtorFeature { name: string; description?: string; } export declare function runKtorPluginCommand(commandAlias: BuilderCommandAliasType, params: string[], options?: { cwd: string; ignoreWrapper?: boolean; useLegacyWrapper?: boolean; runFromParentModule?: boolean; }): { success: boolean; }; export declare function buildKtorDownloadUrl(options: NormalizedSchema): { url: string; params: { settings: { project_name: string; company_website: string; ktor_version: string; kotlin_version: "string"; build_system: "MAVEN" | "GRADLE" | "GRADLE_KTS"; engine: "NETTY" | "JETTY" | "CIO" | "TOMCAT"; }; features: string[]; configurationOption: "YAML" | "HOCON" | "CODE"; addDefaultRoutes: boolean; addWrapper: boolean; }; }; export declare function isKtorProject(project: ProjectConfiguration): boolean; export declare function fetchKtorFeatures(options: NormalizedSchema): Promise<KtorFeature[]>;