267 Commits

Author SHA1 Message Date
Charles Lyding
2d27cb4671 fix(@angular/cli): resolve update migrations from referenced package root
This ensures that migration fields that reference other packages use the package version specified in the migrating package's dependencies and not the version that a package manager happens to hoist to the root of the workspace.
2019-06-06 14:22:02 -07:00
Matt Lewis
ef981d63b7 fix(@angular/cli): add analytics option to options schema 2019-06-06 14:16:23 -07:00
Renovate Bot
e7419d5d24 build: update semver to version 6.1.1 2019-05-30 14:05:06 -07:00
Charles Lyding
aceaacde50 fix(@angular/cli): provide an option to update dirty repositories 2019-05-30 13:55:14 -07:00
Charles Lyding
410b56e107 fix(@angular/cli): check for CI environment variable in tty helper
Fixes #14563
2019-05-30 12:32:01 +02:00
Alan Agius
757d8df3e6 fix(@angular/cli): ng config doesn't parse positional array
Fixes #14516
2019-05-28 21:01:13 +02:00
Alan Agius
db344641f4 fix(@angular/cli): ng generate --help shows the wrong collection
At the moment, collectionName and schematicCollections are not set in various schematics command which result in fallbacking to the hardcoded default collectionName https://github.com/angular/angular-cli/blob/master/packages/angular/cli/models/schematic-command.ts#L79

Hence, this will result in incorrect information being present when using the `--help`, `--list`.

Fixes #14519
2019-05-28 20:57:21 +02:00
Renovate Bot
db819cbd2c build: update semver to version 6.1.0 2019-05-23 19:16:31 +02:00
Charles Lyding
b336cc7798 fix(@angular/cli): ensure git repository is clean before updates
If not asking for update status then this change checks for a clean git repository before proceeding.  This allows the user to easily reset any changes from the update and avoid any developer code changes from being mixed with update changes.
2019-05-23 19:13:41 +02:00
Charles Lyding
57189f6eca fix(@angular/cli): standardize TTY checks 2019-05-22 10:02:58 +02:00
Charles Lyding
4130191877 fix(@angular/cli): show analytics prompt when no global configuration file
Fixes #14486
2019-05-22 10:02:58 +02:00
Charles Lyding
8f0b3eb09a fix(@angular/cli): show error when using x18n command on Node.js 12.0
Node.js 12.0 contains a defect which will cause the command to crash.  This is due to the locale support in Node.js 12.0 (ICU).  ref: https://github.com/nodejs/node/issues/27379
2019-05-22 10:02:13 +02:00
Alan
8e3efaf70b docs: update project description to full application instead of app 2019-05-21 09:09:42 -04:00
Alex Eagle
ec731f0454 docs: don't reference next.angular.io
When we cut a release, this moves to angular.io.
Use v8.angular.io in places where angular.io is currently a 404.

