9124 Commits

Author SHA1 Message Date
Charles Lyding
ef23b39dd8 ci: add initial E2E test subset for experimental esbuild builder
The basic suite of E2E tests are now run against the newly introduced experimental esbuild-based builder (`browser-esbuild`).
Several tests are currently ignored based on the current feature set of the builder.
2022-04-22 20:45:54 -04:00
Charles Lyding
00186fb93f feat(@angular-devkit/build-angular): add initial experimental esbuild-based application browser builder
An experimental browser application builder (`browser-esbuild`) has been introduced that leverages esbuild as the bundler.
This new builder is compatible with options of the current browser application builder (`browser`) and can be enabled
for experimentation purposes by replacing the `builder` field of `@angular-devkit/build-angular:browser` from an existing
project to `@angular-devkit/build-angular:browser-esbuild`. The builder will generate an ESM-based application and
provides support for ES2015+ compatible output with ES2020 as the default.

This builder is considered experimental and is not recommended for production applications.

Currently not all `browser` builder options and capabilities are supported with this experimental builder.
Additional support for these options may be added in the future.
The following options and capabilities are not currently supported:
* Stylesheet Preprocessors (only CSS styles are supported)
* Angular JIT mode (only AOT is supported)
* Localization [`localize`]
* Watch and dev-server modes [`watch`, `poll`, etc.]
* File replacements [`fileReplacements`]
* License text extraction [`extractLicenses`]
* Bundle budgets [`budgets`]
* Global scripts [`scripts`]
* Build stats JSON output [`statsJson`]
* Deploy URL [`deployURL`]
* CommonJS module warnings (no warnings will be generated for CommonJS package usage)
* Web Workers
* Service workers [`serviceWorker`, `ngswConfigPath`]
2022-04-22 20:45:54 -04:00
Renovate Bot
ba92525e06 build: update actions/checkout action to v3.0.2 2022-04-22 16:05:24 -04:00
Renovate Bot
8b36762075 build: update angular 2022-04-22 11:32:18 -04:00
Charles Lyding
ccd7e71a47 refactor(@schematics/angular): minor cleanup of unneeded @angular-devkit/core imports
Several imported types and values from `@angular-devkit/core` could be removed while still
maintaining the same functionality. This further reduces the schematics direct dependence
on the `@angular-devkit/core` package.
2022-04-22 11:31:53 -04:00
Charles Lyding
291bbffcc9 refactor(@schematics/angular): use string helper re-export from @angular-devkit/schematics
By using the `strings` re-export from `@angular-devkit/schematics` instead of from `@angular-devkit/core`,
the number of imports from `@angular-devkit/core` has been reduced and lowers the direct dependency count
for many of the individual schematics.
2022-04-22 11:31:53 -04:00
Charles Lyding
25498ad5b2 feat(@angular-devkit/schematics): re-export core string helpers from schematics package
The string helpers are predominantly used within schematics that will already depend and import from
the `@angular-devkit/schematics` package. By re-exporting from `@angular-devkit/schematics`, the need
to directly depend and import `@angular-devkit/core` within a schematic can be reduced and in many
cases eliminated.
2022-04-22 11:31:53 -04:00
Paul Gschwendtner
b29878651b build: preparation for primary branch rename in the Angular repos
Preparation for the framework repo as outlined our planning
document.
2022-04-21 12:45:43 -04:00
Joey Perrott
88da0711fe release: cut the v14.0.0-next.11 release 14.0.0-next.11 2022-04-21 08:31:16 -07:00
Joey Perrott
fbd6b51efe release: cut the v14.0.0-next.10 release 14.0.0-next.10 2022-04-20 18:16:48 -07:00
Renovate Bot
d6ecb66f32 build: update all non-major dependencies 2022-04-20 11:19:24 -04:00
Daniil Dubrava
464cf330a1 feat(@angular-devkit/schematics): support null for options parameter from OptionTransform type 2022-04-18 09:38:31 +02:00
Daniil Dubrava
78460e995a fix(@angular/cli): remove type casting and add optional chaining for current in optionTransforms 2022-04-18 09:38:31 +02:00
Renovate Bot
bbf88abac0 build: update angular to afacf03 2022-04-17 18:10:44 +02:00
Charles Lyding
1a160dac00 fix(@angular-devkit/build-angular): ensure karma sourcemap support on Windows
The `glob`-based check when adding the sourcemap support packages to the karma setup was incorrectly
skipping the files due to Windows pathing issues. The `glob`-based check, however, is unneeded due
to the already present `require.resolve` checks for the sourcemap support packages which will
throw if the packages are not present.
2022-04-16 07:42:20 +02:00
Renovate Bot
c24be811da build: update actions/checkout action to v3.0.1 2022-04-15 14:27:32 +02:00
Renovate Bot
41982aa286 build: update all non-major dependencies 2022-04-15 09:42:16 +02:00
Alan Agius
f74a79f7c8 refactor(@angular-devkit/core): remove no longer needed fast-json-stable-stringify dependency
This dependency is no longer needed.
2022-04-14 17:13:52 +02:00
Alan Agius
c0eb926121 refactor(@angular-devkit/core): remove custom json parser
With this change we replace the workspace reader and write to use `jsonc-parser` instead of our custom build JSON parser
2022-04-14 17:13:52 +02:00
Alan Agius
d270258dcd build: update dependency glob to v8 2022-04-14 16:50:08 +02:00
Renovate Bot
c636cc8a2a build: update dependency karma-jasmine to v5 2022-04-14 13:05:09 +02:00
Renovate Bot
3739a0f028 build: update dependency karma-jasmine to v5 2022-04-14 13:04:58 +02:00
Renovate Bot
1fd3893c29 build: update angular 2022-04-14 12:05:58 +02:00
Charles Lyding
86678f9697 release: cut the v14.0.0-next.9 release 14.0.0-next.9 2022-04-13 18:25:49 -04:00
Charles Lyding
c94e6fba4f test: change prod-build E2E bootstrap check to allow underscore in variable name 2022-04-13 13:54:22 -07:00
Charles Lyding
bc3ce0371a docs: release notes for the v13.3.3 release 2022-04-13 13:54:22 -07:00
Charles Lyding
d144caa5f2 test: use yargs-parser in E2E test suite runner
The `minimist` package that was previously used is no longer a dependency of the project
and was only working due to package hoisting.
2022-04-13 12:08:44 -07:00
Alan Agius
bf15b202bb fix(@angular/cli): remove cache path from global valid paths
`cli.cache` cannot be configured globally and therefore it should not be listed as part of the `validCliPaths` Map.
2022-04-13 12:08:25 -07:00
Alan Agius
108a0b6acd refactor(@angular-devkit/core): remove fast-json-stable-stringify usage in memoize helper
This is not needed as inputs are typed checked to be `JsonValue`. With this change we get a step closer to remove `fast-json-stable-stringify` dependency.
2022-04-13 12:08:07 -07:00
Alan Agius
607a723f7d feat(@angular/cli): add support for auto completion
To enable bash and zsh real-time type-ahead autocompletion, copy and paste the generated script by the `ng completion` command to your `.bashrc`, `.bash_profile`, `.zshrc` or `.zsh_profile`.

