3639 Commits

Author SHA1 Message Date
Keen Yee Liau
a5738dbbf5 release: v8.0.0-beta.2 v8.0.0-beta.2 2019-02-21 10:27:30 -08:00
Renovate Bot
4a5084f3a3 build: update copy-webpack-plugin to version 5.0.0 2019-02-21 10:14:49 -08:00
Alan Agius
9bf8b3e65a fix(@schematics/angular): findModuleFromOptions not handling properly different casing in name
At the moment users can have various casing and seperatirs in paths, we should not always dasherize the name when resolving modules.

As for example when providing something like:

```
/module/SubModule/feature
```

It won't be able to resolve the modules properly as `sub-module` does't exist.

This PR also updates the test for underscore as previously it was not properly testing this usercase, since the formatter was used on name and not th path.

Fixes #13714
2019-02-20 17:14:26 -08:00
Amadou Sall
79aa8d602d fix(@schematics/angular): undefined is used as newProjectRoot when none is set
Fixes #13703
2019-02-20 17:13:50 -08:00
cipchk
1a927aca4d fix(@schematics/angular): fix missing semicolons in extensions.json.template 2019-02-20 10:37:19 -08:00
Charles Lyding
be5e2fbfe5 fix(@angular/cli): remove redundant typescript/compiler-cli compatibility check
Angular 5.0+ has a full peer dependencies setup (with 6.0+ also having a configurable runtime error check) to ensure that an appropriate version of typescript is available for compilation.  Angular CLI 8.0+ does not support Angular versions prior to these and therefore the warning is redundant.  For the case where the developer wishes to use an unsupported TypeScript version, the developer would need to adjust two similar but differently name settings in two different configuration files.
2019-02-20 10:36:52 -08:00
Renovate Bot
bd6fe982de build: update webpack-dev-middleware to version 3.6.0 2019-02-20 09:02:18 -08:00
Renovate Bot
2241e07c22 build: update autoprefixer to version 9.4.8 2019-02-20 09:02:06 -08:00
Alan
81acdd7066 fix(@schematics/angular): add file extensions to style prompt
This is causing major confusion as users are not aware that choosing `sass` will generate files with `scss` extension.

Another reason for this confusion is that in other schematics, `style` accepts either a preprocessor or file extension while in this prompt only a preprocessor is provided.
2019-02-19 13:58:32 -08:00
Alan Agius
89797900db fix(@schematics/angular): fixes issue that ViewEncapsulation is not being configured when provided
Fixes #13689
2019-02-19 13:57:05 -08:00
Charles Lyding
4751fc02d4 fix(@angular-devkit/build-angular): improve webpack loader resolution
Previously, all loaders either needed to be in the workspace's node modules directory or a node modules directory directly within the build angular package.  A package manager can potentially hoist a loader to a node modules location inbetween the two and causing loader resolution to fail.  This change causes webpack to check all intermediate node modules directories in addition to the initial two locations.
2019-02-19 13:56:35 -08:00
hrocha16
05e2a0eafe fix(@angular-devkit/build-angular): minimum threshold 2019-02-19 13:56:07 -08:00
Renovate Bot
9efa933937 build: update webpack to version 4.29.5 2019-02-19 13:51:53 -08:00
Hans Larsen
1aa1b47f90 feat(@angular-devkit/core): remove Log messages from Job API
If a system wants to have logging it should multiplex it itself on a channel.

Also changed the previous Architect commits to remove usage of Logs and move
to a "log" channel.
2019-02-19 13:51:29 -08:00
Hans Larsen
0f0f289bf7 fix(@angular-devkit/core): fix true schemas post transform step
Also tighten the types a bit, and add a test that failed before and works now.
2019-02-19 13:51:29 -08:00
Hans Larsen
558ef00523 feat(@angular-devkit/architect-cli): CLI tool to use new Architect API
Move the entire Architect CLI to use the new API, and report progress using
a progress bar for each worker currently executing. Shows log at the end
of the execution.

This is meant to be used as a debugging tool to help people move their builders
to the new API.
2019-02-19 13:51:29 -08:00
Hans Larsen
df1b56c251 feat(@angular-devkit/build-angular): move tslint to new API
It is only new files and the old builder is still available. The new
one can only be used by the new Architect API.
2019-02-19 13:51:29 -08:00
Hans Larsen
685d4d0c6c feat(@angular-devkit/architect): add generic architect builders
Four builders were added;
- true, always succeed
- false, always fails
- concat, runs all targets or builders in succession
- allOf, runs all targets or builders in parallel
2019-02-19 13:51:29 -08:00
Hans Larsen
79a6988275 feat(@angular-devkit/architect): add node architect host
This host resolves using the package resolution and reading the targets
from the workspace API.
2019-02-19 13:51:29 -08:00
Hans Larsen
68220f13e4 feat(@angular-devkit/architect): New Architect API first draft
The new API has been described in this design doc:
https://docs.google.com/document/d/1SpN_2XEooI9_CPjqspAcNEBjVY874OWPZqOenjuF0qo/view

This first drafts add support for the API (given some deep imports). It is
still in draft mode but is committed to make it available to people to
start testing and moving their own builders.

This API rebuilds (not backward compatible) the Architect API package. To
use it people will need to import "@angular-devkit/architect/src/index2"
to start using it. A reference builder will be added in the next commit.

There are 2 pieces missing from this commit that will be added in the
same PR; 1) the architect-host and CLI to test, and 2) a reference
builder moved from the old API to the new one. These will be part of
the same PR.

Finally, there are missing tests in this package, but everything tested
manually and automatically works so far. Test coverage will be added
before the package is considered finished.

Due to a desire to keep architect, our tests and the scope of this PR
limited and keep the two APIs separated, every clashing files will
have a "2" suffix added to it. Once all builders have been moved and
we are sure everything works, all those files will be moved to their
final destination and the old API will be removed, in one PR.
2019-02-19 13:51:29 -08:00
Hans Larsen
7023255c3d feat(@angular-devkit/core): jobs should re-log instead of forwarding
Current behaviour is to have logs forwarded, but this is flawed because on the
job side the logger is actually re-created. This allows logs to be actually part
of the caller side logging infrastructure.
2019-02-19 13:51:29 -08:00
Hans Larsen
81967900d0 feat(@angular-devkit/core): logger.log() should keep own metadata
It was possible to overwrite the metadata of the logger itself (name, path)
when calling "log()". This should not happen. If there is a need to overwrite
the loggers metadata itself one should use "next()" and construct or forward
their own log entry.
2019-02-19 13:51:29 -08:00
Hans Larsen
d856f8f8f8 feat(@angular-devkit/core): export terminal capabilities 2019-02-19 13:51:29 -08:00
Hans Larsen
b7a85c26e9 refactor: remove _/builders private package
It was only used when manually testing the old Architect.
2019-02-19 13:51:29 -08:00
Renovate Bot
6a41621966 build: update pacote to version 9.5.0 2019-02-19 10:15:30 -08:00
Renovate Bot
d5144c3bf3 build: update chokidar to version 2.1.2 2019-02-19 10:15:18 -08:00
Charles Lyding
94b087c9e1 fix(@angular-devkit/build-angular): disable by default stylesheet root relative URL rebasing
BREAKING CHANGE:
Root relative URLs are a standardized method to reference a resource path from the root of a host.  The previous behavior of the Angular CLI prevented this from occuring and resulted in an inability to reference stylesheet assets in this manner.  The initial reason for this behavior is no longer present in the internal implementation of the Angular CLI.  Therefore, this now unnecessary and non-standard behavior is being phased out.  If an application currently relies on this behavior, a compatibility option `rebaseRootRelativeCssUrls` has been provided for the 8.x release cycle to facilitate transition away from this non-standard and limiting behavior.  The recommended method to transition is to use relative paths within the source stylesheet.  This allows the build system to process and generate a full URL for the asset.
2019-02-19 10:14:46 -08:00
Alex Eagle
9f33253f36 refactor: use vendored supports-color 2019-02-18 18:44:56 -08:00
Alex Eagle
fae77e9257 build: vendor chalk/supports-color in third_party
Also requires vendoring its single dependency
2019-02-18 18:44:56 -08:00
Alex Eagle
33bade74af release: v8.0.0-beta.1 v8.0.0-beta.1 2019-02-18 07:43:06 -08:00
Renovate Bot
1bba17fa0d build: update webpack to version 4.29.4 2019-02-17 11:29:17 -08:00
Keen Yee Liau
040dcb8365 feat(@schematics/angular): Update rxjs to 6.4.0
6.4.0 is needed so that Bazel does not have to build rxjs from source

