-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(@ngtools/webpack): move server stuff to normal test app
- Loading branch information
1 parent
dfb5859
commit 1ac4d48
Showing
18 changed files
with
46 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import 'core-js/es7/reflect'; | ||
import {platformServer} from '@angular/platform-server'; | ||
import {ServerAppModuleNgFactory} from './ngfactory/app/server-app.module.ngfactory'; | ||
|
||
platformServer().bootstrapModuleFactory(ServerAppModuleNgFactory); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import 'core-js/es7/reflect'; | ||
import {platformDynamicServer} from '@angular/platform-server'; | ||
import {ServerAppModule} from './server-app.module'; | ||
|
||
platformDynamicServer().bootstrapModule(ServerAppModule); |
13 changes: 13 additions & 0 deletions
13
tests/e2e/assets/webpack/test-app/app/server-app.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { NgModule, Component } from '@angular/core'; | ||
import { ServerModule } from '@angular/platform-server'; | ||
import { AppModule } from './app.module'; | ||
import { AppComponent } from './app.component'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
AppModule, | ||
ServerModule | ||
], | ||
bootstrap: [AppComponent] | ||
}) | ||
export class ServerAppModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
tests/e2e/assets/webpack/test-server-app/app/app.component.html
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
tests/e2e/assets/webpack/test-server-app/app/app.component.scss
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
tests/e2e/assets/webpack/test-server-app/app/app.component.ts
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
tests/e2e/assets/webpack/test-server-app/app/app.module.ts
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
tests/e2e/assets/webpack/test-server-app/app/feature/feature.module.ts
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
tests/e2e/assets/webpack/test-server-app/app/feature/lazy-feature.module.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
tests/e2e/assets/webpack/test-server-app/app/lazy.module.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters