'use strict';

const gulp = require('gulp');
const ts = require('gulp-typescript');
const rename = require('gulp-rename');
const bs = require('browser-sync');

// Create TS project for incremental build and load TS configuration
const tsProject = ts.createProject('./tsconfig.json');

function transpileTS() {
  return tsProject.src()
    .pipe(ts(tsProject))
    .pipe(rename({ dirname: '' }))
    .pipe(gulp.dest('./dist'))
    .pipe(bs.get('server').stream())
}

gulp.task('transpile:ts', transpileTS);

gulp.task('transpile', gulp.parallel('transpile:ts'));

@@ -282,113 +282,359 @@
 );%0A%0A
-function transpileTS() %7B%0A  return tsProject.src()%0A    .pipe(ts(tsProject))%0A    .pipe(rename(%7B dirname: ''
+/**%0A * @name   transpileTS%0A * @desc   Tanspile TypeScript file and remove %60src%60 base folder from directory%0A * @return %7BStream%7D%0A */%0Afunction transpileTS() %7B%0A  return tsProject.src()%0A    .pipe(ts(tsProject))%0A    .pipe(rename((path) =%3E %7B%0A      path.dirname = path.dirname%0A        .split('/')%0A        .splice(1)%0A        .join('/');%0A%0A      return path;%0A   
  %7D))

update basedir