Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove global setup script with ngcc #2993

Merged
merged 1 commit into from
Feb 28, 2025
Merged

Conversation

ahnpnl
Copy link
Collaborator

@ahnpnl ahnpnl commented Feb 28, 2025

Test plan

Green CI

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

N.A.

@ahnpnl ahnpnl requested a review from Copilot February 28, 2025 07:46

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR refactors the project by removing the global setup script and all associated files that were used to run ngcc for Jest. The key changes include:

  • Removal of the global setup test specification (global-setup.spec.ts)
  • Removal of the global setup entry points in various module formats (global-setup.mjs and global-setup.js)
  • Removal of the ngcc processing functionality (ngcc-jest-processor.ts and global-setup.ts)

Reviewed Changes

File Description
src/config/global-setup.spec.ts Removed tests for the global setup script
global-setup.mjs Removed module-based global setup entry point
global-setup.js Removed CommonJS global setup entry point
src/utils/ngcc-jest-processor.ts Removed the ngcc processing logic for Jest
src/config/global-setup.ts Removed the global setup function that invoked ngcc

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

BREAKING CHANGE

Running 'ngcc' is not required for Angular 16+ projects
@ahnpnl ahnpnl force-pushed the refactor/remove-ngcc branch from 7a56c96 to f8d4c99 Compare February 28, 2025 08:07
@ahnpnl ahnpnl requested a review from Copilot February 28, 2025 08:07

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR removes the global setup script that uses ngcc from the project.

  • Removed references to global setup files from asset copying in test-examples.js.
  • Removed deprecated Angular Ivy documentation and ngcc processor-related files.
  • Deleted global setup configuration and associated tests.

Reviewed Changes

File Description
scripts/test-examples.js Removed references to global setup scripts from asset list.
website/docs/guides/angular-ivy.md Deleted outdated Angular Ivy guide.
src/utils/ngcc-jest-processor.ts Removed ngcc processor implementation.
src/config/global-setup.ts Removed global setup configuration.
src/config/global-setup.spec.ts Removed tests for the removed global setup.
global-setup.mjs Deleted legacy global setup module.
global-setup.js Deleted legacy global setup module.

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

scripts/test-examples.js:42

  • The extra comma after the arrow function block may cause a syntax error. Removing it should fix any potential parsing issues.
        },
@ahnpnl ahnpnl marked this pull request as ready for review February 28, 2025 09:17
@ahnpnl ahnpnl merged commit 35819c9 into next Feb 28, 2025
12 checks passed
@ahnpnl ahnpnl deleted the refactor/remove-ngcc branch February 28, 2025 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant