244 Commits

Author SHA1 Message Date
Robert Baker
e8f18b71b1 fix(@angular-devkit/build-angular): fixes hash comparison for service worker (#11865) 2018-08-15 15:51:03 -07:00
Adrian Moos
b8d4e19fc4 fix(@angular-devkit/core): detect mingw terminal as color capable (#11834)
restoring color to git-bash users under windows

Fixes #11833
2018-08-15 15:48:46 -07:00
Corinna Cohn
f46869d4ed refactor(@angular-devkit/build-angular): mute internal reporters (#11238)
* refactor(@angular-devkit/build-angular): mute internal reporters when
other reporters are configured

internal Karma reporters should suppress output when user-defined
reporters are configured to prevent extrananeous error reporting for
failed tests

* refactor(@angular-devkit/build-angular): mute internal reporters when
other reporters are configured

internal Karma reporters should suppress output when user-defined
reporters are configured to prevent extrananeous error reporting for
failed tests
2018-08-14 07:29:40 -07:00
Mike Brocchi
ae9817b7ee feat(@angular/cli): Update commands to extract meta data into JSON 2018-08-13 20:58:47 -07:00
Hans Larsen
f3e389bd8c feat(@angular-devkit/schematics): add .template as an extension
New rules to deal with templates using a .template extension. Apply the template only
to those files, then remove the .template suffix.

Also added a new rename() rule that takes a matcher and a renamer. Nothing big there.

Also added a new composeFileOperator() that compose operators one after the other.
2018-08-13 16:59:32 -07:00
qiyi
cd8801ca7b fix(@angular-devkit/schematics): fix issues in google (#11857)
1. update the return type of 'validateOptionsWithSchema' to make it
conform the signature of engineHost.registerOptionsTransform
2. fix minor naming issue
2018-08-13 12:31:26 -07:00
Charles Lyding
c729b0e7d9 build: use yarn workspaces 2018-08-10 18:25:32 -07:00
Charles Lyding
2cb4ac5f77 fix(@angular-devkit/build-angular): cleanup serviceworker direct import 2018-08-10 18:25:32 -07:00
Hans Larsen
cf9f86e743 feat(@angular/cli): add tree shaking of ngDevMode if compiling in prod
Whether Ivy is on or not does not matter.
2018-08-09 19:37:53 -04:00
Filipe Silva
8fd1040361 fix(@angular-devkit/build-angular): use process TTY as progress default
Fix #11195
2018-08-07 17:20:02 +01:00
Alexander Bobrov
b465930d42 refactor(@angular-devkit/build-angular): remove unnecessary stylus-loader workaround
Remove unnecessary stylus-loader workaround. Issue, from which this workaround originates, is resolved. Link to issue in stylus-loader: https://github.com/shama/stylus-loader/issues/189
2018-08-07 16:18:40 +01:00
Lukáš Matta
be5d3b0536 docs: fix schematics-cli url 2018-08-07 10:39:56 +01:00
Alan Agius
1a255e6e4e build: bump TypeScript to 2.9 2018-08-04 16:23:37 +01:00
Daniel Imhoff
91c18ce7bf feat(@angular-devkit/core): respect FORCE_COLOR env var behavior
Currently, there is no mechanism in the Angular tooling to forcefully
output colors regardless of detected terminal capabilities. This commit
adds an override via an environment variable: `FORCE_COLOR`. The
behavior in this commit is the same as the behavior in a commonly used
module, `supports-color` (https://github.com/chalk/supports-color#info).
This is especially useful when piping output from the Angular CLI, which
would automatically and irreversibly disable colors before this commit.
2018-08-04 12:42:55 +01:00
Yi Qi
b834014bb1 build: Fix all the BUILD files for google3 2018-08-03 23:32:10 +01:00
Alan Agius
d77304b700 refactor: remove extra . in error message 2018-08-03 14:32:44 -04:00
Mike Brocchi
1370ac02bb fix(@angular-devkit/build-angular): Fix initial chunk logic for bundle budgets
fixes #11712
2018-08-03 12:39:38 -04:00
Yi Qi
02de5cd3ad fix(@angular-devkit/schematics): Fix issues for file-syetem-engine running in google3
Pass 'name' as part of FileSystemCollectionDesc when creating
collection description.
2018-08-02 16:02:21 -04:00
Hans Larsen
2d3f52f942 feat(@angular-devkit/core): better support for JSON5
Supports for new lines and hexa was useful for doc and descriptions (including
schematics and builder declarations). Adding the other numerical constants was
easy enough. This fully completes JSON5 support.
2018-08-02 13:32:54 -04:00
Alan Agius
764591cfb0 fix(@angular-devkit/build-angular): --vendor-source-map doesn't work on ng serve
Closes #11715
2018-08-02 08:55:53 -04:00
Hans Larsen
2ba1f16295 refactor(@angular-devkit/schematics): add a BaseWorkflow which implements logic
And receives in its constructor the enginehost and registry. This simplifies the creation
of the NodeWorkflow, or later on the Google3Workflow etc, since all the duplicate logic
is now in a single base class.

This is yak shaving for internal stuff.
2018-08-01 11:41:49 -04:00
Charles Lyding
84ec3022c2 fix(@angular-devkit/build-angular): ensure failure with disabled AOT and enabled build optimizer
Fixes #11157
2018-07-30 08:07:03 -07:00
Charles Lyding
232da546e7 feat(@angular-devkit/core): add not/anyOf/allOf/oneOf support to undefined defaults 2018-07-30 08:06:12 -07:00
Charles Lyding
2dbd0894d0 feat(@angular-devkit/core): add a schema for smart default keyword 2018-07-30 08:06:12 -07:00
Alan Agius
d669dd64a8 feat(@angular-devkit/build-ng-packagr): add support for watch when building a library
`ng-packagr` version `4.0.0-rc.3`, lands the incremental builds feature.

More info:  https://github.com/dherges/ng-packagr/blob/master/CHANGELOG.md#400-rc2-2018-06-23

`enableResourceInlining` needs to be enabled for libraries that contain components

Closes: #10643
2018-07-30 06:41:28 -07:00
Alan Agius
c8240d9030 test(@angular-devkit/build-ng-packagr): add tests for watch mode 2018-07-30 06:41:28 -07:00
Hans Larsen
07c73a1e21 fix(@angular-devkit/schematics): implement optimize() for HostTree
Its only used by old Schematics library, which can end up in there. Since optimization
is only a thing for VirtualTree, HostTree returns itself.
2018-07-27 13:20:15 -07:00
Hans
d67a4bf535 feat(@angular-devkit/schematics): allow tslintfix task on files
Before we only allowed tsconfig files (with includes added). This is necessary
for the lint fixing for schematics to target specific files.

Also added a feature that look for the tslint.json file if no tslint.json
file or configuration object was passed. Skipping the first argument to the
task constructor will look for the tslint closest to EVERY files being
linted.
2018-07-25 21:27:47 -07:00
Filipe Silva
f9555021c4 feat(@angular-devkit/build-angular): update to webpack@4.15.1
Followup to #11232, includes fix for webpack/webpack#7499.
2018-07-25 22:55:22 +01:00
Hans
9177bf9128 feat(@angular-devkit/schematics): allow path templates to override some options
Like the interpolation and the pipe character. The default behaviour is kept.

We will need to use those to work around some limiations of the google3 file system which
does not accept "@".
2018-07-25 22:54:51 +01:00
Hans
8b7516d9b3 refactor: types for content should be a pure template
Limitting it to a subset of JSON values is limiting. Templates can call functions,
list arrays, access classes, etc.
2018-07-25 22:54:51 +01:00
Alan Agius
1caf708dca feat(@angular-devkit/build-ng-packagr): update ng-packagr to version 4 2018-07-25 22:54:22 +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
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
Charles Lyding
1188e35b27 refactor(@angular-devkit/build-angular): minor CSS processing cleanup 2018-07-23 11:43:49 +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
Teamop
8475b3dadb fix(@angular-devkit/build_angular): use webpack 4 hooks for karma plugin 2018-07-16 09:34:55 -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
b10c42c721 fix(@angular-devkit/build-angular): fix webpack hostadapter return types 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