x)Angular CLI: 1.5.0
Node: 9.1.0
OS: darwin x64
Angular: 5.0.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cli: 1.5.0
@angular-devkit/build-optimizer: 0.0.32
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.35
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0
@schematics/angular: 0.1.1
typescript: 2.4.2
webpack: 3.8.1
Running
ng new testapp --skip-tests
would still see the e2e files and config files of karma and protractor
N/A
It shouldn't include the test files like these, should it?
N/A
That's a potential debate, but for what you're looking for, consider using this:
ng new testapp --minimal
This will create a new app with no test structures (spec files or dependencies) and will also inline both styles and templates.
That's what I used instead. Thanks!
But on the other hand, saw some commit history contains the --skip-e2e flag, tried and also didn't work. So is there no way to exclude e2e tests right now?
We would love to see also a skip-e2e option, as we are rolling our own. What was the reason removing the already existing implementation?
Marking as duplicate of https://github.com/angular/angular-cli/issues/9160 just because that one has a bit more traction.
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._
Most helpful comment
We would love to see also a
skip-e2eoption, as we are rolling our own. What was the reason removing the already existing implementation?