Throw an error if client builds retain references to `*.server.ts` files
オープン
angular/build:application
area: @angular-devkit/build-angular
feature
feature: under consideration
- 主要言語
- TypeScript
- スター
- 27k
- フォーク
- 11.8k
- 平均マージ
- 14時間 23分
- マージ済み PR(30日)
- 162
説明
### Command
build
### Description
When SSR is enabled in an Angular project, there are a few `.server.ts` files produced (e.g. `app.config.server.ts`). The `.server.ts` suffix is also used by different applications as a way to structure and separate client and server code.
The proposal is to update the build pipeline to throw an error in case files with `.server.ts` suffix are present in the final client build output.
// cc @alan-agius4
コントリビューションガイド
調査の方向性
Angular CLI の build コマンドから始め、SSR が有効な場合に最終的なクライアント build 出力がどのように生成されるかを追跡してください。その出力内で `.server.ts` ファイルがどのように保持されるかを確認してください。そのようなファイルが存在するたびに build がエラーを報告すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- build-system
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100