Fixes https://github.com/angular/angular/issues/30407
2019-05-21 09:08:40 -04:00
Charles Lyding
b7fc6125e5 fix(@angular/cli): improve error handling of update command
This adds extensive option checking and error handling with the goal to catch user errors as early in the process as possible.  Bad option combinations and/or values will result in actionable information and stop the process before network access and processing occurs.
2019-05-15 14:34:03 -07:00
Charles Lyding
b12118eae9 refactor(@angular/cli): remove unused npm install task type 2019-05-15 14:34:03 -07:00
Keen Yee Liau
ff2600b417 fix(@angular/cli): @bazel/* are not shown in ng version
Update `ng version` to show versions for @bazel/* packages to help users
report meaningful errors when they opt in to Bazel.
2019-05-15 14:15:03 -07:00
Charles Lyding
290898536b fix(@angular/cli): prevent nested schematic execution from generating analytics
Fixes #14190
2019-05-15 14:11:48 -07:00
Renovate Bot
e5cf843aeb build: update open to version 6.3.0 2019-05-13 15:55:29 -07:00
Charles Lyding
3912fdee5d fix(@angular/cli): enable analytics for safe builders
Fixes #14355
2019-05-13 15:55:15 -07:00
Captain Caius
c652ec7456 docs: describe prod flag more explicitly 2019-05-10 15:06:50 -07:00
Charles Lyding
7a72f2fb17 refactor(@angular/cli): avoid aggressive eager command loading
Currently, upon execution `ng` will load all description files AND code for all available commands.  This requires a large amount of unnecessary file access and processing since only at most one command will be executed.  This change limits the loading to only command being executed in the common case and a subset of commands in the event an alias is used.  The help command now loads all commands during its execution which is needed to gather command description information.  Further improvements are possible by only loading the necessary metadata instead of the execution code (and its dependencies) as well.
This change allows for savings of ~250ms per execution.

Examples:
Before -- `./node_modules/.bin/ng version  0.99s user 0.17s system 113% cpu 1.020 total`
After -- `./node_modules/.bin/ng version  0.70s user 0.13s system 110% cpu 0.749 total`

Before -- `./node_modules/.bin/ng g c a  1.91s user 0.30s system 111% cpu 1.996 total`
After -- `./node_modules/.bin/ng g c a  1.62s user 0.27s system 110% cpu 1.715 total`
2019-05-10 15:04:32 -07:00
Alan Agius
2521a39559 fix(@angular/cli): print full error when package is not found 2019-05-09 10:12:21 -07:00
Charles Lyding
8254cfe87f fix(@angular/cli): honor builder schema additional properties option
Fixes #14354
2019-05-09 10:07:42 -07:00
Judy Bogart
5b3ee079d7 docs: edit reference doc for update command 2019-05-07 16:23:54 -06:00
Tiago Temporin
9805e8428d feat(@angular/cli): implement --registry for ng add (#14285)
Closes 14189
2019-05-07 12:34:27 -06:00
Charles Lyding
a818badbb2 fix(@angular/cli): remove Angular specific version check from base architect command
Fixes #14266
2019-04-25 10:23:25 -07:00
Charles Lyding
475ba6610c fix(@angular/cli): only show postinstall prompt when global analytics not configured 2019-04-24 07:16:58 -10:00
Renovate Bot
a53b206603 build: update open to version 6.2.0 2019-04-23 14:31:07 -10:00
Filipe Silva
0f9de92dcb feat(@angular-devkit/build-angular): remove experimentalImportFactories option
It will just be always be used when applicable.

Fix #14218
2019-04-22 16:16:58 -07:00
Alex Eagle
ee619c9a34 build: run Bazel format/lint fix 2019-04-22 08:38:00 -07:00
Alex Eagle
f5c41e5754 build: Resolve ng generate aliases before logging analytics 2019-04-17 13:40:58 -07:00
Judy Bogart
d2a343a405 docs: add cli usage analytics doc 2019-04-16 14:32:06 -07:00
Renovate Bot
5b4d1302bd build: update inquirer to version 6.3.1 2019-04-16 09:39:46 -07:00
Filipe Silva
5ec27db6bc feat(@angular/cli): verify Angular version is supported 2019-04-15 11:31:34 -07:00
Filipe Silva
b6b00ebc98 build: update typescript to version 3.4.3 2019-04-13 10:23:02 -07:00
Filipe Silva
92913e46b1 fix(@angular/cli): add missing experimentalImportFactories to schema 2019-04-12 12:21:13 -07:00
Alan Agius
fe98024146 docs: align several experimental text and update ng new explanation 2019-04-10 08:44:53 -07:00
Filipe Silva
e6bba9eaf9 fix(@angular/cli): update config schema for karma webworker 2019-04-10 08:43:14 -07:00
Renovate Bot
6c44a8f009 build: update open to version 6.1.0 2019-04-08 11:40:41 -07:00
Charles Lyding
7b7d74e704 feat(@angular/cli): automatically update angular builders when CLI is updated
Closes #13581
2019-04-08 11:39:34 -07:00
Charles Lyding
e0043b4078 refactor(@angular/cli): cleanup architect imports 2019-04-04 19:49:56 -07:00
Stephen Fluin
be0c3d5af6 fix(@angular/cli): improve opt-out language 2019-04-03 21:58:58 +02:00
Filipe Silva
ed0e6aab57 feat(@angular-devkit/build-angular): support TS web workers 2019-04-02 04:49:34 -07:00
Jason Miller
c630d5f811 feat(@angular-devkit/build-angular): support module web workers.
Supports new Worker(...,{type:module}) using github.com/googlechromelabs/worker-plugin
2019-04-02 04:49:34 -07:00
Andriy Pyvovarchuk
50cce668cc refactor: replace deprecated package opn with open 2019-04-01 10:53:12 -07:00
Charles Lyding
cfa1649fdd refactor(@angular/cli): use standard node resolution methods where possible 2019-03-30 18:36:22 -07:00
Hans Larsen
600b0218fd feat(@angular/cli): add tracking for command duration 2019-03-28 13:28:41 -07:00
Hans Larsen
2ffbdfa86a build: add a validation script for the analytics.md tables
Also added enums to update when changing dimensions.
2019-03-28 13:28:41 -07:00
Hans Larsen
55471770db refactor: use dimensions for some values instead of metrics
This is after a discussion with someone internal. Metrics are good
for sums but not for comparisons and search/filtering.
2019-03-28 13:28:41 -07:00