analytics.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "$schema": "http://json-schema.org/schema",
  3. "$id": "ng-cli://commands/analytics.json",
  4. "description": "Configures the gathering of Angular CLI usage metrics. See https://v8.angular.io/cli/usage-analytics-gathering.",
  5. "$longDescription": "./analytics-long.md",
  6. "$aliases": [],
  7. "$scope": "all",
  8. "$type": "native",
  9. "$impl": "./analytics-impl#AnalyticsCommand",
  10. "type": "object",
  11. "allOf": [
  12. {
  13. "properties": {
  14. "settingOrProject": {
  15. "enum": [
  16. "on",
  17. "off",
  18. "ci",
  19. "project",
  20. "prompt"
  21. ],
  22. "description": "Directly enables or disables all usage analytics for the user, or prompts the user to set the status interactively, or sets the default status for the project.",
  23. "$default": {
  24. "$source": "argv",
  25. "index": 0
  26. }
  27. },
  28. "projectSetting": {
  29. "enum": [
  30. "on",
  31. "off",
  32. "prompt"
  33. ],
  34. "description": "Sets the default analytics enablement status for the project.",
  35. "$default": {
  36. "$source": "argv",
  37. "index": 1
  38. }
  39. }
  40. },
  41. "required": [
  42. "settingOrProject"
  43. ]
  44. },
  45. { "$ref": "./definitions.json#/definitions/base" }
  46. ]
  47. }