angular / angular/angular-cli

No way to access compilation output files

オープン
#27,386 コメント 10 件 リアクション 24 件 担当者 0 名 GitHub で見る
angular/build:application area: @angular/build feature feature: under consideration freq1: low
主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
14時間 23分
マージ済み PR(30日)
162

説明

### Command

build, serve

### Description

I have an esbuild plugin that is resposible to collect outputFiles after compilation (using `onEnd` hook with `result.outputFiles`).

When using application builder (esbuild) with custom plugins there is no way to access full list of outputFiles, only those emitted by `main` entrypoint compilation. There is no way to access additional files emited by angular builder, such as `polyfills`, assets, styles etc.

Previously, with using webpack plugin, i was able to get full list of outputFiles by using `processAssets` compilation hook.

I need to list emited files, as this is only way to get full names with filenames hash.

MY point is to build something like manifest of compilation result output files.

### Describe the solution you'd like

I would like to be able to access all compilation files by esbuild plugin.

### Describe alternatives you've considered

An alternative could be to access output files as an result of builder output, currently `build` command only returns `{success: true}` without information about output files.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず application builder の build と serve のパス、および esbuild plugin の onEnd hook から調査を始め、現在 result.outputFiles がどのように公開されているかを確認します。polyfills、assets、styles を含む完全な出力セット、または build command の結果が、ハッシュ付きのファイル名をどのように公開すべきかを判断します。完了条件は、plugin または builder の利用側が manifest 用にすべてのコンパイル出力ファイルへアクセスできることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
build-system
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。