schema.d.ts 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /**
  2. * Generates a new basic application definition in the "projects" subfolder of the workspace.
  3. */
  4. export interface Schema {
  5. /**
  6. * Include styles inline in the root component.ts file. Only CSS styles can be included
  7. * inline. Default is false, meaning that an external styles file is created and referenced
  8. * in the root component.ts file.
  9. */
  10. inlineStyle?: boolean;
  11. /**
  12. * Include template inline in the root component.ts file. Default is false, meaning that an
  13. * external template file is created and referenced in the root component.ts file.
  14. */
  15. inlineTemplate?: boolean;
  16. /**
  17. * Create a bare-bones project without any testing frameworks. (Use for learning purposes
  18. * only.)
  19. */
  20. minimal?: boolean;
  21. /**
  22. * The name of the new application.
  23. */
  24. name: string;
  25. /**
  26. * A prefix to apply to generated selectors.
  27. */
  28. prefix?: string;
  29. /**
  30. * The root directory of the new application.
  31. */
  32. projectRoot?: string;
  33. /**
  34. * Create a routing NgModule.
  35. */
  36. routing?: boolean;
  37. /**
  38. * Skip installing dependency packages.
  39. */
  40. skipInstall?: boolean;
  41. /**
  42. * Do not add dependencies to the "package.json" file.
  43. */
  44. skipPackageJson?: boolean;
  45. /**
  46. * Do not create "spec.ts" test files for the application.
  47. */
  48. skipTests?: boolean;
  49. /**
  50. * Creates an application based upon the standalone API, without NgModules.
  51. */
  52. standalone?: boolean;
  53. /**
  54. * Creates an application with stricter bundle budgets settings.
  55. */
  56. strict?: boolean;
  57. /**
  58. * The file extension or preprocessor to use for style files.
  59. */
  60. style?: Style;
  61. /**
  62. * The view encapsulation strategy to use in the new application.
  63. */
  64. viewEncapsulation?: ViewEncapsulation;
  65. }
  66. /**
  67. * The file extension or preprocessor to use for style files.
  68. */
  69. export declare enum Style {
  70. Css = "css",
  71. Less = "less",
  72. Sass = "sass",
  73. Scss = "scss"
  74. }
  75. /**
  76. * The view encapsulation strategy to use in the new application.
  77. */
  78. export declare enum ViewEncapsulation {
  79. Emulated = "Emulated",
  80. None = "None",
  81. ShadowDom = "ShadowDom"
  82. }