schema.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. "$schema": "http://json-schema.org/schema",
  3. "id": "SchematicsAngularWorkspace",
  4. "title": "Angular Workspace Options Schema",
  5. "type": "object",
  6. "properties": {
  7. "name": {
  8. "description": "The name of the workspace.",
  9. "type": "string",
  10. "format": "html-selector",
  11. "$default": {
  12. "$source": "argv",
  13. "index": 0
  14. }
  15. },
  16. "newProjectRoot": {
  17. "description": "The path where new projects will be created.",
  18. "type": "string",
  19. "visible": "false"
  20. },
  21. "version": {
  22. "type": "string",
  23. "description": "The version of the Angular CLI to use.",
  24. "visible": false,
  25. "$default": {
  26. "$source": "ng-cli-version"
  27. }
  28. },
  29. "minimal": {
  30. "description": "When true, creates a workspace without any testing frameworks. (Use for learning purposes only.)",
  31. "type": "boolean",
  32. "default": false,
  33. "x-user-analytics": 14
  34. },
  35. "strict": {
  36. "description": "Creates a workspace with stricter TypeScript compiler options.",
  37. "type": "boolean",
  38. "default": false
  39. },
  40. "packageManager": {
  41. "description": "The package manager used to install dependencies.",
  42. "type": "string",
  43. "enum": ["npm", "yarn", "pnpm", "cnpm"]
  44. }
  45. },
  46. "required": [
  47. "name",
  48. "version"
  49. ]
  50. }