Skip to content

Commit 6cb0791

Browse files
committed
package cleanup and removed ssr commented code
1 parent 091d1bc commit 6cb0791

File tree

4 files changed

+0
-51
lines changed

4 files changed

+0
-51
lines changed

src/Presentation/Web/ClientApp/package-lock.json

Lines changed: 0 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Presentation/Web/ClientApp/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"clean:install": "rimraf node_modules & yarn",
1818
"start": "ng serve --hmr",
1919
"build": "ng build --configuration production",
20-
"build:ssr": "npm run build --project=ssr",
2120
"lint": "ng lint",
2221
"e2e": "ng e2e",
2322
"test": "jest",
@@ -37,15 +36,13 @@
3736
"@angular/localize": "^13.0.0",
3837
"@angular/platform-browser": "13.0.0",
3938
"@angular/platform-browser-dynamic": "13.0.0",
40-
"@angular/platform-server": "13.0.0",
4139
"@angular/router": "13.0.0",
4240
"@microsoft/signalr": "5.0.11",
4341
"@microsoft/signalr-protocol-msgpack": "5.0.11",
4442
"@ng-bootstrap/ng-bootstrap": "^10.0.0",
4543
"ag-grid-angular": "^26.1.0",
4644
"ag-grid-community": "^26.1.0",
4745
"bootstrap": "4.6.0",
48-
"core-js": "^3.19.1",
4946
"date-fns": "2.25.0",
5047
"lodash": "4.17.21",
5148
"oidc-client": "1.11.5",

src/Presentation/Web/Startup.cs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -100,25 +100,6 @@ public void Configure(IApplicationBuilder app)
100100
{
101101
spa.Options.SourcePath = "ClientApp";
102102

103-
/*
104-
// If you want to enable server-side rendering (SSR),
105-
// [1] In AspNetCoreSpa.csproj, change the <BuildServerSideRenderer> property
106-
// value to 'true', so that the SSR bundle is built during publish
107-
// [2] Uncomment this code block
108-
*/
109-
110-
// spa.UseSpaPrerendering(options =>
111-
// {
112-
// options.BootModulePath = $"{spa.Options.SourcePath}/dist-server/main.bundle.js";
113-
// options.BootModuleBuilder = env.IsDevelopment() ? new AngularCliBuilder(npmScript: "build:ssr") : null;
114-
// options.ExcludeUrls = new[] { "/sockjs-node" };
115-
// options.SupplyData = (requestContext, obj) =>
116-
// {
117-
// // var result = appService.GetApplicationData(requestContext).GetAwaiter().GetResult();
118-
// obj.Add("Cookies", requestContext.Request.Cookies);
119-
// };
120-
// });
121-
122103
if (HostingEnvironment.IsDevelopment())
123104
{
124105
//spa.UseAngularCliServer(npmScript: "start");

src/Presentation/Web/Web.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<SpaRoot>ClientApp\</SpaRoot>
88
<DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
99
<!-- Set this to true if you enable server-side prerendering -->
10-
<BuildServerSideRenderer>false</BuildServerSideRenderer>
1110
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
1211
<DockerfileContext>.</DockerfileContext>
1312
<DockerComposeProjectPath>docker-compose.dcproj</DockerComposeProjectPath>
@@ -78,7 +77,6 @@
7877
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
7978
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
8079
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build" />
81-
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build:ssr" Condition=" '$(BuildServerSideRenderer)' == 'true' " />
8280

8381
<!-- Include the newly-built files in the publish output -->
8482
<ItemGroup>

0 commit comments

Comments
 (0)