790 Commits

Author SHA1 Message Date
Alan Agius
302a9f325c refactor(@angular-devkit/build-angular): don't add a SourceMapDevToolPlugin when sourcemaps are disabled 2019-12-05 18:53:08 -08:00
Alan Agius
0659cf09e3 fix(@angular-devkit/build-angular): add externalDependencies to server builders
Certain node packages depend on native bindings which cannot be bundled, with this fix we add a way to exclude these from being processed by the bundler.

Closes: #16348
2019-12-05 18:53:08 -08:00
Alan Agius
0a7ace3595 fix(@angular-devkit/build-angular): allow bundleDependencies to be a boolean 2019-12-05 18:53:08 -08:00
Alan Agius
4f19e36dc9 refactor: deprecated unused server builder options 2019-12-05 18:52:27 -08:00
Charles Lyding
c37eaeec43 fix(@angular-devkit/build-angular): augment base HREF when localizing
All locale i18n options now support an object form which allows a base HREF to be defined for the locale.  Each locale can now optionally define a custom base HREF that will be combined with the base HREF defined for the build configuration.  By default if the shorthand form for the locale is used or the field is not present in the longhand form, the locale code will be used as the base HREF.  To disable automatic augmentation a base HREF value of an empty string (`""`) can be used.  This will prevent anything from being added to the existing base HREF.

For common scenarios, the shorthand form will result in the preferred and recommended outcome of each built locale variant of the application containing a defined base HREF  containing the locale code.
2019-12-04 08:14:16 -08:00
Charles Lyding
1d79b28c17 fix(@angular-devkit/build-angular): support differential loading for web workers
Fixes #16275
2019-12-02 10:19:38 -08:00
Charles Lyding
09a7d87f00 fix(@angular-devkit/build-angular): ensure HTML lang attribute is set when localizing 2019-12-02 10:17:57 -08:00
Alan Agius
d155c7c804 fix(@angular-devkit/build-webpack): allow runWebpackDevServer to accept a webpackDevServerFactory 2019-12-02 10:16:08 -08:00
Alan Agius
2960a71807 fix(@angular-devkit/build-angular): pass webpack factor to runWebpackDevServer 2019-12-02 10:16:08 -08:00
Charles Lyding
ef7748524c fix(@angular-devkit/build-angular): make i18n translation files relative to workspace
All other paths within the workspace file are relative to the workspace root.
2019-11-26 13:08:29 -08:00
Alan Agius
02c50fbd6a refactor(@angular-devkit/build-angular): deprecate karma environment option
This option is unused and has no effect
2019-11-26 13:07:42 -08:00
Alan Agius
07801363a6 fix(@angular-devkit/build-angular): add pattern validations for browserTarget and serverTarget 2019-11-26 13:07:13 -08:00
Charles Lyding
3d5a5a97a4 fix(@angular-devkit/build-angular): enable dynamic import parsing with serve localization
Fixes #16248
2019-11-26 13:05:30 -08:00
Charles Lyding
adb4139b80 fix(@angular-devkit/build-angular): cache localize results with development server 2019-11-26 13:05:30 -08:00
FDIM
2c0efd834b fix(@angular-devkit/build-angular): mocked context in single test transform matches webpack API 2019-11-23 10:35:45 +02:00
Greg Magolan
a4200a0f04 refactor(@angular-devkit/build-angular): allow @angular/core version 0.0.0
Allow version "0.0.0" for integration testing in the angular/angular repository with the generated development @angular/core npm package which is versioned "0.0.0".
This is a pre-req for https://github.com/angular/angular/pull/33927 which runs integration tests against the bazel generated npm packages.
2019-11-22 22:36:31 +01:00
Charles Lyding
cfc0aa4780 fix(@angular-devkit/build-angular): properly process es2016+ targets with differential loading
A target of es2015 was previously assumed when using differential loading.  This could result in erroneously downleveling an es2016+ output file instead of generating a new es5 output file.
2019-11-20 13:21:58 -08:00
Igor Minar
17792c46b3 fix(@angular-devkit/build-angular): update link to update.angular.io
This link is rarely seen by developers but when they do see it, they should get the real one.
2019-11-20 08:51:21 -08:00
Charles Lyding
d8438f7ad1 fix(@angular-devkit/build-angular): prevent webpack from adding suffixes to polyfills files
The ES5 polyfills file was erroneously being suffixed with `es2015`.  The webpack configuration does not support conditional customization per chunk for the output filenames (`chunkFilename` option schema only supports string values).  This change adds an additional small webpack plugin that allows the chunk filenames to be adjusted based on the chunk name.  The plugin is only added when differential loading is enabled as this is the only time that a chunk currently requires its filename to be adjusted.

