340 Commits

Author SHA1 Message Date
Keen Yee Liau
0662a8d774 build: g3 sync for packages/schematics and packages/angular
Fix all build errors in g3
2019-10-03 14:29:07 -07:00
Charles Lyding
225ff385ac fix(@angular/cli): do not warn on multiple array option use
Fixes #15630
2019-09-19 14:42:52 -07:00
Charles Lyding
0abeadbc10 refactor(@angular/cli): use canonical npm logic to determine update package version 2019-09-19 14:41:04 -07:00
Charles Lyding
9deaf87754 fix(@angular/cli): add browser builder index option longhand form to schema 2019-09-19 14:39:51 -07:00
Charles
ace02f6c2a feat(@angular/cli): create commits per migration during update (#15611) 2019-09-17 08:35:18 -07:00
Charles
a1487b3e9e feat(@angular/cli): check/prompt for workspace level analytics configuration (#14264) 2019-09-12 11:45:59 -07:00
Charles Lyding
2565077dbe fix(@angular/cli): correctly account for linked packages in update
Fixes #15511
Fixes #15294
2019-09-11 10:10:48 -07:00
noeri
366e51be04 feat(@angular-devkit/build-angular): expose webpack-dev-server's allowedHosts option
Closes #13656
2019-09-09 14:09:58 -07:00
Adam Vigneaux
87b01ffd6a feat(@angular/cli): add support for custom npmrc paths
According to [the npm config
docs](https://docs.npmjs.com/misc/config#npmrc-files), a user can
specify the path to their `npmrc` files using the environment
variables `NPM_CONFIG_USERCONFIG` and `NPM_CONFIG_GLOBALCONFIG`. When
set, these variables should override the default paths.
2019-08-29 23:47:22 +05:30
Alan Agius
26dd51221a style: collapse if statements (#15449) 2019-08-27 10:25:14 -07:00
Charles
5606a4cc0e fix(@angular/cli): handle promise rejection on analytics install prompt (#15455)
A rejection in this case should be ignored to prevent potential installation failure.
2019-08-27 10:24:32 -07:00
Charles
891fe527d7 feat(@angular/cli): update with migrate only creates commit per migration (#15414)
* feat(@angular/cli): update with migrate only creates commit per migration

* refactor(@angular/cli): simplify update command schematic execution
2019-08-26 11:48:43 -07:00
Renovate Bot
215f179da7 build: update inquirer to version 7.0.0 (#15422) 2019-08-23 11:38:32 -07:00
Renovate Bot
bef6e36875 build: update npm-package-arg to version 6.1.1 (#15406) 2019-08-23 10:02:34 -07:00
Judy Bogart
fe3d597c0e Add deploy command doc (#15402)
* docs: add deploy command doc

* docs: fix json example

* docs: add link to cli builder doc

* docs: remove link

* docs: restore link
2019-08-22 10:14:38 -07:00
Judy Bogart
08d7d0298c docs: remove app from app project 2019-08-21 15:21:49 -07:00
Judy Bogart
3c69e34b2f docs: ng add configures project in cwd 2019-08-21 15:21:49 -07:00
Renovate Bot
e84e28a540 build: update pacote to version 9.5.8 2019-08-20 10:14:30 -07:00
Renovate Bot
16a1e4ca51 build: update pacote to version 9.5.6 2019-08-16 09:32:18 -07:00
Charles Lyding
b630317b4b refactor(@angular/cli): convert workspace access to async
This is in preparation for conversion from the experimental workspace API to the stable workspace API.
2019-08-16 09:32:04 -07:00
Renovate Bot
fc772d15b6 build: update pacote to version 9.5.5 (#15306) 2019-08-12 10:28:25 -07:00
Renovate Bot
2182c7ccad build: update inquirer to version 6.5.1 (#15304) 2019-08-12 10:27:54 -07:00
mgechev
5df50bacbe feat(@angular/cli): implement deploy command 2019-07-30 21:07:50 -07:00
vikerman
4287d57a32
fix(@angular/cli): typo in error message
Fixes #15208
2019-07-30 14:34:29 -07:00
Alan
b9598835bb fix(@angular/cli): don't add leftovers when there are none
At the moment we are adding leftover args to `--` even when it's an empty array, this causes schematics without arguments to fail silently, because of 07780b9272/packages/angular/cli/models/schematic-command.ts (L463)

Fixes: #15156
2019-07-29 10:45:45 -07:00
Filipe Silva
e8dff5718f build: update to TS 3.5 2019-07-29 10:15:23 -07:00
Renovate Bot
79f5298391 build: update semver to version 6.3.0 2019-07-24 19:07:57 -07:00
Alan Agius
15ef15e94a style: remove redundant max-line-length disables and fix other lint issues 2019-07-24 19:06:21 -07:00
Alan Agius
f32c9dde1a feat(@angular/cli): add anyComponentStyle budget type 2019-07-24 19:05:00 -07:00
Renovate Bot
214a4189b7 build: update pacote to version 9.5.4 (#15100) 2019-07-17 11:07:37 -07:00
Minko Gechev
d274add7b4
fix(@angular/cli): use correct schematic defaults considering workspace (#15041)
Fix #14986

This PR includes some refactoring to simplify the interaction
of the `NodeWorkflow` and the `BaseWorkflow` with the registry.

We were registering redundant `addPostTransform`s. Some of them in
the constructor of the `BaseWorkflow`, which did not allow us to
intercept `addUndefinedDefaults`.

Additionally, we were setting the `validateOptionsWithSchema` transform
multiple times unnecessarily.

An issue left to fix is support for the `--project` option in
schematic commands. Currently, `getProjectName` does not know about
this option, since `createWorkflow` does not know how to parse the
command line arguments. The parsing logic is implemented partially
by the concrete implementation of the `SchematicCommand` template
method.
2019-07-16 09:58:01 -07:00
Judy Bogart
b5924febb2 Document possible values of analytics command (#15039)
* docs: add possible values to ref doc for analytics command

* docs: add ci value
2019-07-15 16:31:08 -07:00
Renovate Bot
254b02619c build: update pacote to version 9.5.2 (#15070) 2019-07-15 09:49:05 -07:00
Hans
15b9ea8998 feat(@angular/cli): report telemetry opt-ins (#15054)
Only when prompted.
2019-07-12 15:15:21 -07:00
Renovate Bot
1bf6b3c2a4 build: update inquirer to version 6.5.0 2019-07-11 19:11:13 -07:00
Alan Agius
a57e98662c fix(@angular/cli): display a more detailed error message when workspace cannot be loaded
Closes #15023, closes #10757, closes #14933 and closes #11204
2019-07-10 04:37:06 +08:00
Alan
3d1d225dd2 fix(@angular/cli): add verbose option to update and add
At the moment there is no way to turn on the verbose logging for `ng update` and `ng add`. This is useful for use so that when users report issues such as npmrc is not read we can see the lookup locations.

This also removes some reduncant that were being provided in `executeSchematic`.

Related to https://github.com/angular/angular-cli/issues/14993
2019-07-10 04:15:05 +08:00
Renovate Bot
d575428381 build: update ansi-colors to version 4.1.1 2019-07-10 04:05:38 +08:00
Charles Lyding
5b5f140109 refactor(@angular/cli): use stable workspace API 2019-07-10 04:05:26 +08:00
Renovate Bot
64eff51be6 build: update semver to version 6.2.0 2019-07-02 12:44:06 -07:00
Charles Lyding
762d95741b refactor(@angular/cli): simplify unhandled exception message 2019-07-02 11:36:18 -07:00
Renovate Bot
994f8c57a6 build: update ansi-colors to version 4.1.0 2019-07-02 11:07:44 -07:00
Alan
2b367be1c3 feat(@angular-devkit/build-angular): deprecate scripts and styles lazy option in favor ofinject
The lazy option inside the script and style option is confusing as this option doesn't lazy load a bundle but rather it doesn't inject/reference the script in the HTML. While this option is an enabler for lazy loading, the users will still need to handle on how how this bundle will be lazy loaded. There are also potential use cases beyond lazy loading for the option.

Closes #14814
2019-07-02 11:05:51 -07:00
Renovate Bot
0c49097d6d build: update read-package-tree to version 5.3.1 2019-07-01 11:38:05 -07:00
Renovate Bot
821d2fa4a7 build: update open to version 6.4.0 2019-07-01 11:37:50 -07:00
Hans Larsen
ce4e9f1d80 fix(@angular/cli): pass in metrics to the pageview for commands
We might want to pass those later.
2019-06-28 10:49:27 -07:00
Alan Agius
68227565ce feat(@angular-devkit/build-angular): add crossorigin options
This options allows to define the crossorigin attribute setting of elements that provide CORS support

Closes #14743
2019-06-27 15:12:43 -07:00
Alan
70a4cbe306 style: enable no-debugger and no-console tslint rules 2019-06-27 09:28:35 -07:00
Renovate Bot
8886c82552 build: update read-package-tree to version 5.3.0 2019-06-27 09:19:01 -07:00
cexbrayat
3e95474d1f feat(@angular/cli): ng doc uses angular core version by default
Follow-up to #14788 that allowed `ng doc --version 6`.
This commit enhances the doc command to use the current Angular version of the project by default, if no version is provided explicitely.

Fixes #12365
2019-06-27 09:18:32 -07:00