schema.json 1.0 KB

1234567891011121314151617181920212223
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema",
  3. "$id": "SchematicsAngularServiceWorker",
  4. "title": "Angular Service Worker Options Schema",
  5. "type": "object",
  6. "additionalProperties": false,
  7. "description": "Adds a service worker to your project. Service workers enable your application to work offline or on low-quality networks by caching assets and intercepting network requests. This schematic configures your project to use a service worker.",
  8. "properties": {
  9. "project": {
  10. "type": "string",
  11. "description": "The name of the project to add the service worker to. If not specified, the CLI will determine the project from the current directory.",
  12. "$default": {
  13. "$source": "projectName"
  14. }
  15. },
  16. "target": {
  17. "type": "string",
  18. "description": "The build target to apply the service worker to. This is typically `build`, indicating that the service worker should be generated during the standard build process.",
  19. "default": "build"
  20. }
  21. },
  22. "required": ["project"]
  23. }