Alan Agius
bd840b2ea5
fix(@schematics/angular): improve cli migration name and description ( #16093 )
2019-11-07 16:41:56 -08:00
Charles Lyding
7735516949
fix(@angular/cli): disable update commit creation by default
...
Closes #16013
2019-11-07 11:32:52 -08:00
Charles Lyding
6f3d162e41
fix(@angular/cli): remove unneeded git HEAD update message
...
Closes #16031
2019-11-05 16:29:19 -08:00
Alan Agius
2d66fecee8
fix(@angular/cli): add migration name to commit header
...
Closes : #16030
2019-11-04 13:27:48 -08:00
Charles Lyding
98bc458480
fix(@angular/cli): pass next option to all update logic
...
Fixes #16015
2019-11-04 13:27:17 -08:00
Alan Agius
1c855b2365
style(@angular/cli): fix alignment of messages
...
Before
```
> NGCC postinstall migration.
Adds an ngcc invocation to npm/yarn's postinstall script.
Read more about this here: https://v9.angular.io/guide/migration-ngcc
UPDATE package.json (1490 bytes)
√ Packages installed successfully.
√ Migration succeeded.
```
After
```
> NGCC postinstall migration.
Adds an ngcc invocation to npm/yarn's postinstall script.
Read more about this here: https://v9.angular.io/guide/migration-ngcc
UPDATE package.json (1490 bytes)
√ Packages installed successfully.
√ Migration succeeded.
```
2019-11-04 13:23:24 -08:00
Alan Agius
94b48d734f
fix(@angular/cli): improve statues and description logs during update
...
With this change we improve the log messages of migration;
> the migration description
> the outcome of the migration
> we also remove the version of the migration which was misleading (Ex: 9.0.0-beta)
2019-10-30 13:38:53 -07:00
Charles Lyding
5df776780d
fix(@angular-devkit/schematics): use NodeWorkflow root to resolve collections
2019-10-28 17:48:08 -07:00
Charles Lyding
dfc3b74665
fix(@angular/cli): return success in update execute migrations function
2019-10-27 12:08:53 -07:00
Charles Lyding
d4dc16fa28
fix(@angular/cli): support prerelease CLI versions when bootstrapping update
2019-10-27 12:08:53 -07:00
Alan Agius
b0dcfd08a0
fix(@angular/cli): logic to determine if the installed CLI is out of date
...
With this change we now check if the current CLI version is the latest published version. If it is not, we install a temporary version to run the `ng update` with.
2019-10-22 13:13:54 -07:00
Tom Sullivan
6c6ae08ec7
fix(@angular/cli): Determine relative paths correctly
...
As `git status --porcelain` always shows paths relative to the top
level, fetch the top level path in `checkCleanGit` and properly
determine whether any modified files are actually within the
Angular workspace root.
2019-10-17 14:14:07 -07:00
Alan Agius
cf349433ab
fix(@angular/cli): ng update log messages printed twice
...
After the logs are printing to console clean the logs queue.
Fixes #15839
2019-10-15 11:23:16 -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
ace02f6c2a
feat(@angular/cli): create commits per migration during update ( #15611 )
2019-09-17 08:35:18 -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
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
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
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
Charles Lyding
dea6bb317b
fix(@angular/cli): only enable CLI 1.x update handling when no new config
...
Fixes #14703
2019-06-11 14:23:04 -07:00
Charles Lyding
09149fe5e4
fix(@angular/cli): allow update when git is unclean outside the workspace
2019-06-11 09:53:56 -07:00
Charles Lyding
ed4baa4884
fix(@angular/cli): avoid updating when package is already up to date
...
Fixes #14647
2019-06-06 14:24:36 -07:00
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
Charles Lyding
aceaacde50
fix(@angular/cli): provide an option to update dirty repositories
2019-05-30 13:55:14 -07: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
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
clydin
43aabb4be6
fix(@schematics/update): improve npmrc discovery ( #12871 )
...
* fix(@schematics/update): improve npmrc discovery
* feat(@angular/cli): support yarnrc options during update when using yarn
2018-11-14 10:30:00 -08:00
Alan Agius
eab4c2e630
fix(@angular/cli): ng update
remove duplicate dryRun
in help
...
Closes #12423
2018-10-03 16:34:31 -07:00
Hans
afa71a1471
feat(@angular/cli): add help for ng-new schematics
...
Before it was missing because we need to load the schematics engine for it.
I moved the ng update logic that did this to SchematicCommand.
2018-09-14 21:29:31 -07:00
Hans Larsen
30b0cbda0d
refactor(@angular/cli): automated JSON schema interface generation
2018-09-13 16:44:17 -07:00
Hans
de7ec84872
feat(@angular/cli): add --helpJson (or --help-json) too all commands
...
And other refactors.
The interface for the JSON is available in command.ts (the CommandDescription).
2018-09-06 07:37:48 -07:00
Hans
c75318b432
fix(@angular/cli): fix ci for new command formats
2018-08-13 20:58:47 -07:00