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.
44 lines (43 loc) • 1.19 kB
TypeScript
export declare const AVAILABLE_PORTS: number[];
/**
* Utility to start the development server without using the actual CLI.
*/
export declare class DevServer {
#private;
private _clean;
/**
* Constructor for the DevServer
* @param root Root of project (where the app.config.(json|js|ts) file is located). Default is process.cwd().
*/
constructor(root?: string);
/** Returns used hostname */
get host(): string;
/** Returns used port */
get port(): number;
/**
* Starts the server.
* @param options Options for the server
*/
start(options?: {
/**
* Whether the CLI output should be displayed or not.
* @default false
*/
showOutput?: boolean;
/**
* The port where the dev server should run.
* If not specified a random port will be used.
*/
port?: number;
/**
* The hostname that the server should be bound to.
* @default 127.0.0.1
*/
host?: string;
}): Promise<{
platformUrl: string;
localUrl: string;
}>;
/** Stops the server. */
stop(): Promise<void>;
}