673 Commits

Author SHA1 Message Date
Filipe Silva
d546b83e04 fix(@angular-devkit/architect): error run on input schema error (#14315)
Fix #14269
2019-05-07 12:37:56 -06:00
clydin
4177b563c5 refactor(@angular-devkit/schematics): minor rule cleanup (#14313) 2019-05-07 12:35:57 -06:00
Renovate Bot
e0246e2bc5 build: update less-loader to version 5.0.0 (#14308) 2019-05-07 12:35:36 -06:00
Filipe Silva
300ea1f723 remove unused ascii-progress library, resolve toplevel browserslist to 4.5.5 (#14303)
* build: remove unused ascii-progress library

Ran into https://github.com/bubkoo/ascii-progress/issues/8 on Windows, but we don't even use this dependency anyway.

* build: resolve toplevel browserslist to 4.5.5

Prevents `BrowserslistError: Unknown browser kaios` error on test-large due to browserslist version skew between hoisted packages.
2019-05-07 12:34:54 -06:00
Alan Agius
16ce92d77a fix(@angular-devkit/build-angular): e2e does not respect dev-server host and port settings (#14165)
Fixes #14151
2019-05-07 12:32:57 -06:00
Alan Agius
968204fa2a refactor(@angular-devkit/architect): remove _registry from being a private (#14182) 2019-05-07 12:31:45 -06:00
Renovate Bot
1f92015863 build: update copy-webpack-plugin to version 5.0.3 (#14268) 2019-05-07 12:31:04 -06:00
Renovate Bot
da1f3386d0 build: update typescript to version 3.4.5 (#14258) 2019-05-07 12:30:53 -06:00
Charles Lyding
8089a3fb76 fix(@angular-devkit/core): support writing an empty object workspace 2019-04-29 10:34:40 -07:00
Alan Agius
b2262e93c1 fix(@angular-devkit/build-angular): live reload cannot be disabled
By default the application will be served with inline mode enabled. This means that a script will be inserted in your bundle to take care of live reloading.

However at the moment we are already adding these scripts in `_addLiveReload` method.

With this change we always disable this behaviour and only add it when needed via the `_addLiveReload` logic.

Eventually we should try to remove the logic and rely on webpack-dev-server interals.

Fixes #14300
2019-04-29 10:33:09 -07:00
Kara
29609fb078 Merge pull request #14287 from kara/revert-pure-getters
Revert "fix(@angular-devkit/build-angular): remove pure_getters"
2019-04-26 12:13:59 -07:00
Charles Lyding
5f248204ec fix(@angular-devkit/architect): propagate option validation errors
By using the `SchemaValidationException` object, the underlying JSON schema validation errors will be propagated to the consuming code.  This allows for more detailed error reporting of malformed or incorrectly provided options.

Partially addresses #14269
2019-04-26 10:26:47 -07:00
Charles Lyding
5b4b78bfbb feat(@angular-devkit/build-angular): use evergreen version of zone.js with ES2015 2019-04-25 12:12:29 -07:00
Charles Lyding
e3a36c4d9f fix(@angular-devkit/build-angular): skip version check if unit-testing 2019-04-25 10:23:25 -07:00
Charles Lyding
b7a26fa08b fix(@angular-devkit/build-angular): add Angular version check into required builders 2019-04-25 10:23:25 -07:00
Alan
ccbac7cd21 fix(@angular-devkit/build-optimizer): don't add pure comments in call expressions
When we removed tsickle from the library compilation pipeline the emitted JS changes for Classes.

With tsc a class can be of kind CallExpression because of this syntax
```
let Foo = class Foo {
	constructor() {
		this.isExpandedChange = new EventEmitter();
	}

	set isExpanded(value) {
		this.isExpandedChange.emit(value);
	}
};
```

In such case we shall not add `/*@__PURE__*/` inside this class

Fixes #14084
2019-04-24 07:17:26 -10:00
Filipe Silva
eec39a20c3 fix(@angular-devkit/build-angular): use known Terser global defs
Followup to https://github.com/angular/angular/pull/29929
2019-04-24 07:11:21 -10:00
Filipe Silva
c8b4f4a57c build: update to Angular 8.0.0-beta.14 2019-04-24 07:11:21 -10:00
Filipe Silva
9a9939fc4e fix(@angular-devkit/build-angular): remove pure_getters
When we first started using Build Optimizer, we saw a lot of the savings were tied to using the Uglify/Terser `pure_getters` option.

This was intimately related with the structure and shape of the Angular codebase. The measurements we did at the time on angular.io showed a significant size reduction, from 1mb to about 600kb. Of these roughly 150kb were tied to using `pure_getters` if I remember correctly.

Meanwhile the Angular codebase has changed significantly and I don't really see these savings anymore, so I don't think it makes sense to keep it on given that it is known to cause problems with some libraries.

Closes #9231, #11439, #12096, #12128.
2019-04-24 07:11:21 -10:00
Filipe Silva
adf46c2bd5 fix(@angular-devkit/build-angular): pass system path to readTsconfig 2019-04-24 06:32:01 -10:00
Renovate Bot
a53b206603 build: update open to version 6.2.0 2019-04-23 14:31:07 -10:00
Alex Eagle
d88175ddf1 Revert "build: update rxjs to version 6.5.1"
This reverts commit c4613ced63a901fe327e062d2be474d72ccc56f1.
2019-04-23 11:23:51 -07:00
Charles Lyding
5c969ea417 refactor(@angular-devkit/core): simplify workspace project/target addition
By returning the newly added project/target, it becomes easier to incrementally augment the new addition.
2019-04-23 10:00:15 -07:00
Renovate Bot
c4613ced63 build: update rxjs to version 6.5.1 2019-04-23 08:07:56 -07:00
Alan Agius
8fcf9a4401 fix(@angular-devkit/core): host.delete() completes but never emits
RxJS `EMPTY` creates an Observable that emits no items immediately emits a complete notification.

Fixes #14235
2019-04-23 08:03:35 -07:00
Alan Agius
faa4d8d144 fix(@angular-devkit/build-angular): set correct peerDependencies for TypeScript
In version 8, we support only Angular 8+ which only supports TypeScript >=3.4 < 3.5
2019-04-23 08:02:56 -07:00
Filipe Silva
0f9de92dcb feat(@angular-devkit/build-angular): remove experimentalImportFactories option
It will just be always be used when applicable.

Fix #14218
2019-04-22 16:16:58 -07:00
Charles Lyding
74ec9110b0 refactor(@angular-devkit/build-angular): remove unused type 2019-04-22 13:37:46 -07:00
Minko Gechev
36be8cd42e feat(@angular-devkit/build-angular): warn when target greater es2015
When using differential loading with targets ES5 and ES2016+, the
browser with ESM support will pick `script[type="module"]` scripts even
without supporting ES2016+ syntax.

We want to warn users in this case.
2019-04-22 11:32:48 -07:00
Alex Eagle
a197615549 build: update jasmine_node_test rules to come from npm 2019-04-22 08:38:00 -07:00
Alex Eagle
ee619c9a34 build: run Bazel format/lint fix 2019-04-22 08:38:00 -07:00
Alan Agius
96fe7686aa docs: update description for deleteOutputPath in server builder 2019-04-19 10:56:14 -07:00
ManfredSteyer
201856a5ec fix(@angular-devkit/build-angular): run build steps for differential loading in sequence to avoid confusing progress information
Before, the build tasks ran in parallel and so the different webpack
instances competed over the same lines on the console.

To fail fast and to prevent to show the same errors twice, the second
build step is not executed if the first one fails.

As running these tasks in sequence causes issues with watch mode, this
PR also disables differential loading when watch mode is requested.
2019-04-19 10:54:51 -07:00
Renovate Bot
4807ff00d1 build: update sass to version 1.19.0 2019-04-19 10:53:52 -07:00
Renovate Bot
217afe5def build: update typescript to version 3.4.4 2019-04-19 10:53:37 -07:00
Minko Gechev
7a935518dc refactor(@angular-devkit/build-angular): compare the target with
ScriptTarget

Compare with ScriptTarget and consider ES2017 and newer.
2019-04-19 10:48:43 -07:00
Alan
407d1d5b49 fix(@schematics/angular): generate tsconfig.worker.json outside of the src folder
This is to align with the folder structure of version 8, were tsconfigs are outside of the `src` folder

Also, this change remove the dud `tsconfig.json` in the `src` folder and instead we add the triple slash lib reference `/// <reference lib="webworker" />` for IDE support.
2019-04-18 11:47:22 -07:00
Charles Lyding
2ee76e7371 refactor(@angular-devkit/build-angular): cleanup service-worker augmentation 2019-04-18 11:46:55 -07:00
Renovate Bot
356a638708 build: update browserslist to version 4.5.5 2019-04-18 11:46:35 -07:00
Alan Agius
1af164b39e refactor: rename es5 polyfills entrypoint name to polyfills-es5 2019-04-18 11:46:25 -07:00
Minko Gechev
d4a1c4fca8 fix(@angular-devkit/architect): consume the default export in TestingArchitectHost
Using the TestingArchitectHost architect is unable to execute the
handler of the builder since it needs to access its `default` property.
2019-04-16 12:58:38 -07:00
Charles Lyding
52a014dd23 fix(@angular-devkit/core): ignore undefined targets when adding a workspace project 2019-04-16 11:23:48 -07:00
Charles Lyding
a3811a7ad2 fix(@angular-devkit/core): ensure long workspace value changes are multiline 2019-04-16 11:23:48 -07:00
Minko Gechev
db3af22140 fix(@angular-devkit/architect): set proper name in TestingArchitectHost
The TestingArchitectHost registers the builders only using their name,
ignoring the package name. Later, when Architect looks up the builder
using the host, it's unable to find it.

You can find a reproduction
[here](https://github.com/mgechev/cli-builders-demo).
2019-04-16 09:42:18 -07:00
Renovate Bot
403579b020 build: update karma to version ~4.1.0 2019-04-16 09:40:58 -07:00
Charles Lyding
71ac097aff refactor(@angular-devkit/build-angular): standardize builder exports 2019-04-16 09:40:22 -07:00
Renovate Bot
5b4d1302bd build: update inquirer to version 6.3.1 2019-04-16 09:39:46 -07:00
Renovate Bot
609041815e build: update webpack to version 4.30.0 2019-04-16 09:39:27 -07:00
Alan Agius
5fc1f2499c feat(@angular-devkit/build-angular): deprecate es5BrowserSupport option in browser builder
In future, this will be determined from the list of supported browsers specified in the 'browserslist' file.
2019-04-16 08:44:19 -07:00
Charles Lyding
2b234546dd refactor(@angular-devkit/build-angular): add transform support to server builder 2019-04-15 11:32:02 -07:00