This commit is contained in:
CHEVALLIER Abel
2025-11-13 16:23:22 +01:00
parent de9c515a47
commit cb235644dc
34924 changed files with 3811102 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "AngularCleanupUnusedImportsMigration",
"title": "Angular Cleanup Unused Imports Schema",
"type": "object",
"properties": {}
}

View File

@@ -0,0 +1,32 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "AngularInjectMigration",
"title": "Angular Inject Migration Schema",
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Path relative to the project root which should be migrated",
"x-prompt": "Which path in your project should be migrated?",
"default": "./"
},
"migrateAbstractClasses": {
"type": "boolean",
"description": "Whether abstract classes should be migrated",
"x-prompt": "Do you want to migrate abstract classes? Abstract classes are not migrated by default, because their parameters aren't guaranteed to be injectable",
"default": false
},
"backwardsCompatibleConstructors": {
"type": "boolean",
"description": "Whether to clean up constructors or keep their signatures backwards compatible",
"x-prompt": "Do you want to clean up all constructors or keep them backwards compatible? Enabling this option will include an additional signature of `constructor(...args: unknown[]);` that will avoid errors for sub-classes, but will increase the amount of generated code by the migration",
"default": false
},
"nonNullableOptional": {
"type": "boolean",
"description": "Whether to cast the optional inject sites to be non-nullable",
"x-prompt": "Do you want optional inject calls to be non-nullable? Enable this option if you want the return type to be identical to @Optional(), at the expense of worse type safety",
"default": false
}
}
}

View File

@@ -0,0 +1,19 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "AngularOutputMigration",
"title": "Angular Output migration",
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Path to the directory where all outputs should be migrated.",
"x-prompt": "Which directory do you want to migrate?",
"default": "./"
},
"analysisDir": {
"type": "string",
"description": "Path to the directory that should be analyzed. References to migrated outputs are migrated based on this folder. Useful for larger projects if the analysis takes too long and the analysis scope can be narrowed.",
"default": "./"
}
}
}

View File

@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "AngularStandaloneRoutesMigration",
"title": "Angular Standalone Routes Migration Schema",
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Path relative to the project root which should be migrated",
"x-prompt": "Which path in your project should be migrated?",
"default": "./"
}
}
}

View File

@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "AngularSelfClosingTagMigration",
"title": "Angular Self Closing Tag Migration Schema",
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Path to the directory where all templates should be migrated.",
"x-prompt": "Which directory do you want to migrate?",
"default": "./"
}
}
}

View File

@@ -0,0 +1,30 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "AngularSignalInputMigration",
"title": "Angular Signal Input migration",
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Path to the directory where all inputs should be migrated.",
"x-prompt": "Which directory do you want to migrate?",
"default": "./"
},
"analysisDir": {
"type": "string",
"description": "Path to the directory that should be analyzed. References to migrated inputs are migrated based on this folder. Useful for larger projects if the analysis takes too long and the analysis scope can be narrowed.",
"default": "./"
},
"bestEffortMode": {
"type": "boolean",
"description": "Whether to eagerly migrate as much as possible, ignoring problematic patterns that would otherwise prevent migration.",
"x-prompt": "Do you want to migrate as much as possible, even if it may break your build?",
"default": false
},
"insertTodos": {
"type": "boolean",
"description": "Whether the migration should add TODOs for inputs that could not be migrated",
"default": false
}
}
}

View File

@@ -0,0 +1,30 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "AngularSignalQueriesMigration",
"title": "Angular Signal Queries migration",
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Path to the directory where all queries should be migrated.",
"x-prompt": "Which directory do you want to migrate?",
"default": "./"
},
"analysisDir": {
"type": "string",
"description": "Path to the directory that should be analyzed. References to migrated queries are migrated based on this folder. Useful for larger projects if the analysis takes too long and the analysis scope can be narrowed.",
"default": "./"
},
"bestEffortMode": {
"type": "boolean",
"description": "Whether to eagerly migrate as much as possible, ignoring problematic patterns that would otherwise prevent migration.",
"x-prompt": "Do you want to migrate as much as possible, even if it may break your build?",
"default": false
},
"insertTodos": {
"type": "boolean",
"description": "Whether the migration should add TODOs for queries that could not be migrated",
"default": false
}
}
}

View File

@@ -0,0 +1,66 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "AngularSignalMigration",
"title": "Angular Signals migration",
"type": "object",
"properties": {
"migrations": {
"type": "array",
"default": [
"inputs",
"outputs",
"queries"
],
"items": {
"type": "string",
"enum": [
"inputs",
"outputs",
"queries"
]
},
"description": "Signals-related migrations that should be run",
"x-prompt": {
"message": "Which migrations do you want to run?",
"type": "list",
"multiselect": true,
"items": [
{
"value": "inputs",
"label": "Convert `@Input` to the signal-based `input`"
},
{
"value": "outputs",
"label": "Convert `@Output` to the new `output` function"
},
{
"value": "queries",
"label": "Convert `@ViewChild`/`@ViewChildren` and `@ContentChild`/`@ContentChildren` to the signal-based `viewChild`/`viewChildren` and `contentChild`/`contentChildren`"
}
]
}
},
"path": {
"type": "string",
"description": "Path to the directory that should be migrated.",
"x-prompt": "Which directory do you want to migrate?",
"default": "./"
},
"analysisDir": {
"type": "string",
"description": "Path to the directory that should be analyzed. Useful for larger projects if the analysis takes too long and the analysis scope can be narrowed.",
"default": "./"
},
"bestEffortMode": {
"type": "boolean",
"description": "Whether to eagerly migrate as much as possible, ignoring problematic patterns that would otherwise prevent migration.",
"x-prompt": "Do you want to migrate as much as possible, even if it may break your build?",
"default": false
},
"insertTodos": {
"type": "boolean",
"description": "Whether the migration should add TODOs for code that could not be migrated",
"default": false
}
}
}

View File

@@ -0,0 +1,38 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "AngularStandaloneMigration",
"title": "Angular Standalone Migration Schema",
"type": "object",
"properties": {
"mode": {
"description": "Operation that should be performed by the migrator",
"type": "string",
"enum": ["convert-to-standalone", "prune-ng-modules", "standalone-bootstrap"],
"default": "convert-to-standalone",
"x-prompt": {
"message": "Choose the type of migration:",
"type": "list",
"items": [
{
"value": "convert-to-standalone",
"label": "Convert all components, directives and pipes to standalone"
},
{
"value": "prune-ng-modules",
"label": "Remove unnecessary NgModule classes"
},
{
"value": "standalone-bootstrap",
"label": "Bootstrap the application using standalone APIs"
}
]
}
},
"path": {
"type": "string",
"description": "Path relative to the project root which should be migrated",
"x-prompt": "Which path in your project should be migrated?",
"default": "./"
}
}
}