Skip to content

BabelRuntime

@tsed/cli

Usage

typescript
import { BabelRuntime } from "@tsed/cli";

See /packages/cli/src/runtimes/supports/BabelRuntime.ts.

Overview

ts
class BabelRuntime extends NodeRuntime {
    readonly name: string;
    readonly order: number;
    isCompiled(): boolean;
    files(): string[];
    startDev(main: string): string;
    startProd(args: string): string;
    compile(src: string, out: string): string;
    devDependencies(): {
        "@babel/cli": string;
        "@babel/core": string;
        "@babel/node": string;
        "@babel/plugin-proposal-class-properties": string;
        "@babel/plugin-proposal-decorators": string;
        "@babel/preset-env": string;
        "@babel/preset-typescript": string;
        "@babel/plugin-proposal-object-rest-spread": string;
        "babel-plugin-transform-typescript-metadata": string;
        "babel-watch": string;
        typescript: string;
    };
}

readonly name

ts
readonly name: string;

readonly order

ts
readonly order: number;

isCompiled

ts
isCompiled(): boolean;

files

ts
files(): string[];

startDev

ts
startDev(main: string): string;

startProd

ts
startProd(args: string): string;

compile

ts
compile(src: string, out: string): string;

devDependencies

ts
devDependencies(): {
     "@babel/cli": string;
     "@babel/core": string;
     "@babel/node": string;
     "@babel/plugin-proposal-class-properties": string;
     "@babel/plugin-proposal-decorators": string;
     "@babel/preset-env": string;
     "@babel/preset-typescript": string;
     "@babel/plugin-proposal-object-rest-spread": string;
     "babel-plugin-transform-typescript-metadata": string;
     "babel-watch": string;
     typescript: string;
 };

Released under the MIT License.