107 Commits

Author SHA1 Message Date
Filipe Silva
e17cc66f93 test(@angular-devkit/schematics): add bazel tests 2018-08-22 16:36:10 -07:00
Filipe Silva
a6028a7761 test(@angular-devkit/core): add bazel tests 2018-08-22 16:36:10 -07:00
Filipe Silva
b1ad957a15 build: update bazel workspace 2018-08-22 16:36:10 -07:00
Filipe Silva
6519745089 fix(@angular-devkit/build-angular): support inline javascript in less
Based on https://github.com/angular/devkit/pull/866
Fix https://github.com/angular/angular-cli/issues/10430
2018-08-22 11:52:49 -07:00
Alan Agius
2c858503ba fix(@angular-devkit/build-angular): tslint exclude for relative paths
Closes #11773
2018-08-21 11:17:47 -07:00
Alan Agius
718ee15b9a refactor: remove flatModuleId and flatModuleOutFile from library tsconfig
The autogenerated fiellds are no longer required following this PR https://github.com/dherges/ng-packagr/pull/1024

This has been released in `ng-packagr` `v4.1.0`
2018-08-21 10:16:38 -07:00
Charles Lyding
07c829d34b fix(@angular-devkit/schematics): improve tree type checking
Fixes #11683
2018-08-17 15:26:36 -07:00
Hans
f9ad0e27e7 refactor: move isJsonObject to json namespace 2018-08-17 11:20:54 -07:00
Hans
055a157356 feat(@angular-devkit/core): add json namespace export 2018-08-17 11:20:54 -07:00
Sibiraj
eb87002a12 feat(@angular-devkit/build-angular): update karma to v3 2018-08-17 10:39:27 -07:00
Alan Agius
9107f3cc4e docs: update optimization description (#11862)
At the moment, the definition might suggest that `optimization` takes some values other than `true` and `false`

Close: #11856
2018-08-15 15:58:22 -07:00
Filipe Silva
711d0c0ef4 fix(@angular-devkit/build-angular): update node-sass (#11831)
See https://github.com/sass/node-sass/issues/2355 for context.

Fix #11699
Related to #10963
2018-08-15 15:57:34 -07:00
Filipe Silva
af137809e8 fix(@angular-devkit/build-angular): update less (#11709)
Uses minimum versions listed in https://github.com/webpack-contrib/less-loader/issues/252#issuecomment-406416493

Fix #10899
2018-08-15 15:51:48 -07:00
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