Skip to content

different xi18n console output in CLI v7 and v8 #14373

Closed
@elvisbegovic

Description

@elvisbegovic

🐞 Bug report

- [x] xi18n

Is this a regression?

It is not regression but maybe unintentional addition in cli v8 on console message output compare to previous versions when build/extract i18n file. On CLI v.7.3.9 we have different output.

Description & minimal reproduction

To test on CLI v8, try:

npm uninstall -g @angular/cli && npm install -g @angular/cli@next
ng new aaa --skipTests --routing --style css && cd aaa && ng xi18n

Consolle will output :

Hash: eddaec2e6b64a4c7999b
Time: 27337ms
Built at: 2019-05-08 10:14:18
                                         Asset      Size     Chunks             Chunk Names
                  main.61f494da7a34faabacc0.js  4.01 KiB       main  [emitted]  main
nobody_m-original-min.97df9d51802284b1881a.jpg  1.93 KiB             [emitted]
             polyfills.1222be03a977566afb8d.js  4.05 KiB  polyfills  [emitted]  polyfills
Entrypoint main = main.61f494da7a34faabacc0.js
Entrypoint polyfills = polyfills.1222be03a977566afb8d.js
chunk {main} main.61f494da7a34faabacc0.js (main) 28 bytes [entry] [rendered]
chunk {polyfills} polyfills.1222be03a977566afb8d.js (polyfills) 28 bytes [entry] [rendered]

On CLI <v.7.3.9 try :

npm uninstall -g @angular/cli && npm install -g @angular/cli
ng new bbb --skipTests --routing --style css && cd bbb && ng xi18n

The output is :
xi18n

🌍 Your Environment


Angular CLI: 8.0.0-rc.3
Node: 12.2.0
OS: win32 x64
Angular: 8.0.0-rc.3
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.800.0-rc.3
@angular-devkit/build-angular     0.800.0-rc.3
@angular-devkit/build-optimizer   0.800.0-rc.3
@angular-devkit/build-webpack     0.800.0-rc.3
@angular-devkit/core              8.0.0-rc.3
@angular-devkit/schematics        8.0.0-rc.3
@angular/cdk                      8.0.0-rc.0
@angular/http                     8.0.0-beta.10
@angular/material                 8.0.0-rc.0
@angular/pwa                      0.800.0-rc.3
@ngtools/webpack                  8.0.0-rc.3
@schematics/angular               8.0.0-rc.3
@schematics/update                0.800.0-rc.3
rxjs                              6.5.1
typescript                        3.4.5
webpack                           4.30.0

Anything else relevant?
I think in v8 we should only keep Hash,Time,Built at informations, and not print Asset,Size,Chunks, Chunk Names

Hash: eddaec2e6b64a4c7999b
Time: 27337ms
Built at: 2019-05-08 10:14:18

cc @filipesilva

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions