-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(@angular-devkit/build-angular): add JSON build logs when using t…
…he application builder This change implements the capability to display JSON build logs in the terminal instead of a format readable by humans. This is particularly useful for hosting providers, as it allows them to effortlessly access the necessary information without having to parse the JSON configuration. To enable this output, set the `NG_BUILD_LOGS_JSON=1` environment variable. Additionally, warnings, errors, and logs are automatically colorized when the standard output is a WritableStream. You can disable the colors by using the `FORCE_COLOR=0` environment variable. ``` FORCE_COLOR=0 NG_BUILD_LOGS_JSON=1 ng b { "errors": [], "warnings": [], "outputPaths": { "root": "file:///usr/local/test/home//test-project/dist/test-project", "browser": "file:///usr/local/test/home//test-project/dist/test-project/browser", "server": "file:///usr/local/test/home//test-project/dist/test-project/server" }, "prerenderedRoutes": [ "/" ] } ``` ``` NG_BUILD_LOGS_JSON=1 ng b { "errors": [], "warnings": [], "outputPaths": { "root": "file:///usr/local/test/home//test-project/dist/test-project", "browser": "file:///usr/local/test/home//test-project/dist/test-project/browser", "server": "file:///usr/local/test/home//test-project/dist/test-project/server" }, "prerenderedRoutes": [ "/" ] } ```
- Loading branch information
1 parent
476a68d
commit f4f5356
Showing
9 changed files
with
145 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.