2722 Commits

Author SHA1 Message Date
Charles Lyding
1188e35b27 refactor(@angular-devkit/build-angular): minor CSS processing cleanup 2018-07-23 11:43:49 +01:00
Charles Lyding
1080357683 fix(@schematics/angular): update protractor to 4.5 for new projects
Partially addresses #10963
2018-07-23 11:39:44 +01:00
Filipe Silva
290929c0bd fix(@angular-devkit/build-angular): only add ngsw after universal has rendered 2018-07-20 21:21:19 +01:00
Filipe Silva
d2984e0a15 test(@angular-devkit/build-angular): add failing app-shell + sw test 2018-07-20 21:21:19 +01:00
Filipe Silva
a532bf82c1 test(@angular-devkit/build-angular): add app-shell route test 2018-07-20 21:21:19 +01:00
Paul Gschwendtner
7ba94c8084 fix(@angular-devkit/build_angular): add loader-utils as dependency
* The `loader-utils` package is actively used in the `@angular-devkit/build_angular` package, and should therefore also list `loader-utils` as dependency. It might work for most package managers that do flatten the node modules, but if not (e.g. pnpm) this will fail *correctly*.
2018-07-20 09:29:19 +01:00
Mike Brocchi
b10374fa90 docs: update the github issue template 2018-07-19 12:46:51 -05:00
Mike Brocchi
4106a89de1 docs: Add app shell story. 2018-07-19 10:50:41 +01:00
Hans
18de4f4db8 revert: "fix(@ngtools/webpack): improve fallbacking for path mapping"
This reverts commit 47f937e28f0a9d82997bd29630a8b3b92f44c0f5.

This commit had a few issues detected by the NativeScript project. It is
likely that they would have affected more users (and libraries) and so
it is safer to revert now and investigate later. Will likely be fixed in
6.2 by refactoring this whole plugin properly.
2018-07-18 18:12:59 -05:00
Hans
0a329d644d revert: "fix(@ngtools/webpack): fix resolution fallback of paths-plugin"
This reverts commit 0bef5aa4be0a793ad096208efbb925ab98b39251.
2018-07-18 18:12:59 -05:00
Teamop
8475b3dadb fix(@angular-devkit/build_angular): use webpack 4 hooks for karma plugin 2018-07-16 09:34:55 -07:00
Charles Suttie
7c00838f19 docs: update ci story
update the CircleCi and Travis configurations
update ng test and ng e2e command flags for version 6
use headless chrome instead of chrome
add guidance on ChromeDriver

closes #10677
2018-07-14 22:04:44 -07:00
Filipe Silva
6165cdfc3f fix(@ngtools/webpack): don't add resource sourcemap to parent compilation
Fix #9980
2018-07-14 22:03:47 -07:00
banjankri
09d019e733 changing order of event and coverage reporters
Fixing an issue when event reporter is executed before coverage reporter, which was causing the test command to pass even though unit testing coverage thresholds were not met.
2018-07-13 08:23:08 -07:00
Charles Lyding
839c1f8a8d test(@angular-devkit/build-angular): add file replacement watch test
courtesy of @filipesilva
2018-07-12 15:53:29 -07:00
Charles Lyding
c899c56364 refactor(@angular-devkit/build-angular): allow webpack plugin to use default host 2018-07-12 15:53:29 -07:00
Charles Lyding
56cd6f75ae refactor(@ngtools/webpack): use webpack input filesystem as default host 2018-07-12 15:53:29 -07:00
Charles Lyding
b10c42c721 fix(@angular-devkit/build-angular): fix webpack hostadapter return types 2018-07-12 15:53:29 -07:00
Charles Lyding
d8840d59c2 refactor(@ngtools/webpack): support function-based host file replacement 2018-07-12 15:53:29 -07:00
Charles Lyding
29d2c8aeeb fix(@angular-devkit/core): allow use of ResolverHost 2018-07-12 15:53:29 -07:00
Charles Lyding
0653f12d28 test(@angular/cli): add E2E test for file replacement watching 2018-07-12 15:53:29 -07:00
Charles Lyding
d09d739b60 fix(@ngtools/webpack): support watching file replacements 2018-07-12 15:53:29 -07:00
Charles Lyding
56fb5ebce0 refactor(@angular-devkit/build-angular): use plugin for file replacement 2018-07-12 15:53:29 -07:00
Charles Lyding
0a8a797268 refactor(@ngtools/webpack): support file replacement without copying 2018-07-12 15:53:29 -07:00
Hans
0bef5aa4be fix(@ngtools/webpack): fix resolution fallback of paths-plugin
If there is a package.json we should also verify that it has a main or fesm field
to see if webpack would actually resolve it properly. Otherwise use the JavaScript
resolution.

