Skip SCSS and Test Files in Angular with ng generate
Steps to Skip Test Files and SCSS Files for Components
1. Skip Test Files (.spec.ts)
.spec.ts){
"projects": {
"your-project-name": {
"schematics": {
"@schematics/angular:component": {
"skipTests": true,
"styleExt": "none"
},
"@schematics/angular:directive": {
"skipTests": true,
"styleExt": "none"
},
"@schematics/angular:service": {
"skipTests": true
},
"@schematics/angular:pipe": {
"skipTests": true
},
"@schematics/angular:class": {
"skipTests": true
},
"@schematics/angular:guard": {
"skipTests": true
},
"@schematics/angular:resolver": {
"skipTests": true
}
}
}
}
}Example
Conclusion
PreviousCreating an Angular Project Using npx Without Installing It GloballyNextWhen JavaScript's Set Falls Short for Ensuring Uniqueness in Arrays of Objects
Last updated