2933 Commits

Author SHA1 Message Date
Filipe Silva
63b2b1148a test(@angular-devkit/build-angular): use targets instead of architect property 2018-07-25 20:17:33 +01:00
Filipe Silva
97f53b36d5 refactor(@angular-devkit/architect): use updated workspace api 2018-07-25 20:17:33 +01:00
Filipe Silva
aad5f83050 feat(@angular-devkit/core): support both 'targets' and 'architect' keys in workspace 2018-07-25 20:17:33 +01:00
Charles Lyding
a29a53e2ff fix(@angular-devkit/schematics): move rule with identity is a noop 2018-07-25 19:22:20 +01:00
Charles Lyding
43b850b8cb fix(@angular-devkit/core): rename to itself should be a noop 2018-07-25 19:22:20 +01:00
Alan Agius
9295217ce9 fix(@angular-devkit/build-angular): fix duplicate lint messages when having multiple tsconfigs
Closes #11633
2018-07-24 12:48:05 +01:00
Teamop
adb58617d9 fix(@angular-devkit/build-angular): should not log duplicate messages 2018-07-24 10:52:36 +01:00
Hans
d7e7cd2282 ci: fix validate script to properly report errors 2018-07-23 11:06:01 -07:00
George Kalpakas
e17a2edcc7 fix(@angular-devkit/build-angular): do not break with Jasmine's mock clock
Fixes #11164
Fixes #11626
2018-07-23 16:42:45 +01:00
George Kalpakas
ae3831b1e3 docs(@schematics/angular): fix typos in property descriptions 2018-07-23 16:42:45 +01:00
jsshandle
524807d6cf docs(@angular/cli): resolve HTTP 301 redirects 2018-07-23 13:33:15 +01:00
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