Skip to content

Commit 08ba711

Browse files
committed
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 004f064 commit 08ba711

File tree

4 files changed

+29
-34
lines changed

4 files changed

+29
-34
lines changed

packages/schematics/angular/application/schema.json

+1
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

+1
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

+25-25
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

+2-9
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)