Skip to content

Commit

Permalink
fix(@angular/cli): add prerender and ssr-dev-server schemas in angula…
Browse files Browse the repository at this point in the history
…r.json schema

Add missing schemas to improve IDE DX

(cherry picked from commit 602d016)
  • Loading branch information
alan-agius4 committed Jan 3, 2024
1 parent 88d6ca4 commit 446dfb7
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/angular/cli/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ CLI_SCHEMA_DATA = [
"//packages/angular_devkit/build_angular:src/builders/jest/schema.json",
"//packages/angular_devkit/build_angular:src/builders/karma/schema.json",
"//packages/angular_devkit/build_angular:src/builders/ng-packagr/schema.json",
"//packages/angular_devkit/build_angular:src/builders/prerender/schema.json",
"//packages/angular_devkit/build_angular:src/builders/ssr-dev-server/schema.json",
"//packages/angular_devkit/build_angular:src/builders/protractor/schema.json",
"//packages/angular_devkit/build_angular:src/builders/server/schema.json",
"//packages/schematics/angular:app-shell/schema.json",
Expand Down
48 changes: 47 additions & 1 deletion packages/angular/cli/lib/config/workspace-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,12 @@
"@angular-devkit/build-angular:dev-server",
"@angular-devkit/build-angular:extract-i18n",
"@angular-devkit/build-angular:karma",
"@angular-devkit/build-angular:ng-packagr",
"@angular-devkit/build-angular:prerender",
"@angular-devkit/build-angular:jest",
"@angular-devkit/build-angular:protractor",
"@angular-devkit/build-angular:server",
"@angular-devkit/build-angular:ng-packagr"
"@angular-devkit/build-angular:ssr-dev-server"
]
}
},
Expand Down Expand Up @@ -584,6 +586,50 @@
}
}
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"builder": {
"const": "@angular-devkit/build-angular:prerender"
},
"defaultConfiguration": {
"type": "string",
"description": "A default named configuration to use when a target configuration is not provided."
},
"options": {
"$ref": "../../../../angular_devkit/build_angular/src/builders/prerender/schema.json"
},
"configurations": {
"type": "object",
"additionalProperties": {
"$ref": "../../../../angular_devkit/build_angular/src/builders/prerender/schema.json"
}
}
}
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"builder": {
"const": "@angular-devkit/build-angular:ssr-dev-server"
},
"defaultConfiguration": {
"type": "string",
"description": "A default named configuration to use when a target configuration is not provided."
},
"options": {
"$ref": "../../../../angular_devkit/build_angular/src/builders/ssr-dev-server/schema.json"
},
"configurations": {
"type": "object",
"additionalProperties": {
"$ref": "../../../../angular_devkit/build_angular/src/builders/ssr-dev-server/schema.json"
}
}
}
},
{
"type": "object",
"additionalProperties": false,
Expand Down

0 comments on commit 446dfb7

Please sign in to comment.