This is a temporary fix and still has obvious limitations and issues. Namely, this
code is never run if there is only one path mapping, but that falls outside the
scope of this fix. Also, some people might have valid packages but want to resolve
to the JS file itself (which is what TypeScript does by default). These should be
fixed with a refactoring of the path plugin.

Fixes https://github.com/nativescript/nativescript-dev-webpack/issues/607
2018-07-12 09:26:36 -07:00
Hans
91e7c3eb96 test: remove unused test directory and remove @ from paths 2018-07-12 09:26:36 -07:00
Hans
a0978b1db3 refactor: fix types to remove any
require() returns any so we were missing some typing errors.
2018-07-11 13:35:35 -07:00
Hans Larsen
483cbe2665 refactor: add tslint-sonarts and a lot of tslint rules
This should clean up the code a bit.

Note: at first I added the no-useless-cast rule, but after getting frustrated
with it (as it has many false positive), I decided to remove the rule but some
useless casts were removed so I let those in the PR.
2018-07-10 15:07:36 -07:00
Hans Larsen
c1702d3579 refactor: add no-floating-promises lint rule to project
With fixes; new now handles the parent initialize, visitor_spec now errors on
rejection, and nothing in the writeI18nOutFile() function was async so removed
the promise there entirely.
2018-07-10 15:07:36 -07:00
Hans
cb588b68b3 fix(@angular-devkit/build-angular): use the internal buildWebpackConfig method
Instead of directly calling the browser builder. This means it can be overridden by
subclasses.
2018-07-10 12:55:27 -04:00
Filipe Silva
3529096a53 fix(@angular-devkit/build-angular): don't add hash to lazy styles
Fix #11235
2018-07-10 10:38:10 -04:00
Alex Eagle
63389e5028 build: fixes needed in google3 2018-07-09 16:14:18 -07:00
Hans
436c5b3314
release: v6.1.0-rc.1 2018-07-09 13:17:18 -07:00
Filipe Silva
c97852e83f test: remove build optimizer integration test
Testing the size of a simple app is now done directly in the large specs inside devkit/build-angular.

The Angular.io test was very out of date, and Angular.io now keeps track of its bundle size much better than we ever did.
2018-07-09 11:09:23 -07:00
Filipe Silva
54047d7b71 test(@angular-devkit/build-angular): test build-optimizer reduction 2018-07-09 11:09:23 -07:00
Alan Agius
43e21ab606 refactor: fix path for workspace-loader 2018-07-09 09:38:58 -04:00
Alex Eagle
773984dac3 build: fixes needed in google3
We have an older version of Jasmine that doesn't support generics in this spot
2018-07-06 16:33:50 -04:00
Charles Lyding
eec5262bbe refactor(@ngtools/webpack): remove unneeded tsconfig 2018-07-06 09:13:20 -04:00
Charles Lyding
28e8f06602 refactor(@ngtools/webpack): cleanup webpack types and use tapPromise 2018-07-06 09:13:20 -04:00
Filipe Silva
4487e9df53 test: shard test-large 2018-07-06 09:09:52 -04:00
Alan Agius
1809438e30 docs: update commands in ci
Closes: #11379
2018-07-06 08:51:20 -04:00
Filipe Silva
3e3dffba8e fix(@angular-devkit/architect): unsubscribe on timeout in runTargetSpec
This way cleanup logic runs on timeout.

It also simplifies timeout definition for runTargetSpec and Jasmine.
2018-07-05 11:43:11 -04:00
Filipe Silva
b9a8fd1392 fix(@angular-devkit/core): propagate node host delete errors 2018-07-05 11:43:11 -04:00
Filipe Silva
aa3901964d fix(@angular-devkit/architect): always clear TestProjectHost on restore 2018-07-05 11:43:11 -04:00
Filipe Silva
e6be44ff7f ci: use node 8 in appveyor
Workaround for https://github.com/nodejs/node/issues/20297
2018-07-05 11:43:11 -04:00
Filipe Silva
67ffe5ea19 fix(@angular-devkit/build-angular): update node-sass
Removes some of the security warnings for node-sass, but not all.

See https://github.com/sass/node-sass/issues/2355#issuecomment-402482975 for a summary.
2018-07-05 11:02:13 -04:00
Filipe Silva
5e7f7dea26 fix(@angular-devkit/build-angular): add missing deploy-url to server
Fix https://github.com/angular/angular-cli/issues/11426
2018-07-05 10:01:40 -04:00
Charles Lyding
df409e67ef fix(@angular-devkit/build-angular): downgrade sass-loader to 6.0.7
Fixes: #10535
2018-07-03 19:22:07 -04:00
Charles Lyding
9582b84603 fix(@angular-devkit/schematics): implement HostTree specific filtering 2018-07-03 12:52:22 -04:00
Charles Lyding
61d2181f85 fix(@angular-devkit/schematics): support VirtualTree/HostTree interop 2018-07-03 12:52:22 -04:00