12 Commits

Author SHA1 Message Date
Alan Agius
bfd63cae65 refactor(@schematics/angular): remove deprecated guard spec option
BREAKING CHANGE
Deprecated guard schematic option `spec` has been removed. Please use `skipTests` instead.
2020-04-22 11:30:41 -07:00
cexbrayat
2fc3fabdde fix(@schematics/angular): add CanDeactivate guard
This generates a generic `CanDeactivate<unknown>` guard.

Fixes #15668
2019-11-14 11:16:36 -08:00
cexbrayat
78b408f911 fix(@schematics/angular): default interface for guard
Currently, if the user hits `<Enter>` before selecting an interface to implement, the CLI generates a broken guard that implements no interface. With this commit, the CLI forces a choice in interactive mode and generates a `CanActivate` guard by default.
2019-08-16 09:34:46 -07:00
Charles Lyding
3e70f252c5 refactor(@schematics/angular): update guard to use new workspace rules 2019-04-15 11:02:46 -07:00
WilliamKoza
02410e4633 fix(@schematics/angular): respect the flag when we create a guard with schematics 2019-02-13 15:27:34 -08:00
Charles Lyding
91d457af73 refactor(@schematics/angular): remove redundant branchAndMerge rules 2019-02-13 15:21:37 -08:00
Alan Agius
36eba0c9fc refactor: use .template suffix for all schematic files
Currently when using `ivy-ngcc` it will print out a warning

```
Failed to read entry point info from //node_modules/@schematics/angular/workspace/files/package.json with error SyntaxError: Unexpected token < in JSON at position 1121.
```

Fixes #13378
2019-01-16 10:29:56 -08:00
Unknown
8863bc002a feat(@schematics/angular): Added multiselect guard implements option
Adds support for the guard schematic to use multiselect for which interfaces the guard should implement.

Fixes #13400
2019-01-15 10:16:25 -08:00
Alan Agius
a12a4e02a4 feat(@schematics/angular): consistent naming of options and arguments that do the same thing
This aligns options that do the same thing:
1) `skipSpecs` and `spec` has been deprecated in favor of `skipTests`.
2) `styleext` has been deprecated in favor of `style` since the latest is two words.

Fixes #12784
2018-12-11 11:55:54 -08:00
Alan Agius
82f2bda2f5 refactor(@schematics/angular): make interaction with architect targets type safe 2018-09-12 12:37:24 -07:00
Hans
aeb4ff5b29 feat(@schematics/angular): reallow --lint-fix for Angular schematics 2018-07-25 21:27:47 -07:00
Hans Larsen
44086c60ff build: move devkit repo back to angular-cli 2018-06-05 18:50:06 -07:00