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

AngularJS 2 (Updated to 4.2.0) Mean Stack application which uses Angular2, Gulp, Express, Node, MongoDB (Mongoose) with Repository Pattern Business Layer
MIT License
196 stars 86 forks source link

No Typescript compilation error for Server #24

Closed linvi closed 7 years ago

linvi commented 7 years ago

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 7 years ago

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.');
    });
moizKachwala commented 7 years ago

great, you can raise the pull request