Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Move the repo's build and test targets off the deprecated `@angular-devkit/build-angular` builders

已关闭
#3,806 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

已经有一个关联 PR 被合并了。

  • #3807 来自 @armando-navarro —— 已合并

评估

难度
4/5
预计耗时
1-2 天
新手友好度
25/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
停滞
技术栈
angular, firebase, typescript

调研方向

Start with angular.json and compare the build and test targets with the proposed @angular/build builders. Then update the Karma entries in karma.conf.js and the root package.json, and regenerate the lockfile. Run the build and browser specs in Chrome and Firefox; done means all 160 specs run with the same 48 pending skips and the deprecation warning is gone.

由索引模型根据 Issue 内容生成。

描述

comp: build/pipeline type: chore

Angular CLI 22.0.0 deprecated the builders in @angular-devkit/build-angular as part of ending its webpack support, in favor of @angular/build. This repository still builds the library with @angular-devkit/build-angular:ng-packagr and runs the browser specs with @angular-devkit/build-angular:karma, so every npm run build prints the deprecation warning, and the package can be removed in Angular 23.

Proposal

Switch both targets in AngularFire 22, while the change is small and nothing else is moving:

  • angular.json: build to @angular/build:ng-packagr and test to @angular/build:karma.
  • karma.conf.js: drop the @angular-devkit/build-angular framework and plugin entries, since the package is gone.
  • Root package.json: @angular/build replaces @angular-devkit/build-angular in the devDependencies. The regenerated lockfile loses the webpack tree.
What changes for contributors

The spec bundle is built by esbuild instead of webpack. The same 160 specs run, with the same 48 pending() skips, in Chrome and Firefox.

Nothing changes for apps: the published package is built by the same ng-packagr with the same configuration.

主要语言
TypeScript
星标
7.8k
派生
2.2k
平均合并
3 天 36 分钟
30 天内合并 PR
24

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

angular/angularfire 的其他 Issue

查看 angular/angularfire 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。