4590 Commits

Author SHA1 Message Date
Charles
b0b3212719 fix(@ngtools/webpack): cleanup more resources after modules are loaded (#15292)
* feat(@angular-devkit/core): support resetting a memory host

* fix(@ngtools/webpack): cleanup more resources after modules are loaded

Followup to #12994
2019-08-12 10:26:19 -07:00
Charles
64ff17d57f refactor(@angular-devkit/architect-cli): minor package cleanup (#15289) 2019-08-12 10:24:59 -07:00
Renovate Bot
125d5d6465 build: update sass-loader to version 7.2.0 (#15285) 2019-08-12 10:24:38 -07:00
Renovate Bot
e4432aac74 build: update circular-dependency-plugin to version 5.2.0 (#15281) 2019-08-12 10:22:47 -07:00
Renovate Bot
adfed3223b build: update @angular/animations to version (#15280) 2019-08-12 10:22:31 -07:00
Alan Agius
0111693271 Ivy build_ng_packagr (#15262)
* test: update ng-packagr builder tests to work on Windows

* build: add ng packagr test large for ivy

* test: fix web-worker test in ivy

Previously, we were not testing web workers under Ivy as we were overriding tsconfig.app.json entirely without including enableIvy.

When enabling Ivy we are getting warning of files that are part of the compilation which causing a warning to show and break the test.

* build: update ng-packagr to `^5.4.0`

* test: display ivy mode message once
2019-08-12 10:20:02 -07:00
Alan Agius
99ba5ebaf7 feat(@ngtools/webpack): add support for raw-loader 2 and 3 (#15311)
With this change we add support for raw-loader 1, 2 and 3.

In version 2 raw-loader released a breaking change https://github.com/webpack-contrib/raw-loader/releases/tag/v2.0.0 and now they use ES Module export instead of CommonJS.

Closes #15286 and closes #15149
2019-08-12 10:19:11 -07:00
Renovate Bot
32449fc56a build: update webpack to version 4.39.1 (#15229) 2019-08-10 10:15:53 -07:00
Keen Yee Liau
efd1c48e2d release: v8.3.0-next.1 v8.3.0-next.1 2019-08-08 09:16:23 -07:00
Renovate Bot
021fb33a58 build: update @angular/animations to version 2019-08-08 08:28:46 -07:00
Filipe Silva
4826378706 fix(@angular-devkit/build-angular): consider local decl in angular core files to be metadata too
Followup to https://github.com/angular/angular-cli/pull/15239, fixes a 6kb size regression in new apps, potentially more in larger apps.

Local declarations inside `@angular/core` files should also be considered metadata and scrubbed.
2019-08-08 08:28:20 -07:00
Renovate Bot
38088d1c58 build: update file-loader to version 4.2.0 2019-08-08 08:27:52 -07:00
Charles Lyding
5a7b823b28 test: remove use of deprecated synchronous test helper runSchematic 2019-08-08 08:27:31 -07:00
Renovate Bot
d54b767a83 build: update style-loader to version 1.0.0 2019-08-08 08:27:01 -07:00
Renovate Bot
44f9141a56 build: update webpack-sources to version 1.4.3 2019-08-08 08:26:45 -07:00
Renovate Bot
678846fe85 build: update caniuse-lite to version 1.0.30000989 2019-08-08 08:26:26 -07:00
Charles Lyding
1c6f665c4f feat(@angular-devkit/build-angular): implement bundle level downleveling to support differential loading 2019-08-08 08:26:15 -07:00
Charles Lyding
4183d16e81 fix(@angular-devkit/build-angular): additional ES5 browser polyfills based on babel usage analysis 2019-08-08 08:26:15 -07:00
Charles Lyding
74536d0df0 refactor(@angular-devkit/build-optimizer): update to use latest source-map version (0.7.3)
The latest version provides significant performance improvements.
2019-08-08 08:26:15 -07:00
Charles Lyding
402349d763 test: remove unused code coverage infrastructure
Closes #13228
It is currently unused and requires an old version of the `source-map` package.  This old version conflicts with the use of newer versions that are required to provide the necessary functionality and performance within the published packages.
2019-08-08 08:26:15 -07:00
Alan Agius
d7b9650b5f refactor(@schematics/angular): remove hardcoded default values
Defaults in code are no longer required as the root issue was solved by https://github.com/angular/angular-cli/pull/15222
2019-08-08 08:25:50 -07:00
Alan Agius
9478ee9c47 fix(@ngtools/webpack): gracefully show error when compiling broken component styles
Fixes #15240
2019-08-05 18:01:53 -07:00
Alan Agius
2b1e936c9a test: fix failing prod build snapshots
The output of a prod build contains now:
```
bootstrapModuleFactory($l).catch(e=>console.error(e))}
```

Which is not being matched with the previously defined RegExp
2019-08-05 18:01:25 -07:00
Filipe Silva
533e4eaf0f ci: add flake jail 2019-08-05 18:00:54 -07:00
Alan Agius
f4be0ba677 fix(@ngtools/webpack): display unused file warning once per file 2019-08-05 18:00:13 -07:00
Filipe Silva
fbea65b371 fix(@angular-devkit/build-angular): use GLOBAL_DEFS_FOR_TERSER_WITH_AOT if present
Fix #15206
2019-08-05 17:59:42 -07:00
Alan Agius
8aa99bd288 refactor(@schematics/angular): remove unused schema properties from workspace schema
workspace schematic is internal and hence we can safely remove unused properties.
2019-08-05 17:58:21 -07:00
Alan Agius
6f0e7bf437 fix(@angular-devkit/core): add schema defaults when value is undefined
Related to https://github.com/angular/angular-cli/pull/15207#discussion_r309175463
2019-08-02 13:41:45 -07:00
Alan Agius
195e493a66 fix(@angular-devkit/build-angular): various breakpoints issues
With this change we address 2 main issues related to unbound breakpoints:
1) in VS code when having a `baseHref` set.
2) Visual Studio when using an SPA inside a ASP.NET project

For the latter, it seems that there is no way to set a `webRoot`. However, `webpack:///` seems to be handled internally and will be mapped to the `SpaRoot` ie `ClientApp` folder.

Fixes: #15211
2019-08-02 13:41:16 -07:00
Filipe Silva
804c11de8d fix(@angular-devkit/build-optimizer): scrub all metadata form @angular/core
We used to keep a specifier list of known  specifiers to identify the `@angular/core` FESM. But it doesn't work for non-FESM bundles, and we already pass that information on anyway.
2019-08-02 13:35:39 -07:00
Filipe Silva
fefa2ef15c fix(@angular-devkit/build-optimizer): scrub previously whitelisted angular classes
This whitelist a leftover from older Angular versions and isn't necessary anymore.

Fix #15194
2019-08-02 13:35:39 -07:00
Alan Agius
0fd7abb818 refactor: cleancss-webpack-plugin to use async/await 2019-08-02 13:35:22 -07:00
Renovate Bot
16f490b673 build: update terser-webpack-plugin to version 1.4.1 2019-08-02 13:35:09 -07:00
Amadou Sall
c4a3262ee2 fix(@schematics/angular): the ng-new schematic should not prompt for style
closes #13383
2019-08-02 13:34:26 -07:00
Amadou Sall
5b3c608682 fix(@schematics/angular): the ng-new schematic should not prompt for routing
refs #13383
2019-08-02 13:34:26 -07:00
vikerman
01e9c673fa release: v8.3.0-next.0 v8.3.0-next.0 2019-07-31 14:48:49 -07:00
Renovate Bot
bf47da3065 build: update webpack-sources to version 1.4.1 2019-07-31 13:27:14 -07:00
Renovate Bot
f3f9516c5f build: update source-map-support to version 0.5.13 2019-07-31 13:27:01 -07:00
Renovate Bot
f28822b819 build: update caniuse-lite to version 1.0.30000988 2019-07-31 13:26:49 -07:00
Renovate Bot
85bbe90d6d build: update @angular/animations to version 2019-07-31 13:26:36 -07:00
Renovate Bot
3902d5f2d3 build: update verdaccio to version 4.2.0 2019-07-31 13:26:19 -07:00
Pavel Březina
51622bdeaf fix(@angular-devkit/architect): add target to ScheduleOptions to allow its use in context.scheduleBuilder
A custom builder can call `context.scheduleBuilder` to call another builder.
However, the following call will fail with `Must either have a target from
the context or a default project.` exception because `scheduleBuilder` does
not pass `target` to the called builder.

```typescript
import { JsonObject } from '@angular-devkit/core'
import { BuilderContext, BuilderOutput, BuilderRun, createBuilder } from '@angular-devkit/architect';
import { Observable, from } from 'rxjs';
import { concatMap, map } from 'rxjs/operators';

export default createBuilder(_customBuilder);

function _customBuilder(options: JsonObject, context: BuilderContext): Observable<BuilderOutput> {
    const builder = '@angular-devkit/build-angular:browser';

    return from(context.scheduleBuilder(builder, options)).pipe(
        concatMap(run => run.result)
    );
}
```

Resolves:
https://github.com/angular/angular-cli/issues/15053
2019-07-31 13:22:11 -07:00
mgechev
5df50bacbe feat(@angular/cli): implement deploy command 2019-07-30 21:07:50 -07:00
vikerman
4287d57a32
fix(@angular/cli): typo in error message
Fixes #15208
2019-07-30 14:34:29 -07:00
Alan Agius
f7c7619556 fix(@angular-devkit/build-angular): escape dot in js extensions to match literally
Closes #15195
2019-07-30 14:25:21 -07:00
Alan Agius
20b16a247a fix(@angular-devkit/build-optimizer): don't wrap classes which static properties have been removed
At the moment the `wrap-enums` transfomers is being run prior to `scrub-file` and this is resulting classes which all static properties have been dropped to be wrapped in IIFE.
2019-07-30 14:25:06 -07:00
Renovate Bot
e1c616b0f6 build: update caniuse-lite to version 1.0.30000987 2019-07-30 14:24:14 -07:00
Renovate Bot
8d5f94f13c build: update sass to version 1.22.9 2019-07-30 14:23:52 -07:00
Renovate Bot
3a32dea8d9 build: update @angular/animations to version 2019-07-30 14:23:39 -07:00
Renovate Bot
36e7f02000 build: update karma-coverage-istanbul-reporter to version ~2.1.0 2019-07-30 14:23:20 -07:00