I know it\'s kind of a bad practice, but bear with me:
I\'m using Angular-CLI, particularly ng g to generate all of my classes. However
you can add --skipTests=true|false if true it wont generate any spec.ts
example : ng g component componentName --skipTests=true
this line wont generate any spec.ts files
EDIT:
Note: As of angular 7 this command doesn't work, even though this command is mentioned on the official website of angular. Here: https://angular.io/cli/generate#component