Closes #11043
2022-04-13 12:07:45 -07:00
Renovate Bot
95954bba04 build: update all non-major dependencies 2022-04-12 10:37:05 -07:00
Renovate Bot
bf891c3b42 build: update angular to 0e12514 2022-04-12 10:36:42 -07:00
Alan Agius
8eaa680d5f refactor(@angular/cli): remove most of getWorkspaceRaw usages
This changes removes most of the usage of `getWorkspaceRaw` in the Angular CLI. This is needed to eventually drop the direct dependency on `jsonc-parser`.
2022-04-11 13:40:34 -07:00
Renovate Bot
cb6dd190f2 build: update all non-major dependencies 2022-04-11 11:48:06 -07:00
Renovate Bot
a63df1ee9b build: update github/codeql-action action to v2.1.8 2022-04-11 11:47:49 -07:00
Renovate Bot
e88c48092f build: update angular to 89573ed 2022-04-11 11:47:32 -07:00
Alan Agius
be2b268c36 fix(@angular-devkit/build-angular): display debug logs when using the --verbose option
Webpack doesn't display debug logs when setting the log level to verbose.

See: https://webpack.js.org/configuration/other-options/#debug and https://webpack.js.org/configuration/other-options/#level
2022-04-11 11:47:09 -07:00
Alan Agius
3afd1ab9c0 fix(@angular-devkit/build-webpack): emit devserver setup errors
Closes #22969
2022-04-11 11:46:51 -07:00
Alan Agius
ff4eba3d4a fix(@angular/cli): handle duplicate arguments
With this change we add a Yargs middleware that normalizes non Array options when the argument has been provided multiple times.

