antonybudianto / angular-starter

:star: Gulp Angular Starter using TypeScript (Updated to 4.4.3)

Home Page:https://antonybudianto.github.io/angular-starter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TsLint in gulp process

talmog opened this issue · comments

Thank you for this repo, it is great!

I would like to have tslint run on every ts change and log it to the console warning after every save. right now if I add 'ts-lint' to serve it errors out and will not run the server.
Could you help with that please?
Thank you!

Hello, thanks for trying the starter!
You could add tslint to the compileTs pipe:

function compileTs(files) {
    var res = gulp.src(files, {
            base: '.'
        })
        .pipe(tslint())
        .pipe(tslint.report('prose', {
            summarizeFailureOutput: true
        }))
...

I'll be adding this soon to master 😃