440 Commits

Author SHA1 Message Date
Alan Agius
27fe5dad62 docs: correct bazel e2e commands
These command are outdated and no longer work
2025-03-14 15:41:15 +01:00
Paul Gschwendtner
23829b0ed2 docs: improve developer guide for pnpm and windows
Improves the developer guide for pnpm and Windows.

See for the Windows change:
https://github.com/angular/angular-cli/pull/29705.
2025-03-12 12:13:28 +01:00
Paul Gschwendtner
9dd3f0344f
Further clean-up rules_nodejs npm workspace and remove yarn.lock (#29779)
* build: disconnect `@npm` workspace from main project

This will speed up significantly as we don't need to fetch all
dependencies again just for the `@npm` repository that is at this point
only leveraged by the `ng_package` rule for some of its dependencies.

This commit allows us to drop the `yarn.lock` and Aspect lock files, and
allows us to independently migrate `ng_package` to `rules_js`.

It also allows us to drop the `_rjs` TS interop layer in follow-up commits.

* build: drop `_rjs` suffix from `ts_project` targets

We don't need the `ts_project` interop in principle
at this point. We only have one remaining instance left for the SSR
`ng_package` integration. This commit cleans up all usages.

* build: remove yarn

* build: avoid duplicated dependencies at top-level

`rules_js` seems to be sensitive if there are similar versions of the same
package installed, but with differently matched peer dependencies. This
is fine because we can (and should long-term) move those dependencies to
their package-local `package.json` files. This commit unblocks the
migration and highlights how we can move deps to the individual packages
in the future.

* build: update checkout github action

This will allow us to use pnpm.

* build: update node to avoid strict-engines error caused by `npm`

Avoids:

```
Lockfile is up to date, resolution step is skipped
 ERR_PNPM_UNSUPPORTED_ENGINE  Unsupported environment (bad pnpm and/or Node.js version)

Your Node version is incompatible with "npm@11.2.0".

Expected version: ^20.17.0 || >=22.9.0
Got: v20.11.1
```

Note that we won't update the WORKSPACE test version as that would mean
we need to update the Node engines for shipped packages; and we can't do
this right now without introducing a breaking change.

* build: fix missing dependency for spec bundling

The beasties JS sources weren't available for bundling in the
`bazel-bin`, and this surfaced in RBE. This commit fixes this.
2025-03-11 10:05:52 +01:00
Alan Agius
31cbf5f9ad build: replace hardcoded Angular and ng-packagr peer dependencies with Bazel stamping
Refactor the build configuration to use Bazel stamping for Angular and ng-packagr dependencies, eliminating the need for hardcoded peer dependencies.
2025-01-16 19:06:30 +01:00
Doug Parker
0a7415ea6a docs: update release doc with script to remove prerelease versions
Also includes updating the lockfile for completeness, though that should be a temporary requirement.
2025-01-15 14:47:28 -08:00
Jan Martin
f8b220317f docs: elaborate on debugging jasmine node tests
The existing instructions don't quite cover a full debugging setup
and miss some flags that allow debugging without modification of
BUILD files.
2024-09-09 19:22:23 +02:00
Alan Agius
054d8bfbdb docs: update developers guide with correct commands
`--yarn` was replaced with `--package-manager=yarn`
2024-06-13 14:15:21 +02:00
Alan Agius
e19db6f56d docs: update e2e test commands
The E2E config allows stamping, not using it can cause certain e2e tests to fail locally.
2024-06-11 21:26:59 +02:00
David LJ
d6f7962b2a docs: aio->adev links in readme, docs & gh dirs 2024-05-27 08:08:52 +02:00
Doug Parker
a072c62480 docs: add explanation of how to set up a new NPM package in Wombat 2024-04-25 10:03:24 -07:00
Alan Agius
c7b208555e refactor(@angular/cli): remove support for Node.js versions <18.19.1 and <20.11.1
BREAKING CHANGE: Node.js support for versions <18.19.1 and <20.11.1 has been removed.
2024-03-12 16:51:03 +01:00
Doug Parker
220a7e82d9 docs: remove Universal from caretaking doc
Since Universal code has been integrated into the Angular CLI repo, there are no longer any unique caretaking responsibilities.
2023-12-26 10:23:29 -05:00
Susheel Thapa
706483d1c5 docs: fix the typo in multiple files 2023-10-20 11:37:35 -07:00
Alan Agius
741cca73c1 feat(@schematics/angular): add ng new --ssr
This commit enabled users to opt-in adding SSR and SSG to their application during the `ng new` experience. This can be done either by using the `--ssr` option or answer `Yes` when prompted.
2023-09-25 20:17:01 +02:00
Alan Agius
8fe8cdf05a refactor: move universal code into CLI repo
Merge remote-tracking branch 'universal/move-to-cli' into universal-merge
2023-08-16 11:34:47 +00:00
Alan Agius
e6ce7f8414 refactor: prepare code for CLI move 2023-08-16 09:55:58 +00:00
Charles Lyding
5bf7022c47 fix(@angular-devkit/build-angular): remove support for Node.js v16
BREAKING CHANGE: Node.js v16 support has been removed

Node.js v16 is planned to be End-of-Life on 2023-09-11. Angular will stop supporting Node.js v16 in Angular v17.
For Node.js release schedule details, please see: https://github.com/nodejs/release#release-schedule
2023-08-14 10:57:54 +02:00
aanchal
efeae1e1f1 docs: remove duplicate words 2023-08-04 14:49:14 -04:00
Doug Parker
9d8f6289fa docs: update release doc to be more clear about peer dependency updates and timing 2023-05-08 19:32:56 +00:00
Doug Parker
b70899ab2d docs: add @angular/pwa to version bump list in release documentation 2023-05-03 19:21:05 +00:00
Alan Agius
4eaf107305 build: update minimum supported Node version from 16.13.0 -> 16.14.0
This commit updates the minimum supported Node version across packages from 16.13.0 -> 16.14.0 to ensure compatibility with dependencies.
2023-04-11 16:46:10 +00:00
Alan Agius
e0ed653516 refactor(@nguniversal/common): remove usage of BrowserTransferStateModule
This is no longer needed
2023-04-11 16:22:54 +02:00
Alan Agius
afcc49fd53 docs: improve grammar in e2e section
Minor grammar fix.

Co-authored-by: Charles <19598772+clydin@users.noreply.github.com>
2023-02-13 14:14:13 +00:00
Alan Agius
150e530239 ci: enable E2E tests on multiple node versions
This commit sets ups Node 18 tool chain and also configures E2E tests to use multiple tools chains to retain the same behaviour prior to switching the e2e tests to Bazel.
2023-02-13 14:14:13 +00:00
Alan Agius
abcea344c3 docs: update developer guide to include new Bazel setup
This commit updates the developer guide to include tips on how to run and debug tests when using the new Bazel E2E setup.
2023-02-13 14:14:13 +00:00
Jason Bedard
fac1e58b73
run e2e tests under bazel (#24338)
* test: run legacy-cli e2e tests via bazel

* fixup! test: run legacy-cli e2e tests via bazel

* fixup! test: run legacy-cli e2e tests via bazel

* fixup! test: run legacy-cli e2e tests via bazel
2023-02-03 07:52:28 +00:00
Alan Agius
2589df0be1 Revert "test: run legacy-cli e2e tests via bazel"
This reverts commit 794e33ae72c15a628f308260020bc4da608c4996.
2022-11-28 15:25:48 +00:00
Jason Bedard
794e33ae72 test: run legacy-cli e2e tests via bazel 2022-11-28 13:39:15 +00:00
Doug Parker
99b258d929 docs: updates release documentation to include latest-versions/package.json and clarify what can be done in the release PR 2022-11-17 16:30:24 -08:00
Alan Agius
2edfc30f9a docs: update transfer-http docs
Remove redundant section
2022-10-14 15:33:00 +02:00
Alan Agius
f41d609ae8 fix(@angular/cli): add unique user id as user parameter in GA
While, GA collects the user id, this cannot be used for reporting and filtering purpose. This can be
2022-10-14 15:27:05 +02:00
Alan Agius
c59c1e7e6d fix(@angular/cli): add workspace information as part of analytics collection
With this change we collect 3 additional metrics
- `all_projects_count` Count of all project in a workspace
- `libs_projects_count` Count of library projects in a workspace
- `apps_projects_count` Count of application projects in a workspace
2022-10-14 15:27:05 +02:00
Carlos Torrecillas
76d60854bd
docs: removing ServerTransferStateModule as is deprecated
Since the latest universal libraries state that ServerTransferStateModule is being deprecated and apparently does not need to be used, it can be removed from the docs and also is not present in the sample universal code available to be downloaded.
2022-10-13 12:21:44 +02:00
Alan Agius
95adf11131 docs: fix markdown links in analytics docs 2022-10-12 16:55:17 +02:00
Alan Agius
3928d084e6 ci: add validation for parameters length
Needed as otherwise if the parameter is longer we are unable to map this in GA4.

GA4 has a limit of:
- 24 characters for custom user dimension parameter names
- 40 characters for custom event dimension parameter names
- 40 characters for custom metric dimension parameter names
2022-10-12 15:32:28 +02:00
Alan Agius
bf7ed0d3e5 ci: correct analytics validation script to print user custom dimensions
Prior to this user custom dimensions were not added to `docs/design/analytics.md`
2022-10-12 15:32:28 +02:00
Alan Agius
2fb9a4dc09 docs: remove page view section from analytics doc
Page views are no longer used in GA4.
2022-10-12 15:32:28 +02:00
Alan Agius
124be1cc9c refactor: add build and rebuild related statistics and analytics
The new build and rebuild statistics are used by the CLI to submit build related information to GA.
2022-10-11 18:52:30 +02:00
Alan Agius
639a3071c3 refactor: migrate analytics collector to use GA4
This change updates the analytics collector collector to use GA4 instead of UA. The motivation behind this change is that UA will stop collecting data in 2023.

BREAKING CHANGE:

`analyticsSharing` option in the global angular configuration has been
removed without replacement. This option was used to configure the Angular CLI to  access to your own users' CLI usage data.

If this option is used, it can be removed using `ng config --global cli.analyticsSharing undefined`.
2022-10-11 18:52:30 +02:00
Alan Agius
4827d1b23e feat(@angular/cli): add support for Node.js version 18
Pacote version 14 does requires `14.17.x` or `16.13.x`.

BREAKING CHANGE: The Angular CLI  no longer supports `16.10.x`, `16.11.x` and `16.12.x`. Current supported versions of Node.js are `14.20.x`, `16.13.x` and `18.10.x`.
2022-10-07 11:34:43 -04:00
Alan Agius
4b623461a4 feat(@angular/cli): drop support for Node.js versions older than 14.20
Node.js 14.20 and newer support generating UUID using the crypto module. See: https://nodejs.org/docs/latest-v14.x/api/crypto.html#crypto_crypto_randomuuid_options

BREAKING CHANGE: Node.js versions older than 14.20 are no longer supported.
2022-10-04 11:28:43 -04:00
Jason Bedard
2624d8941f test: run e2e tests on pre-compiled packages
The NPM packages being tested must be pre-compiled and the tar packages specified via --package. This way the real packages such as snapshots, release artifacts or cached packages can be tested. Previously the e2e tests compiled and packaged during test execution.
2022-09-26 12:44:46 +02:00
Doug Parker
2a8534aa09 docs: clarify that version bumps must happen separately from the release PR
In `14.2.0`, we learned that we can't bump peer deps / `latest-versions.ts` in a release PR, because the released NPM artifact is actually built *before* an opportunity to edit the PR appears. We need to do a separate before the CLI release to make this change.

See: https://angular-team.slack.com/archives/C46U16D4Z/p1661482133013029
2022-09-19 09:48:37 -04:00
Alan Agius
2ba44a433c refactor(@angular-devkit/build-angular): remove support for Stylus
The usage of Stylus in the CLI is minimal and this package never reached version 1.

BREAKING CHANGE:

Deprecated support for Stylus has been removed. The Stylus package has never reached a stable version and its usage in the Angular CLI is minimal. It's recommended to migrate to another CSS preprocessor that the Angular CLI supports.
2022-09-16 11:39:19 -07:00
Doug Parker
b5deab15fa docs: update major release instructions to mention latest-versions.ts bump 2022-06-01 08:44:22 -07:00
Doug Parker
e569d3bfdf docs: update release documentation to reflect changes to caretaker responsibilities and new rotation 2022-05-26 14:58:09 -07:00
Joey Perrott
3d76cef369 build: add caretaker configuration to ng-dev config
Add the caretaker configuration to set up being able to run both the carataker
check and the handoff commands.

The caretaker handoff command will operate using the angular-cli-caretaker group
which has already been seeded with the current information.
2022-05-23 14:53:55 -07:00
Doug Parker
25482d72b9 docs: remove caretaker pairings
This list is out of date and not used. The calendar is listed above and is the source of truth, so there is no need for this table.
2022-05-16 09:21:14 -04:00
Doug Parker
53862e92d5 docs: update analytics approvers
Stephen and Igor are no longer the leads for DevRel and Angular respectively. Updated to use generic language so this doesn't fall out of date as easily.
2022-05-16 09:21:14 -04:00
Paul Gschwendtner
4a57e296b1 build: clean up references to old master branch
Cleans up all referneces to the old `master` branch.
2022-05-04 20:32:41 +02:00