409 Commits

Author SHA1 Message Date
Alan Agius
23589ed00e fix(@angular/cli): inform user and error if schematics package is in unreachable location (#16466)
This is a workaround for the schematics runtime to support the requirement of packages containing migrations (or other schematics) to not have a direct/runtime dependency on the schematics package.

Closes: #16392
2020-01-02 11:27:04 -08:00
Charles Lyding
3dd706700e fix(@angular/cli): migrate and inform users about @angular-devkit/[schematics, core] packages 2020-01-02 11:26:45 -08:00
Charles
d9d233e39a fix(@angular/cli): inform user and error if schematics package is in unreachable location (#16466)
This is a workaround for the schematics runtime to support the requirement of packages containing migrations (or other schematics) to not have a direct/runtime dependency on the schematics package.

Closes: #16392
2019-12-20 16:34:05 -08:00
Renovate Bot
1a16efbc3f build: update npm-pick-manifest to version 5.0.0 2019-12-20 16:32:05 -08:00
Renovate Bot
48882a0f36 build: update npm-package-arg to version ^8.0.0 2019-12-18 11:19:53 -08:00
Renovate Bot
06b3aad66c build: update inquirer to version 7.0.1 2019-12-18 09:29:50 -08:00
Renovate Bot
8475f666e8 build: update semver to version 7.1.1 2019-12-18 09:29:26 -08:00
Wataru.Kasahara
b6863b6a30 fix(@angular/cli): remove alias for deploy command 2019-12-05 18:57:02 -08:00
Renovate Bot
6ac4206322 build: update pacote to version 10.2.1 2019-12-05 18:55:51 -08:00
Alan Agius
0659cf09e3 fix(@angular-devkit/build-angular): add externalDependencies to server builders
Certain node packages depend on native bindings which cannot be bundled, with this fix we add a way to exclude these from being processed by the bundler.

Closes: #16348
2019-12-05 18:53:08 -08:00
Alan Agius
0a7ace3595 fix(@angular-devkit/build-angular): allow bundleDependencies to be a boolean 2019-12-05 18:53:08 -08:00
Charles Lyding
c37eaeec43 fix(@angular-devkit/build-angular): augment base HREF when localizing
All locale i18n options now support an object form which allows a base HREF to be defined for the locale.  Each locale can now optionally define a custom base HREF that will be combined with the base HREF defined for the build configuration.  By default if the shorthand form for the locale is used or the field is not present in the longhand form, the locale code will be used as the base HREF.  To disable automatic augmentation a base HREF value of an empty string (`""`) can be used.  This will prevent anything from being added to the existing base HREF.

For common scenarios, the shorthand form will result in the preferred and recommended outcome of each built locale variant of the application containing a defined base HREF  containing the locale code.
2019-12-04 08:14:16 -08:00
Renovate Bot
86e977ebbf build: update pacote to version 10.2.0 2019-12-02 10:14:05 -08:00
Alan Agius
35ca3901ac refactor: strip leading slash to prevent confusion 2019-12-02 10:10:34 -08:00
Alan Agius
12868b3b4f refactor(@angular/cli): use isJsonObject helper in to read config 2019-11-27 13:41:57 -08:00
Alan Agius
4bc0ec39b1 fix(@angular/cli): ng version should report if ivy is enabled
Closes: #14491
2019-11-27 13:41:57 -08:00
Renovate Bot
5f8d903db8 build: update pacote to version 10.1.5 2019-11-26 13:11:28 -08:00
Charles Lyding
415b966dd4 fix(@angular/cli): improve robustness of Node.js version check
This change ensures that both the global version and the project version Node.js version requirements are met before the CLI executes a command.  Previously an older global version of the CLI would allow a newer project version to execute even if the project version had more strict Node.js version requirements.  The Node.js version is now checked twice.  Once in an ES5 safe script to ensure that ancient Node.js versions are not in use.  And secondly in the CLI entry code that is executed after global/project bootstrapping.
2019-11-21 14:06:21 -08:00
Alan Agius
08f0067145 fix(@angular/cli): fix package manager warnings when running temporary install
Related to: #16205
2019-11-18 10:27:47 -08:00
Alan Agius
0ee5f2fdb9 fix(@angular/cli): support running a single migration from a package 2019-11-15 10:43:07 -08:00
Renovate Bot
913ffca58d build: update pacote to version 10.1.3 2019-11-13 11:41:24 -08:00
Doug Parker
823c6589ae fix(@angular/cli): Renames final message to "Migration completed". (#16016)
We don't actually know for certain that the migration was successful, only that it finished. This updates the messaging to be more clear about this distinction. I also removed the check mark and green coloring which implied success.
2019-11-13 11:11:14 -08:00
Murad
8e81c6aa95 feat(@angular/cli): Support XDG Base Directory Specfication
Explained here: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

Current change affects reading of global config from `.angular-config.json`. By default it will be created in user's home directory. If user moves it manually to `$HOME/.config/angular/.angular-config.json`, it will be subsequently read from new location.
2019-11-12 11:50:22 -08:00
Alan Agius
a6f3d14c08 fix(@angular/cli): clarify ng update outdated message 2019-11-12 11:46:07 -08:00
Alan Agius
1903dd5119 fix(@angular/cli): add pnpm options to install package task
Fixes #16149
2019-11-12 11:46:07 -08:00
Renovate Bot
ee7def035e build: update pacote to version 10.1.2 2019-11-12 11:45:08 -08:00
Alan Agius
08c3959ee4 fix(@angular/cli): remove no-bin-links during npm/yarn install
Previously we passed `--no-bin-links` because we used to install packages globally in some cases. But now this is no longer needed as we should now have permissions to generate "local" bin links even during a temp installations as these  will no longer generate bin links in the global context.

Fixes #16133
2019-11-11 16:52:46 -08:00
Renovate Bot
150d0f6d6e build: update npm-pick-manifest to version 4.0.0 2019-11-11 16:52:36 -08:00
Doug Parker
208a7008b0 fix(@angular/cli): Prints out when a commit is made in ng update.
Fixes #16060.

Any time a `git commit` is made, the CLI now prints out the hash and short message. For migrations, the message is simply the first line of the commit. For schematics, the commit message isn't all that helpful, so I used the list of packages instead.
2019-11-11 16:51:44 -08:00
Renovate Bot
febc35c211 build: update npm-package-arg to version 7.0.0 2019-11-11 09:14:05 -08:00
Alan Agius
524bff6f43 fix(@angular/cli): add link to update guide post running Angular migrations 2019-11-09 11:52:42 -08:00
Charles
b8257e276e fix(@angular/cli): re-introduce install package using shell spawn (#16112)
This works around a Windows CI failure that related to the PATH environment variable and a failure to located the `npm` command.
2019-11-08 07:54:47 -08:00
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
Alan Agius
f35b80ebaf fix(@angular/cli): use spawned process error when it's available
In some cases when an error occurs in the spawned process the `error` property will be populated instead of `stderr` or `stdout`.

See: https://nodejs.org/api/child_process.html#child_process_child_process_spawnsync_command_args_options
2019-11-07 10:07:10 -08:00
Alan Agius
e8135babd4 refactor: update pacote to version 10 2019-11-06 10:51:35 -08:00
Alan Agius
c5ab958eb3 fix(@angular/cli): handle null stderr during npm install 2019-11-06 10:50:47 -08:00
Charles Lyding
84ba5d55f0 fix(@angular/cli): only show add/update package install output on errors
Closes #16014
Closes #16027
2019-11-05 16:30:14 -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
Charles Lyding
3f57956c32 fix(@angular/cli): verify package specifier when adding a package
Fixes #16029
2019-11-04 13:26:07 -08:00
Charles Lyding
e7bf105214 fix(@angular/cli): skip project analytics prompt when using update
The prompt will cause the workspace configuration file to be updated which can result in an unclean repository.

Fixes #16012
2019-11-04 13:25:13 -08:00
Alan Agius
8820093b7f fix(@angular/cli): don't install using global command but rather install in a different folder
Fixes: #16010
2019-11-04 13:24:57 -08:00
Kayla Altepeter
3100182ab1 fix(@angular/cli): change analytics type to boolean or string 2019-11-04 13:24:15 -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
Alan Agius
548617ca4c fix(@angular/cli): updated CLI should not have analytics enabled
In the case users don't have analytics globally configured when the CLI will self update during ng update. It will prompt to configure this.

However, afterwards the update will fail with `Repository is not clean.  Please commit or stash any changes before updating.` as there would be uncommited local changed.
2019-10-29 20:21:51 -07:00
Charles Lyding
5df776780d fix(@angular-devkit/schematics): use NodeWorkflow root to resolve collections 2019-10-28 17:48:08 -07:00
Eusen
31a35ae060 fix(@angular/cli): scoped project names
change projects.patternProperties to npm.name.pattern

Closes #14797
2019-10-28 10:05:43 -07:00