UNPKG

3.75 kBTypeScriptView Raw
1/**
2 * Creates a new project by combining the workspace and application schematics.
3 */
4export interface Schema {
5 /**
6 * Initial git repository commit information.
7 */
8 commit?: CommitUnion;
9 /**
10 * Create a new initial application project in the 'src' folder of the new workspace. When
11 * false, creates an empty workspace with no initial application. You can then use the
12 * generate application command so that all applications are created in the projects folder.
13 */
14 createApplication?: boolean;
15 /**
16 * The directory name to create the workspace in.
17 */
18 directory?: string;
19 /**
20 * Include styles inline in the component TS file. By default, an external styles file is
21 * created and referenced in the component TypeScript file.
22 */
23 inlineStyle?: boolean;
24 /**
25 * Include template inline in the component TS file. By default, an external template file
26 * is created and referenced in the component TypeScript file.
27 */
28 inlineTemplate?: boolean;
29 /**
30 * Link the CLI to the global version (internal development only).
31 */
32 linkCli?: boolean;
33 /**
34 * Create a workspace without any testing frameworks. (Use for learning purposes only.)
35 */
36 minimal?: boolean;
37 /**
38 * The name of the new workspace and initial project.
39 */
40 name: string;
41 /**
42 * The path where new projects will be created, relative to the new workspace root.
43 */
44 newProjectRoot?: string;
45 /**
46 * The package manager used to install dependencies.
47 */
48 packageManager?: PackageManager;
49 /**
50 * The prefix to apply to generated selectors for the initial project.
51 */
52 prefix?: string;
53 /**
54 * Enable routing in the initial project.
55 */
56 routing?: boolean;
57 /**
58 * Do not initialize a git repository.
59 */
60 skipGit?: boolean;
61 /**
62 * Do not install dependency packages.
63 */
64 skipInstall?: boolean;
65 /**
66 * Do not generate "spec.ts" test files for the new project.
67 */
68 skipTests?: boolean;
69 /**
70 * Creates an application with Server-Side Rendering (SSR) and Static Site Generation
71 * (SSG/Prerendering) enabled.
72 */
73 ssr?: boolean;
74 /**
75 * Creates an application based upon the standalone API, without NgModules.
76 */
77 standalone?: boolean;
78 /**
79 * Creates a workspace with stricter type checking and stricter bundle budgets settings.
80 * This setting helps improve maintainability and catch bugs ahead of time. For more
81 * information, see https://angular.io/guide/strict-mode
82 */
83 strict?: boolean;
84 /**
85 * The file extension or preprocessor to use for style files.
86 */
87 style?: Style;
88 /**
89 * The version of the Angular CLI to use.
90 */
91 version: string;
92 /**
93 * The view encapsulation strategy to use in the initial project.
94 */
95 viewEncapsulation?: ViewEncapsulation;
96}
97/**
98 * Initial git repository commit information.
99 */
100export type CommitUnion = boolean | CommitObject;
101export interface CommitObject {
102 email: string;
103 message?: string;
104 name: string;
105 [property: string]: any;
106}
107/**
108 * The package manager used to install dependencies.
109 */
110export declare enum PackageManager {
111 Bun = "bun",
112 Cnpm = "cnpm",
113 Npm = "npm",
114 Pnpm = "pnpm",
115 Yarn = "yarn"
116}
117/**
118 * The file extension or preprocessor to use for style files.
119 */
120export declare enum Style {
121 Css = "css",
122 Less = "less",
123 Sass = "sass",
124 Scss = "scss"
125}
126/**
127 * The view encapsulation strategy to use in the initial project.
128 */
129export declare enum ViewEncapsulation {
130 Emulated = "Emulated",
131 None = "None",
132 ShadowDom = "ShadowDom"
133}