add.json 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. "$schema": "http://json-schema.org/schema",
  3. "$id": "ng-cli://commands/add.json",
  4. "description": "Adds support for an external library to your project.",
  5. "$longDescription": "./add.md",
  6. "$scope": "in",
  7. "$impl": "./add-impl#AddCommand",
  8. "type": "object",
  9. "allOf": [
  10. {
  11. "properties": {
  12. "collection": {
  13. "type": "string",
  14. "description": "The package to be added.",
  15. "$default": {
  16. "$source": "argv",
  17. "index": 0
  18. }
  19. },
  20. "registry": {
  21. "description": "The NPM registry to use.",
  22. "type": "string",
  23. "oneOf": [
  24. {
  25. "format": "uri"
  26. },
  27. {
  28. "format": "hostname"
  29. }
  30. ]
  31. },
  32. "verbose": {
  33. "description": "Display additional details about internal operations during execution.",
  34. "type": "boolean",
  35. "default": false
  36. }
  37. },
  38. "required": [
  39. ]
  40. },
  41. {
  42. "$ref": "./definitions.json#/definitions/interactive"
  43. },
  44. {
  45. "$ref": "./definitions.json#/definitions/base"
  46. }
  47. ]
  48. }