Skip to content

Commit f98c9de

Browse files
alan-agius4angular-robot[bot]
authored andcommitted
fix(@schematics/angular): add experimental message when using standalone application schematic.
This commit adds a warning when using `ng new --standalone` and `ng generate app --standalone`.
1 parent 46125f6 commit f98c9de

File tree

1 file changed

+8
-1
lines changed
  • packages/schematics/angular/application

1 file changed

+8
-1
lines changed

packages/schematics/angular/application/index.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,17 @@ import { Builders, ProjectType } from '../utility/workspace-models';
3333
import { Schema as ApplicationOptions, Style } from './schema';
3434

3535
export default function (options: ApplicationOptions): Rule {
36-
return async (host: Tree) => {
36+
return async (host: Tree, context: SchematicContext) => {
3737
const { appDir, appRootSelector, componentOptions, folderName, sourceDir } =
3838
await getAppOptions(host, options);
3939

40+
if (options.standalone) {
41+
context.logger.warn(
42+
'Standalone application structure is new and not yet supported by many existing' +
43+
` 'ng add' and 'ng update' integrations with community libraries.`,
44+
);
45+
}
46+
4047
return chain([
4148
addAppToWorkspaceFile(options, appDir, folderName),
4249
options.standalone

0 commit comments

Comments
 (0)