schema.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "$schema": "http://json-schema.org/schema",
  3. "id": "SchematicsAngularUniversalApp",
  4. "title": "Angular Universal App Options Schema",
  5. "type": "object",
  6. "description": "Pass this schematic to the \"run\" command to set up server-side rendering for an app.",
  7. "properties": {
  8. "clientProject": {
  9. "type": "string",
  10. "description": "The name of the related client app. Required in place of \"project\"."
  11. },
  12. "appId": {
  13. "type": "string",
  14. "format": "html-selector",
  15. "description": "The app identifier to use for transition.",
  16. "default": "serverApp"
  17. },
  18. "main": {
  19. "type": "string",
  20. "format": "path",
  21. "description": "The name of the main entry-point file.",
  22. "default": "main.server.ts"
  23. },
  24. "test": {
  25. "type": "string",
  26. "format": "path",
  27. "description": "The name of the test entry-point file.",
  28. "x-deprecated": "This option has no effect."
  29. },
  30. "tsconfigFileName": {
  31. "type": "string",
  32. "default": "tsconfig.server",
  33. "description": "The name of the TypeScript configuration file."
  34. },
  35. "testTsconfigFileName": {
  36. "type": "string",
  37. "format": "path",
  38. "description": "The name of the TypeScript configuration file for tests.",
  39. "default": "tsconfig.spec",
  40. "x-deprecated": "This option has no effect."
  41. },
  42. "appDir": {
  43. "type": "string",
  44. "format": "path",
  45. "description": "The name of the application folder.",
  46. "default": "app"
  47. },
  48. "rootModuleFileName": {
  49. "type": "string",
  50. "format": "path",
  51. "description": "The name of the root NgModule file.",
  52. "default": "app.server.module.ts"
  53. },
  54. "rootModuleClassName": {
  55. "type": "string",
  56. "description": "The name of the root NgModule class.",
  57. "default": "AppServerModule"
  58. },
  59. "skipInstall": {
  60. "description": "When true, does not install packages for dependencies.",
  61. "type": "boolean",
  62. "default": false
  63. }
  64. },
  65. "required": [
  66. "clientProject"
  67. ]
  68. }