moizKachwala/Angular2-express-mongoose-gulp-node-typescript

No Typescript compilation error for Server

linvi opened this issue · 2 comments

linvi commented

Hello,

Thank you very much for this seed, I really like it.
I have an issue though with Typescript compilation.

TSLint is capable of identifying errors in the Client project.
But when creating an error in the Server project Typescript compiles fine and continues.

I will try to have a look into it but it would be great if you could.

Thanks and continue your good work.

Linvi

linvi commented

I finally changed

gulp.watch(["server/src/**/*.ts"], ['compile']).on('change', function (e) {
        console.log('TypeScript file ' + e.path + ' has been changed. Compiling.');
    });

into

gulp.watch(["server/src/**/*.ts"], ['build:server']).on('change', function (e) {
        console.log('TypeScript file ' + e.path + ' has been changed. Compiling.');
    });

great, you can raise the pull request