angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Allow aot compile for specific app in multiple app environment

Open abidmix opened this issue 8 years ago • 2 comments

Versions

Angular CLI: 1.7.0 Node: 8.9.4 OS: win32 x64 Angular: 4.4.4 ... animations, common, compiler, compiler-cli, core, forms ... http, platform-browser, platform-browser-dynamic ... platform-server, router, tsc-wrapped, upgrade

@angular/cli: 1.7.0 @angular/language-service: 5.2.0 @angular/material: 2.0.0-beta.12 @angular-devkit/build-optimizer: 0.3.1 @angular-devkit/core: 0.3.1 @angular-devkit/schematics: 0.3.1 @ngtools/json-schema: 1.2.0 @ngtools/webpack: 1.10.0 @schematics/angular: 0.3.1 @schematics/package-update: 0.3.1 typescript: 2.3.4 webpack-dev-server: 2.11.1 webpack-merge: 4.1.1 webpack: 3.11.0

Repro steps

I have multiple apps in one src directory and would want want to aot compile individually each app.

image

Observed behavior

The whole src folder gets compiled using ng build -app=authentication --aot Other apps I do not need are also being included. These apps are not related and have not dependencies on each other yet they are still compiled. I do not want to create a separate directory for each app and have multiple angularcli.json files

Desired behavior

I would like to specifically compile an app in aot mode the same way I can do in JIT mode without compiling the whole directory.

Could advise on the best way to do this.

abidmix avatar Feb 23 '18 18:02 abidmix

Heya, this issue is better reported in https://github.com/angular/angular instead. The behaviour you're describing is part of how ngc itself works. Angular CLI just uses ngc and thus gets the same behaviour transitively.

filipesilva avatar Feb 26 '18 09:02 filipesilva

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.