schema.d.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * Creates a new Angular workspace. A workspace provides a structured environment for
  3. * developing multiple projects, allowing you to manage dependencies, configurations, and
  4. * build processes for a collection of applications and libraries. This schematic sets up
  5. * the basic structure of the workspace and installs the necessary Angular dependencies.
  6. */
  7. export type Schema = {
  8. /**
  9. * Create a workspace without any testing frameworks. This is intended for learning purposes
  10. * and simple experimentation, not for production applications.
  11. */
  12. minimal?: boolean;
  13. /**
  14. * The name for the new workspace. This name will be used for the root directory and will be
  15. * referenced in various configuration files.
  16. */
  17. name: string;
  18. /**
  19. * The path where new projects will be created within the workspace, relative to the
  20. * workspace root. By default, new projects are created in the `projects` directory.
  21. */
  22. newProjectRoot?: string;
  23. /**
  24. * The package manager to use for installing dependencies.
  25. */
  26. packageManager?: PackageManager;
  27. /**
  28. * Enable stricter type checking and bundle budget settings for projects created within the
  29. * workspace. This helps improve maintainability and catch bugs early on. For more
  30. * information, see https://angular.dev/tools/cli/template-typecheck#strict-mode
  31. */
  32. strict?: boolean;
  33. /**
  34. * The version of the Angular CLI to use.
  35. */
  36. version: string;
  37. };
  38. /**
  39. * The package manager to use for installing dependencies.
  40. */
  41. export declare enum PackageManager {
  42. Bun = "bun",
  43. Cnpm = "cnpm",
  44. Npm = "npm",
  45. Pnpm = "pnpm",
  46. Yarn = "yarn"
  47. }