14 Commits

Author SHA1 Message Date
Alan Agius
111e9cc383 fix(@angular-devkit/schematics-cli): provide resolvePaths to NodeWorkflow
Closes #17067
2020-02-25 10:27:50 -08:00
Alan Agius
35ca3901ac refactor: strip leading slash to prevent confusion 2019-12-02 10:10:34 -08:00
Alan Agius
e40f23007b fix(@angular-devkit/schematics): use error logger method when there is a workflow error 2019-10-30 13:38:53 -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
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
Michael O'Keefe
db0fc7759b feat(@angular/cli): Added support for multiselect list prompt (#13031)
* feat(@angular/cli): Added support for multiselect list prompt

* If multiselect option is true use the checkbox
   inquirer prompt type, otherwise use list.

* feat(@angular-devkit/core): Added support for multiselect list prompt

* Added multiselect to PromptDefinition interface and usages
2018-11-30 12:01:57 -08:00
Hans
34d7e9d240 feat(@angular-devkit/schematics-cli): add prompt support using Inquirer 2018-11-16 11:36:36 -08:00
Alan Agius
eddad5698a fix(@angular-devkit/schematics-cli): dryRun is not set by default when using a local collection
Fixes #12815
2018-11-01 08:33:24 -07:00
Alan Agius
0b4f3c10e8 fix(@angular-devkit/schematics-cli): inconsistency in referencing collection
Fixes #12600
2018-10-23 11:57:22 -07:00
Alan Agius
bb01cce06a feat(@angular-devkit/schematics-cli): add support for camelCase arguments
At the moment, only kebab case args works, and this might be misleading if you come from the Angular CLI. As for instance `--dryRun` will have no effect.

Fixes #12599
2018-10-23 10:23:17 -07:00
Alan Agius
40129ccebd refactor: make the cli testable 2018-09-18 11:33:11 -07:00
Alan Agius
8fac6a7ceb fix(@angular-devkit/schematics-cli): fix list-schematics is not printing anything
Usage:
```
$  schematics @schematics/angular: --list-schematics
$  schematics --list-schematics
```

When no colon is specified, it means that that you are passing a schematic name to be looked up in the default collection.

Closes #12220
2018-09-18 11:33:11 -07:00
Alan Agius
d77304b700 refactor: remove extra . in error message 2018-08-03 14:32:44 -04:00
Hans Larsen
44086c60ff build: move devkit repo back to angular-cli 2018-06-05 18:50:06 -07:00