I want to list all .ts files from partucar folder and present them as separate tasks using gulp.
So, I have a folder with these files:
/src
- app.ts
- items.ts
Now I use this command to build all these files and send them to a specific destination:
var gulp = reguire('gulp');
var ts = require('gulp-typescript');
var tsProject = ts.createProject('tsconfig.json');
gulp.task('build:ts', () => {
return tsProject.src().pipe(tsProject())
.js.pipe(gulp.dest('./dist'));
});
Thus, it gets all the .tsfiles from ./srcand adds them to the folder ./distas compiled.js files
What I want to do:
- list of all .ts files in my task group
- right click on a specific task (file)
- build: ts only for this particular ts file
- compile and add this particular file to. / dist