See [angular/angular#28720](https://github.com/angular/angular/pull/28720)
2019-02-17 10:38:52 -08:00
Louis Larry
32d85622ed fix(@angular-devkit/schematics): add aliases to collection-schema.json 2019-02-15 15:11:10 -08:00
Filipe Silva
91f5be769d fix(@ngtools/webpack): don't load ngfactories for lazy routes with Ivy
Supersedes https://github.com/angular/angular-cli/pull/13524
2019-02-15 15:10:55 -08:00
Charles Lyding
5016843c39 style(@angular-devkit/build-angular): remove comment reference to eject 2019-02-15 15:09:11 -08:00
Charles Lyding
31abb81482 test: remove all references to eject from CLI E2E tests 2019-02-15 15:09:11 -08:00
Charles Lyding
f58a7ded00 fix(@angular/cli): remove deprecated eject command 2019-02-15 15:09:11 -08:00
Charles Lyding
c4376d067f fix(@angular/cli): explicitly define console color logging 2019-02-15 08:01:41 -08:00
Charles Lyding
d849834445 feat(@angular-devkit/core): support console logger color customization 2019-02-15 08:01:41 -08:00
Hans Larsen
889c2549d1 fix(@angular-devkit/core): remove static initialization using process object
It does not work in a browser.
2019-02-14 11:54:56 -08:00
mrmeku
d9166b04fc feat(@angular/cli): Add VsCode extension recommendations 2019-02-14 09:32:09 -08:00
Alan Agius
a139243644 refactor: clean up library tsconfig
These properties are already defined in the root tsconfig
2019-02-14 20:58:59 +08:00
Hans Larsen
a5c1faa5c5 build: fix invalid commits that made it through
And remove the usage of "blacklist" while Im at it.
2019-02-13 15:28:47 -08:00
WilliamKoza
02410e4633 fix(@schematics/angular): respect the flag when we create a guard with schematics 2019-02-13 15:27:34 -08:00
Alan Agius
1fd4ed6c5d fix(@angular-devkit/schematics): use join instead of normal string concatenation
This leads to cleaner paths while debugging

Fixes #13654
2019-02-13 15:26:51 -08:00
Alan
daab547731 docs: remove analyse link from statsJson description
https://webpack.github.io/analyse has been broken for over a year and it seems that it is no longer maintained.

See  https://github.com/webpack/analyse/issues/30

Closes #10589
2019-02-13 15:26:12 -08:00
Renovate Bot
17388866a5 build: update ajv to version 6.9.1 2019-02-13 15:22:06 -08:00
Charles Lyding
91d457af73 refactor(@schematics/angular): remove redundant branchAndMerge rules 2019-02-13 15:21:37 -08:00
hrocha16
b611e7fc58 fix(@angular-devkit/build-angular): added warning for ES2017 2019-02-13 15:20:41 -08:00
Charles Lyding
af88936ef5 fix(@angular-devkit/build-angular): remove unneeded script element type 2019-02-13 15:20:15 -08:00