468 Commits

Author SHA1 Message Date
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
Charles Lyding
30536881f9 fix(@angular-devkit/build-angular): set locale identifier when localizing 2019-10-24 12:04:13 -07:00
Charles Lyding
5597f7fedc refactor(@angular-devkit/build-angular): allow control of cache location
`NG_BUILD_CACHE` can specify an absolute path to be used as the cache location.  Caching can also be disabled by setting the variable to 0 or false.
2019-10-23 09:56:49 -07:00
Michael
5260bbb9a3 fix(@angular-devkit/build-angular): sockPath for custom path
Set devServer.sockPath to connect to reloading socket
via custom path when serving the app on a custom path.
2019-10-23 09:56:26 -07:00
Charles Lyding
358bc12856 feat(@angular-devkit/build-angular): support i18n localization for non-differential builds 2019-10-21 13:03:32 -07:00
Charles Lyding
e9279bbe1a fix(@angular-devkit/build-angular): update sourcemaps during localization 2019-10-21 13:03:32 -07:00
Charles Lyding
895fa620a2 feat(@angular-devkit/build-angular): support deprecated i18n options with new configuration 2019-10-21 13:03:32 -07:00
Charles Lyding
bc831e8ff5 feat(@angular-devkit/build-angular): support parallel i18n localization 2019-10-21 13:03:32 -07:00
Charles Lyding
cda57ae0e5 feat(@angular-devkit/build-angular): optimize i18n localize usage in source locale 2019-10-17 10:45:01 -07:00
Charles Lyding
cf116da464 fix(@angular-devkit/build-angular): normalize extract i18n format option 2019-10-17 10:45:01 -07:00
Charles Lyding
9fca29a254 refactor(@angular-devkit/build-angular): use copy file utility in action cache 2019-10-17 10:45:01 -07:00
Charles Lyding
2b41cd1e81 feat(@angular-devkit/build-angular): initial support for i18n translation inlining 2019-10-17 10:45:01 -07:00
Alan Agius
38947d8643 refactor(@angular-devkit/build-angular): remove differential loading version 1.0 2019-10-15 11:22:34 -07:00
Alan Agius
b3086ffd54 fix(@angular-devkit/build-angular): only copy assets outside of webpack when differential loading is needed in build builder
Fixes #15825
2019-10-14 13:42:29 -07:00
Alan Agius
d9bf2dbbda fix(@angular-devkit/build-angular): avoid attempting to copy directories
Avoid copying directly directories, also which this change we cache `fs.existsSync` to optimize copying when a lot of file are being copied to the same destination.

Closes: #15816
2019-10-11 13:53:48 -07:00
Filipe Silva
47490527ff feat(@angular-devkit/build-angular): add experimentalRollupPass (#15690)
In applications that make heavy use of lazy routes and ES2015 libraries, this option can improve bundle sizes. It might also break your bundles in ways we don't understand fully, so please test and report any problems you find.

NOTE: the following are known problems with experimentalRollupPass
- vendorChunk, commonChunk, namedChunks: these won't work, because by the time webpack sees the chunks, the context of where they came from is lost.
- webWorkerTsConfig: workers must be imported via a root relative path (e.g.`app/search/search.worker`) instead of a relative path (`/search.worker`) because of the same reason as above.
- loadChildren string syntax: doesn't work because rollup cannot follow the imports.
2019-10-10 12:39:38 -07:00
Alan Agius
c3169ae7d2 New i18n schema (#15760)
* feat(@angular-devkit/core): update schema to support new i18n options

"projects": {
  "my-app": {
    "projectType": "application",
    "schematics": {},
    "root": "",
    "i18n": {
      "sourceLocale": "en-US",
      "locales": {
        "fr": "src/locale/messages.fr.xlf"
      }
    },
    "sourceRoot": "src",
    ...
  }
}

* feat(@angular-devkit/build-angular): add new i18n options to browser and server builders

With this change we add `translateLocales` as new options for i18n in browser and server builders.

We also deprecate the following options;
* i18nLocale
* i18nFormat
* i18nFile

* feat(@angular-devkit/build-angular): deprecate `i18nFormat` and `i18nLocale` options of `extract-i18n` builder

Option `i18nFormat` has been deprecated in favor of `format` and `i18nLocale` option has been deprecated in favor of the `sourceLocale` sub option of the `i18n` project level option.

* feat(@angular/cli): add alias of `i18n-extract` for `x18n` command

* refactor: rename `translateLocales` to `localize`
2019-10-10 12:39:00 -07:00
Charles
2dc885304b refactor(@angular-devkit/build-angular): reorganize bundle processing for browser builder (#15776) 2019-10-09 11:25:23 -07:00
Charles
3a44611483 refactor(@angular-devkit/build-angular): initial copy-on-write asset processing support (#15788)
This is currently only supported when performing a differential loading build (no watch mode).  This will eventually be expanded to cover watch mode and non-differential loading builds.
2019-10-09 11:07:31 -07:00
Alan Agius
4d2ef2bf57 feat(@angular-devkit/build-angular): add support for i18n extraction with Ivy (#15796)
Re-enable i18n extraction in Ivy by using the legacy VE compiler.
2019-10-09 11:04:48 -07:00
Nikita Potapenko
645b60192b fix(@angular/cli): initialize baseUrl variable
baseUrl is not provided to protractor config because it was undefined
2019-10-03 14:40:57 -07:00
Charles Lyding
72d1bf3c52 refactor(@angular-devkit/build-angular): support reading i18n project options 2019-10-03 14:40:31 -07:00
Charles Lyding
1cefbc6974 refactor(@angular-devkit/build-angular): process bundle code quality improvements 2019-10-03 14:40:31 -07:00