Closes #15915
2019-11-18 10:55:53 -08:00
Charles Lyding
798790622d fix(@angular-devkit/build-angular): allow new i18n options to work with VE 2019-11-18 10:54:35 -08:00
Charles Lyding
04cb2ac17b fix(@angular-devkit/build-angular): support global locale data with development server 2019-11-15 10:42:18 -08:00
Charles Lyding
9c682b7c04 refactor(@angular-devkit/build-angular): re-enable multi-localize support 2019-11-15 10:42:18 -08:00
Charles Lyding
bb403692d1 revert: fix(@angular-devkit/build-angular): temporarily disable global locale data injection
This reverts commit 00aa5bba5a6cc31a96fef0697da110057d63bca1.
2019-11-15 10:42:18 -08:00
Charles Lyding
e4031bcd90 fix(@angular-devkit/build-angular): ensure webpack loaders use this package's versions 2019-11-15 10:41:01 -08:00
Charles Lyding
f3a23fc6f1 fix(@angular-devkit/build-angular): ensure build-angular's webpack version is used 2019-11-15 10:41:01 -08:00
Charles Lyding
cd8029ae4d fix(@angular-devkit/build-angular): support XMB/XTB translation file parser
Closes #16100
2019-11-12 11:52:41 -08:00
Charles Lyding
d41522302b fix(@angular-devkit/build-angular): ignore node modules when polling
The node modules directory contains a massive set of directories and files.  When watching via polling, that set needs to be queried repeatedly to determine if any files have changed.  Changes within node modules are quite rare while using `ng serve` or `ng build --watch`.  As a result, polling the node modules directory is rarely useful.  This change causes CPU usage to drop from a potential high of ~80% to a more manageable ~5-10%.
2019-11-12 11:45:40 -08:00
cexbrayat
4bf175ca3a feat(@angular-devkit/build-angular): support TSLint 6.0+
TSLint [6.0.0-beta0](https://github.com/palantir/tslint/releases/tag/6.0.0-beta0) was released, and `ng lint` throws with:

    TSLint must be version 5.5 or higher.

if we try to use it in a CLI project.

It looks like the current version check allows v5.5+ by checking that both the major and minor versions are > 5. So this fails with 6.0 (but would succeed with 6.5).
This fixes the check to allow using v6.0.
2019-11-11 16:50:56 -08:00
Charles Lyding
6602d90b42 fix(@angular-devkit/build-angular): prevent double sourcemap processing 2019-11-11 09:12:36 -08:00
Charles Lyding
ab3703c573 fix(@angular-devkit/build-angular): silence internal webpack dev server logging 2019-11-09 11:50:46 -08:00
Charles
862b28f844 fix(@angular-devkit/build-angular): allow localization with development server (#16053)
* fix(@angular-devkit/build-angular): allow localization with development server

* test: ensure i18n application E2E tests are executed
2019-11-08 07:56:05 -08:00
Charles Lyding
00aa5bba5a fix(@angular-devkit/build-angular): temporarily disable global locale data injection 2019-11-07 12:12:46 -08:00
Charles Lyding
1941762552 fix(@angular-devkit/build-angular): insert locale data when localizing 2019-11-07 10:08:19 -08:00
Alan Agius
82fbda6255 build: update @angular to version 9.0.0-next.15 2019-11-05 16:28:40 -08:00
Charles Lyding
673030de1c fix(@angular-devkit/build-angular): temporarily remove localize peer dependency
This should be reintroduced in 9.1 or 9.2.  The other remaining "hidden" peer dependencies should be included as well (currently `karma` and `node-sass`).
2019-11-04 13:26:53 -08:00
Charles Lyding
c3651e458b fix(@angular-devkit/build-angular): allow missing i18nFile option when using i18nLocale
Improves support for the deprecated i18n options when used with Ivy.
2019-11-04 13:23:37 -08:00
minijus
803f636d68 feat(@angular-devkit/build-angular): export protractor builder 2019-11-04 13:22:05 -08:00
Alan Agius
e70a2b04bd refactor(@angular-devkit/build-angular): use compiler parsed value of enableIvy
At the moment we are relying on source content to determine if the compilation is under Ivy or VE. However, we do know what compilation we are in from the parsed tsconfig.

With this change we use the `enableIvy` to set the analytics metric
2019-11-01 10:24:20 -07:00
Filipe Silva
1812c82fa7 fix(@angular-devkit/build-angular): temporarily disable localize for multiple locales
Related to https://github.com/angular/angular-cli/issues/15974
2019-10-30 13:49:47 -07:00
Charles Lyding
ea37808cab fix(@angular-devkit/build-angular): adjust translation parser import paths 2019-10-30 11:22:20 -07:00
Charles Lyding
a420549548 fix(@angular-devkit/build-angular): augment with serviceworker during localization 2019-10-30 09:36:46 -07:00
Alan Agius
588baa5737 fix(@angular-devkit/build-angular): i18n app shell with Ivy 2019-10-30 09:36:14 -07:00
Alan Agius
669abae197 refactor: remove redundant host parameter in configureI18nBuild 2019-10-30 09:36:14 -07:00
Charles Lyding
8fa93e1b15 fix(@angular-devkit/build-angular): enable locale data transform for single localization 2019-10-30 08:30:11 -07:00
Alan Agius
77a4fba45f fix(@angular-devkit/build-angular): don't emit CSS resources during a server build
The server should serve the assets emitted by the browser builder. In fact the nguniversal schematics are configured to serve the assets from the browser folder
a0cc9ab97a/modules/express-engine/schematics/install/files/__serverFileName%40stripTsExtension__.ts (L26)

Closes #12878
2019-10-29 20:21:24 -07:00
Charles Lyding
dd4bc23a48 fix(@angular-devkit/build-angular): keep licenses if extraction is disabled 2019-10-25 15:22:26 -07:00
Alan Agius
0686ceff67 fix(@angular-devkit/build-angular): i18n with Ivy in universal builder 2019-10-25 09:52:56 -07:00
Alan Agius
936a9512ae refactor(@angular-devkit/build-angular): move around i18n methods to make them re-usable 2019-10-25 09:52:56 -07:00
Charles Lyding
276032c962 fix(@angular-devkit/build-angular): use project root as translation file base 2019-10-24 12:04:42 -07:00
Charles Lyding
294ecdd7f3 fix(@angular-devkit/build-angular): remove @angular/localize from application if localizing 2019-10-24 12:04:42 -07:00