14 Commits

Author SHA1 Message Date
Paul Gschwendtner
4fee94a96c build: rename //:root_modules to //:node_modules.
This is necessary as `rules_js` requires this "common name" when dealing
with Yarn workspaces, linking first party dependencies automatically.

In the future, we may be able to send a PR to `rules_js` to support a
custom name somehow.
2025-01-15 19:20:40 +01:00
Joey Perrott
a7155f6365 build: migrate @angular/create to npm_package
This allows us to use the package in the RJS pnpm workspace.
2025-01-13 12:59:41 -08:00
Charles Lyding
5f04d68633 build: migrate @angular/create to ts_project
The `@angular/create` package has been migrated to the `rules_js` ts_project rule.
2024-12-23 09:17:34 -05:00
Alan Agius
650aeec286 build: add missing pkg_deps for @angular/create
Included missing `@angular/cli` in `pkg_deps`.
2024-08-14 16:42:42 +02:00
Charles Lyding
ce850da171 build: update yarn version to v4.2.2 2024-06-10 18:17:03 -04:00
Ash Ramirez
434a3740f0 refactor(@angular/cli): update aio links -> adev links
Updates for all angular.io links to the new angular.dev domain. Additionally, adjustment to new resources where the equivalent does not exist on the new site (e.g. Tour of Heroes tutorial)
2024-06-06 11:12:06 +02:00
Alan Agius
600498f2cd feat(@angular/create): add support to bun package manager
This commit adds support to use `bun` as a package manager.

Closes #26837
2024-01-25 18:02:35 +01:00
Charles Lyding
11e0a51b17 build: minor cleanup of bazel build rules
BUILD files for each package have had outdated glob excludes removed.
Additionally, some src args have been reduced to a single file where possible.
The root bazel ignore file has also been expanded to include all node module
directories in each package. The ignore file does not appear to currently support
globs so each path has been individually specified.
2023-05-22 09:36:44 -04:00
Charles Lyding
7f93735e98 build: use bazel to perform release builds
When performing a release via the dev-infra `ng-dev` tooling, the release
builds for the packages that will be published are now performed using bazel.
Prior to this, the release builds were performed using a custom build script
that programmatically invoked TypeScript APIs. The Bazel build and discovery
process for the releasable packages is performed by a script that is based on
the scripts from components and framework repositories. Several small modifications
were performed to match the behavior and structure of the cli repository:
* Use of `packages` as the source root in the bazel query
* Use of `pkg_npm` rule in the bazel query
* Partial transition to native Node.js `fs` APIs instead of `shelljs`
* Directory creation per package when copying output (supports multiple package scopes)
* Copying of archives (tgz) for each package

The snapshot and local build capabilities are not modified as part of this change
but will be merged in a followup as part of a larger transition to use bazel
throughout the package build process.
2023-01-05 03:21:58 +00:00
Alan Agius
a38650d4a4 Revert "docs: remove @latest reference from npm init command"
This reverts commit 467ba5af8278399c1fcf11137644f7c61af8f59c.
2022-11-29 14:37:16 +00:00
Charles Lyding
b2add316e7 build: remove unneeded BUILD file licenses rule comments 2022-09-13 10:33:49 -07:00
Alan Agius
f93de8071f fix(@angular/create): use appropriate package manager to install dependencies
Previously, NPM was always used to install dependencies even when using `yarn create` or `pnpm create`.

Closes #23617
2022-07-22 14:00:57 -04:00
Alan Agius
467ba5af82 docs: remove @latest reference from npm init command
NPM doesn't correctly handle version specifier for scoped packages when using the `init` command

See: https://github.com/npm/cli/issues/5175
2022-07-18 15:29:44 -04:00
Alan Agius
cfe93fbc89 feat(@angular/create): add support for yarn create and npm init
With this change we add support to scaffold  an Angular workspace using `yarn create @angular` and `npm init @angular`. These shortcuts support all of the `ng-new` options.

Closes #10339 and closes #14292
2022-07-12 10:19:23 -07:00