255 Commits

Author SHA1 Message Date
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
Hans Larsen
e9ee58a89e refactor(@angular/cli): move analytics constants to devkit core
They need to be shared with builders and schematics.
2019-03-28 13:28:41 -07:00
Charles Lyding
e41e10d313 feat(@angular/cli): support stable architect API 2019-03-27 16:33:39 -07:00
Renovate Bot
a516f8ad91 build: update semver to version 6.0.0 2019-03-27 10:05:43 -07:00
Niyaz Akhmetov
eaf6de0040 docs: add example for ng add 2019-03-27 10:05:04 -07:00
Hans Larsen
6e5095b134 feat(@angular/cli): allows analytics sharing with a third party
Documentation can be seen at https://next.angular.io/cli/usage-analytics-gathering
2019-03-26 10:07:30 -07:00
Hans Larsen
c42c82f669 feat(@angular/cli): add validation logic for analytics in ng config
And refactored the validation logic to be a bit simpler generally.
2019-03-26 10:07:30 -07:00
Hans Larsen
c840fcb529 fix(@angular/cli): dont force a prompt on non-interactive terminals
For some reason we were forcing the prompt on postinstall, breaking CI.
2019-03-25 12:37:05 -07:00
Hans Larsen
696272bd40 fix(@angular/cli): if no global config file found, analytics can be null
This happens if there is no file at all (otherwise it would be undefined). This was
causing an exception and returning false instead of undefined, preventing the
prompt. Now we return undefined in this case.

To be clear, this is because getWorkspace returns null, and the logic makes
analyticsConfig null in this case.
2019-03-25 12:37:05 -07:00
Alan
75abc79e37 fix(@angular/cli): fix import path for TimingOptions
Fixes #13978
2019-03-25 11:21:05 -07:00
Hans Larsen
0a1d4298ec build: remove DO_NOT_SUBMIT tags from messaging
This is conditional to https://github.com/angular/angular/pull/29382 being
submitted.
2019-03-20 15:08:07 -07:00
Hans Larsen
2e58fb33ca feat(@angular/cli): add custom implementation for analytics for commands
Some commands (like schematics) need to have custom reporting for
analytics. Schematics and Architect commands need to verify if the
schematic/architect builder run is in the safelist, for example.
2019-03-20 15:08:07 -07:00
Hans Larsen
1cbd915c26 feat(@angular/cli): add support for analytics command proper
To add/remove/prompt about the analytics configuration.
2019-03-20 15:08:07 -07:00