@tykoned/tykon
    Preparing search index...

    Function generateKotlinProject

    • Exports a Kotlin project structure with Gradle build files and Kotlin source files generated from TypeScript definitions.

      Parameters

      • project: Project

        The TypeScript project containing the source files to convert.

      • groupId: string

        The group ID for the Kotlin project, typically in reverse domain name format (e.g., com.example).

      • description: string

        A brief description of the Kotlin project.

      • npmPackageName: string

        The name of the npm package, which will be used as the project name.

      • npmPackageVersion: string

        The version of the npm package, which will also be used as the project version.

      • kotlinVersion: string = '2.2.10'

        The version of Kotlin to use in the project. Defaults to '2.1.21'.

      • outputDir: string = npmPackageName

        The directory where the Kotlin project will be generated. Defaults to the npm package name.

      • dependencies: string[] = []

        An array of dependencies to include in the Gradle build file. Each dependency should be a string in the format group:name:version. You must include the quotes if you are citing a maven dependency, or you can use the npm(npmPackageName, npmPackageVersion) format for npm packages.

      • imports: string[] = []

        An array of Kotlin imports to include in the generated source files.

      • gradleProperties: Record<string, string> = {}
      • rootDir: string = ...

        The root directory to search for files

      Returns void