mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 18:13:38 +08:00
fix(@schematics/angular): add serverTarget to app shell production configuration
This commit is contained in:
parent
0909943259
commit
258df041c3
@ -194,6 +194,7 @@ function addAppShellConfigToWorkspace(options: AppShellOptions): Rule {
|
|||||||
configurations: {
|
configurations: {
|
||||||
production: {
|
production: {
|
||||||
browserTarget: `${options.clientProject}:build:production`,
|
browserTarget: `${options.clientProject}:build:production`,
|
||||||
|
serverTarget: `${options.clientProject}:server:production`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -69,6 +69,7 @@ describe('App Shell Schematic', () => {
|
|||||||
expect(target.options.serverTarget).toEqual('bar:server');
|
expect(target.options.serverTarget).toEqual('bar:server');
|
||||||
expect(target.options.route).toEqual('shell');
|
expect(target.options.route).toEqual('shell');
|
||||||
expect(target.configurations.production.browserTarget).toEqual('bar:build:production');
|
expect(target.configurations.production.browserTarget).toEqual('bar:build:production');
|
||||||
|
expect(target.configurations.production.serverTarget).toEqual('bar:server:production');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should add router module to client app module', () => {
|
it('should add router module to client app module', () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user