schema.d.ts 2.1 KB

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