UNPKG

dt-app

Version:

The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.

29 lines (28 loc) 1.29 kB
import { type CwdOption } from '../utils/file-operations'; import type { PackageJson } from '../interfaces'; /** Generates a function file name out of the function name */ export declare function nameToFunctionFileName( /** The name of the function to be converted into a file name. */ name: string): string; /** Generates a function test file name out of the function name */ export declare function nameToFunctionTestFileName( /** The name of the function to be converted into a file name. */ name: string): string; /** Generates an url path out of the function file name */ export declare function functionNameToUrlPath(fileName: string): string; /** Check if a function with the name already exists */ export declare function checkIfFunctionExists(options: { /** Relative path where the functions are located */ functionsFolder: string; /** The file name */ name: string; } & CwdOption): boolean; /** Check if a function with the name already exists */ export declare function checkIfFunctionTestExists(options: { /** Relative path where the functions are located */ functionsFolder: string; /** The file name */ name: string; } & CwdOption): boolean; /** Get package json content. */ export declare function getPackageJson(options: CwdOption): PackageJson;