import {buildHelper as helper} from "../Container";
const gulp = require("gulp");
const ts = require("gulp-typescript");

export default function Typescript() {
    let settings = helper.getSettings(),
        tsProject = ts.createProject("tsconfig.json");

    return gulp.src(settings.scripts).pipe(tsProject()).js.pipe(gulp.dest(settings.distribution));
}
import {buildHelper as helper} from "../Container";
const gulp = require("gulp");
const ts = require("gulp-typescript");

export default function Typescript() {
    let settings = helper.getSettings(),
        tsProject = ts.createProject("tsconfig.json");

    return gulp.src(settings.scripts)
        .pipe(tsProject())
        .on("error", function (error) {
            process.exit(1);
        })
        .js.pipe(gulp.dest(settings.distribution));
}
Exit typescript with error code 1 if fails
Exit typescript with error code 1 if fails
