You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding the --nospec flag to all generate commands, wouldnt it make sense to add it to ng new aswell, just like it works with ng new sassy-project --style=sass?
ng new notests --nospec would then omit the generation of the e2e folder, karma.conf.js, protactor.conf.js, src/test.ts and src/app/app.component.spec.ts.
Additionally it could set a flag in the angular-cli.json so that all generatecommands know to not generate a spec file.
Activity
Brocco commentedon Sep 22, 2016
I agree with this as well, but would also expand it to not just services, but also directives, pipes, classes.
filipesilva commentedon Sep 22, 2016
All for it myself.
niklas-dahl commentedon Sep 23, 2016
When adding the
--nospecflag to all generate commands, wouldnt it make sense to add it tong newaswell, just like it works withng new sassy-project --style=sass?ng new notests --nospecwould then omit the generation of thee2efolder,karma.conf.js,protactor.conf.js,src/test.tsandsrc/app/app.component.spec.ts.Additionally it could set a flag in the
angular-cli.jsonso that allgeneratecommands know to not generate a spec file.Could look like this:
"defaults": { "styleExt": "scss", "prefixInterfaces": false, "generateSpecs": false }I know I am a terrible person for asking for this, but sometimes the test stuff just gets in the way.
feature(blueprints): add spec/no-spec flags to all blueprints
feature(blueprints): add spec/no-spec flags to all blueprints
feature(blueprints): add spec/no-spec flags to all blueprints
feature(blueprints): add spec/no-spec flags to all blueprints (#2382)
feature(blueprints): add spec/no-spec flags to all blueprints (angula…
feature(blueprints): add spec/no-spec flags to all blueprints (angula…
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
fix(@nguniversal/common): add Window stubs to Engine (Clover)
feature(blueprints): add spec/no-spec flags to all blueprints (angula…