Skip to content

feat(@schematics/angular): Applications are zoneless by default #30718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! feat(@schematics/angular): Applications are zoneless by default
  • Loading branch information
atscott committed Jul 21, 2025
commit bba6ec943aef271a0144ab00f86deb1030984e81
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ import { updateJsonFile } from '../../../utils/project';
const snapshots = require('../../../ng-snapshot/package.json');

export default async function () {
await ng('generate', 'app', 'test-project-two', '--routing', '--no-standalone', '--skip-install');
await ng(
'generate',
'app',
'test-project-two',
'--routing',
'--no-standalone',
'--skip-install',
'--no-zoneless',
);
await ng('generate', 'app-shell', '--project', 'test-project-two');

const isSnapshotBuild = getGlobalVariable('argv')['ng-snapshots'];
Expand Down
11 changes: 9 additions & 2 deletions tests/legacy-cli/e2e/tests/build/jit-ngmodule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ import { ng } from '../../utils/process';
import { updateJsonFile, useCIChrome, useCIDefaults } from '../../utils/project';

export default async function () {
await ng('generate', 'app', 'test-project-two', '--no-standalone', '--skip-install');
await ng('generate', 'private-e2e', '--related-app-name=test-project-two');
await ng(
'generate',
'app',
'test-project-two',
'--no-standalone',
'--skip-install',
'--no-zoneless',
);
await ng('generate', 'private-e2e', '--related-app-name=test-project-two', '--no-zoneless');

// Setup testing to use CI Chrome.
await useCIChrome('test-project-two', './projects/test-project-two/e2e');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ export default async function () {
// forcibly remove in case another test doesn't clean itself up
await rimraf('node_modules/@angular/ssr');

await ng('generate', 'app', 'test-project-two', '--no-standalone', '--skip-install');
await ng(
'generate',
'app',
'test-project-two',
'--no-standalone',
'--skip-install',
'--no-zoneless',
);
await ng('generate', 'private-e2e', '--related-app-name=test-project-two');

// Setup testing to use CI Chrome.
Expand Down
4 changes: 2 additions & 2 deletions tests/legacy-cli/e2e/tests/commands/builder-project-by-cwd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { expectFileToExist } from '../../utils/fs';
import { ng } from '../../utils/process';

export default async function () {
await ng('generate', 'app', 'second-app', '--skip-install');
await ng('generate', 'app', 'third-app', '--skip-install');
await ng('generate', 'app', 'second-app', '--skip-install', '--no-zoneless');
await ng('generate', 'app', 'third-app', '--skip-install', '--no-zoneless');
const startCwd = process.cwd();

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default async function () {
delete workspaceJson.projects['test-project'];
});

await ng('generate', 'app', 'second-app', '--skip-install');
await ng('generate', 'app', 'third-app', '--skip-install');
await ng('generate', 'app', 'second-app', '--skip-install', '--no-zoneless');
await ng('generate', 'app', 'third-app', '--skip-install', '--no-zoneless');

const startCwd = process.cwd();

Expand Down
2 changes: 1 addition & 1 deletion tests/legacy-cli/e2e/tests/misc/multiple-targets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { expectFileToExist } from '../../utils/fs';
import { ng } from '../../utils/process';

export default async function () {
await ng('generate', 'app', 'secondary-app');
await ng('generate', 'app', 'secondary-app', '--no-zoneless');
await ng('build', 'secondary-app', '--configuration=development');
await expectFileToExist('dist/secondary-app/browser/index.html');
await expectFileToExist('dist/secondary-app/browser/main.js');
Expand Down
Loading