schema.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "$schema": "http://json-schema.org/schema",
  3. "id": "angular-material-ng-add",
  4. "title": "Angular Material ng-add schematic",
  5. "type": "object",
  6. "properties": {
  7. "project": {
  8. "type": "string",
  9. "description": "Name of the project.",
  10. "$default": {
  11. "$source": "projectName"
  12. }
  13. },
  14. "theme": {
  15. "description": "The theme to apply",
  16. "type": "string",
  17. "default": "indigo-pink",
  18. "x-prompt": {
  19. "message": "Choose a prebuilt theme name, or \"custom\" for a custom theme:",
  20. "type": "list",
  21. "items": [
  22. { "value": "indigo-pink", "label": "Indigo/Pink [ Preview: https://material.angular.io?theme=indigo-pink ]" },
  23. { "value": "deeppurple-amber", "label": "Deep Purple/Amber [ Preview: https://material.angular.io?theme=deeppurple-amber ]" },
  24. { "value": "pink-bluegrey", "label": "Pink/Blue Grey [ Preview: https://material.angular.io?theme=pink-bluegrey ]" },
  25. { "value": "purple-green", "label": "Purple/Green [ Preview: https://material.angular.io?theme=purple-green ]" },
  26. { "value": "custom", "label": "Custom" }
  27. ]
  28. }
  29. },
  30. "gestures": {
  31. "type": "boolean",
  32. "default": true,
  33. "description": "Whether gesture support should be set up.",
  34. "x-prompt": "Set up HammerJS for gesture recognition?"
  35. },
  36. "animations": {
  37. "type": "boolean",
  38. "default": true,
  39. "description": "Whether Angular browser animations should be set up.",
  40. "x-prompt": "Set up browser animations for Angular Material?"
  41. }
  42. },
  43. "required": []
  44. }