config.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "$schema": "http://json-schema.org/schema",
  3. "$id": "ng-cli://commands/config.json",
  4. "description": "Retrieves or sets Angular configuration values in the angular.json file for the workspace.",
  5. "$longDescription": "",
  6. "$aliases": [],
  7. "$scope": "all",
  8. "$type": "native",
  9. "$impl": "./config-impl#ConfigCommand",
  10. "type": "object",
  11. "allOf": [
  12. {
  13. "properties": {
  14. "jsonPath": {
  15. "type": "string",
  16. "description": "The configuration key to set or query, in JSON path format. For example: \"a[3].foo.bar[2]\". If no new value is provided, returns the current value of this key.",
  17. "$default": {
  18. "$source": "argv",
  19. "index": 0
  20. }
  21. },
  22. "value": {
  23. "type": ["string", "number", "boolean"],
  24. "description": "If provided, a new value for the given configuration key.",
  25. "$default": {
  26. "$source": "argv",
  27. "index": 1
  28. }
  29. },
  30. "global": {
  31. "type": "boolean",
  32. "description": "When true, accesses the global configuration in the caller's home directory.",
  33. "default": false,
  34. "aliases": ["g"]
  35. }
  36. },
  37. "required": [
  38. ]
  39. },
  40. { "$ref": "./definitions.json#/definitions/base" }
  41. ]
  42. }