By default, when an option is non array and it is provided multiple times in the command line, yargs
will not override it's value but instead it will be changed to an array unless `duplicate-arguments-array` is disabled.
But this option also have an effect on real array options which isn't desired.

See: https://github.com/yargs/yargs-parser/pull/163#issuecomment-516566614

Closes #22956
2022-04-11 11:46:00 -07:00
Charles Lyding
d87b858d41 refactor(@angular/cli): add infrastructure support for schematics built-in modules
Infrastructure has been added to the schematics runtime within the `@angular/cli`
package to allow schematics executed via the Angular CLI to have access upcoming
built-in modules. These built-in modules will be imported/required using the
`schematics:` scheme similar to the Node.js `node:` scheme available for Node.js
built-in modules. No built-in modules exist yet but will be added in the future.
Schematics must be executed via the Angular CLI Schematics runtime's custom VM context
to use the upcoming built-in modules. All first-party Angular schematics have been
executed in this manner for several major versions. Third-party schematics can now
opt-in to the behavior by enabling the `encapsulation` option within a schematic collection
JSON file.
2022-04-11 11:45:43 -07:00
Charles Lyding
9a5251cff9 refactor(@angular-devkit/schematics): provide schematic collection description to FileSystemEngineHost resolver
The `_resolveReferenceString` abstract method of the `FileSystemEngineHostBase` class now has a third parameter
that provides the collection description of the schematic currently being resolved. This allows the resolver to
use any fields/options present within the collection description to adjust the resolution of the schematic. The
`encapsulation` optional field is also added to the `FileSystemCollectionDescription` type which will in the future
allow control of the `@angular/cli` VM context wrapping on an individual schematic collection basis.
2022-04-11 11:45:43 -07:00
Renovate Bot
78b3537731 build: update all non-major dependencies 2022-04-08 10:10:14 -07:00
Renovate Bot
3909528c08 build: update angular 2022-04-08 09:37:47 -07:00
Alan Agius
a66cfd0c6d refactor(@angular-devkit/core): replace fast-json-stable-stringify import to es6 2022-04-08 09:37:22 -07:00
Renovate Bot
ebbb0adf56 build: update dependency ini to v3 2022-04-07 14:46:12 -07:00
Joey Perrott
45b1365e31 release: cut the v14.0.0-next.8 release 14.0.0-next.8 2022-04-06 11:54:08 -07:00
Joey Perrott
6984740db4 docs: release notes for the v13.3.2 release 2022-04-06 11:19:51 -07:00
Renovate Bot
725e326661 build: update angular to 7c6fc3e 2022-04-06 13:01:00 -04:00
Renovate Bot
4b05c44d4f build: update all non-major dependencies 2022-04-06 13:00:39 -04:00
Renovate Bot
55e9161a9f build: update github/codeql-action action to v2.1.7 2022-04-06 10:41:36 -04:00