Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5876577

Browse filesBrowse files
atscottjkrems
authored andcommitted
feat(@schematics/angular): Add prompt for new apps to be zoneless
This commit adds a prompt to ask if the user wants to generate the app as zoneless.
1 parent 148498c commit 5876577
Copy full SHA for 5876577

File tree

Expand file treeCollapse file tree

4 files changed

+4
-10
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+4
-10
lines changed

‎packages/schematics/angular/application/schema.json

Copy file name to clipboardExpand all lines: packages/schematics/angular/application/schema.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
},
121121
"zoneless": {
122122
"description": "Generate an application that does not use `zone.js`.",
123+
"x-prompt": "Do you want to create a 'zoneless' application without zone.js (Developer Preview)?",
123124
"type": "boolean",
124125
"default": false
125126
}

‎packages/schematics/angular/ng-new/schema.json

Copy file name to clipboardExpand all lines: packages/schematics/angular/ng-new/schema.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141
},
142142
"zoneless": {
143143
"description": "Create an initial application that does not utilize `zone.js`.",
144+
"x-prompt": "Do you want to create a 'zoneless' application without zone.js (Developer Preview)?",
144145
"type": "boolean",
145146
"default": false
146147
}

‎pnpm-lock.yaml

Copy file name to clipboardExpand all lines: pnpm-lock.yaml
-1Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎tests/legacy-cli/e2e/tests/generate/application/application-zoneless.ts

Copy file name to clipboardExpand all lines: tests/legacy-cli/e2e/tests/generate/application/application-zoneless.ts
+2-9Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,12 @@ import { ng } from '../../../utils/process';
22
import { useCIChrome } from '../../../utils/project';
33

44
export default async function () {
5-
await ng('generate', 'app', 'standalone', '--experimental-zoneless', '--standalone');
5+
await ng('generate', 'app', 'standalone', '--zoneless', '--standalone');
66
await useCIChrome('standalone', 'projects/standalone');
77
await ng('test', 'standalone', '--watch=false');
88
await ng('build', 'standalone');
99

10-
await ng(
11-
'generate',
12-
'app',
13-
'ngmodules',
14-
'--experimental-zoneless',
15-
'--no-standalone',
16-
'--skip-install',
17-
);
10+
await ng('generate', 'app', 'ngmodules', '--zoneless', '--no-standalone', '--skip-install');
1811
await useCIChrome('ngmodules', 'projects/ngmodules');
1912
await ng('test', 'ngmodules', '--watch=false');
2013
await ng('build', 'ngmodules');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.