collection.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // This is the root config file where the schematics are defined.
  2. {
  3. "$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
  4. "schematics": {
  5. // Adds Angular Material to an application without changing any templates
  6. "ng-add": {
  7. "description": "Adds Angular Material to the application without affecting any templates",
  8. "factory": "./ng-add/index",
  9. "schema": "./ng-add/schema.json",
  10. "aliases": ["material-shell", "install"]
  11. },
  12. "ng-add-setup-project": {
  13. "description": "Sets up the specified project after the ng-add dependencies have been installed.",
  14. "private": true,
  15. "factory": "./ng-add/setup-project",
  16. "schema": "./ng-add/schema.json"
  17. },
  18. // Create a dashboard component
  19. "dashboard": {
  20. "description": "Create a card-based dashboard component",
  21. "factory": "./ng-generate/dashboard/index",
  22. "schema": "./ng-generate/dashboard/schema.json",
  23. "aliases": ["material-dashboard"]
  24. },
  25. // Creates a table component
  26. "table": {
  27. "description": "Create a component that displays data with a data-table",
  28. "factory": "./ng-generate/table/index",
  29. "schema": "./ng-generate/table/schema.json",
  30. "aliases": ["material-table"]
  31. },
  32. // Creates toolbar and navigation components
  33. "nav": {
  34. "description": "Create a component with a responsive sidenav for navigation",
  35. "factory": "./ng-generate/nav/index",
  36. "schema": "./ng-generate/nav/schema.json",
  37. "aliases": ["material-nav", "materialNav"]
  38. },
  39. // Create a file tree component
  40. "tree": {
  41. "description": "Create a file tree component.",
  42. "factory": "./ng-generate/tree/index",
  43. "schema": "./ng-generate/tree/schema.json",
  44. "aliases": ["material-tree"]
  45. },
  46. // Creates a address form component
  47. "addressForm": {
  48. "description": "Create a component with a address form",
  49. "factory": "./ng-generate/address-form/index",
  50. "schema": "./ng-generate/address-form/schema.json",
  51. "aliases": ["address-form", "material-address-form", "material-addressForm"]
  52. }
  53. }
  54. }