angular-cn/packages/core/schematics/test
Paul Gschwendtner 024c31da25 feat(core): add undecorated classes migration schematic (#31650)
Introduces a new migration schematic that follows the given
migration plan: https://hackmd.io/@alx/S1XKqMZeS.

First case: The schematic detects decorated directives which
inherit a constructor. The migration ensures that all base
classes until the class with the explicit constructor are
properly decorated with "@Directive()" or "@Component". In
case one of these classes is not decorated, the schematic
adds the abstract "@Directive()" decorator automatically.

Second case: The schematic detects undecorated declarations
and copies the inherited "@Directive()", "@Component" or
"@Pipe" decorator to the undecorated derived class. This
involves non-trivial import rewriting, identifier aliasing
and AOT metadata serializing
(as decorators are not always part of source files)

PR Close #31650
2019-08-13 14:40:52 -07:00
..
google3 refactor(core): move renderer2 migration lint rule into google3 folder (#31817) 2019-08-09 10:46:45 -07:00
BUILD.bazel feat(core): add undecorated classes migration schematic (#31650) 2019-08-13 14:40:52 -07:00
helpers.ts feat(core): add undecorated classes migration schematic (#31650) 2019-08-13 14:40:52 -07:00
injectable_pipe_migration_spec.ts test: resotre "async" around tests where "await" is used (#30762) 2019-05-30 23:14:16 -07:00
line_mappings_spec.ts feat(core): template-var-assignment update schematic (#29608) 2019-04-02 15:47:32 -07:00
missing_injectable_migration_spec.ts feat(ivy): introduce missing-injectable migration for google3 (#30956) 2019-07-23 15:52:40 -07:00
move_document_migration_spec.ts test: resotre "async" around tests where "await" is used (#30762) 2019-05-30 23:14:16 -07:00
project_tsconfig_paths_spec.ts refactor(core): migrations should parse cli workspace config as json5 (#30582) 2019-05-21 17:26:22 -07:00
renderer_to_renderer2_migration_spec.ts feat(core): add automatic migration from Renderer to Renderer2 (#30936) 2019-07-03 09:03:37 -07:00
static_queries_migration_template_spec.ts fix(core): TypeScript related migrations should cater for BOM (#30719) 2019-05-30 20:48:45 -07:00
static_queries_migration_usage_spec.ts fix(core): TypeScript related migrations should cater for BOM (#30719) 2019-05-30 20:48:45 -07:00
template_var_assignment_migration_spec.ts refactor(compiler): recursive ast expression visitor not passing context (#31085) 2019-06-20 11:12:16 -07:00
test-migrations.json feat(ivy): introduce missing-injectable migration for google3 (#30956) 2019-07-23 15:52:40 -07:00
undecorated_classes_with_di_migration_spec.ts feat(core): add undecorated classes migration schematic (#31650) 2019-08-13 14:40:52 -07:00