PWA template (#18878)
* Add service worker * Add manifest * Bring back BaselineTest.cs * Add baselines for blazorwasm templates * Add publishing test for PWA template * Baseline fixes * Fix baseline test logic to allow for multi-project outputs * Remove non-blazorwasm baselines, since this branch now only covers blazorwasm * Add test for PWA publish output * Beginning generation of assets manifest * Generate assets manifest including blazor outputs * Tweaks * Write assets manifest in JSON form * Publish service worker * Better API * More resilience * Better API again * Make ComputeBlazorAssetsManifestItems public as people will need to customize the list * Exclude service worker files from assets manifest * Use web standard format for hash * Update project template * In assets manifest, only include items being published * Renames * Compute default assets manifest version by combining hashes * Emit sw manifest in .js form * Update service worker in project * Actually isolate browser instances when requested during E2E tests * E2E test for published PWA operating offline * Fix SWAM path in template * Clarify targets
显示
- src/Components/Blazor/Build/src/Tasks/GenerateServiceWorkerAssetsManifest.cs 82 个添加, 0 个删除...or/Build/src/Tasks/GenerateServiceWorkerAssetsManifest.cs
- src/Components/Blazor/Build/src/targets/All.targets 1 个添加, 0 个删除src/Components/Blazor/Build/src/targets/All.targets
- src/Components/Blazor/Build/src/targets/Blazor.MonoRuntime.targets 2 个添加, 2 个删除...nents/Blazor/Build/src/targets/Blazor.MonoRuntime.targets
- src/Components/Blazor/Build/src/targets/ServiceWorkerAssetsManifest.targets 98 个添加, 0 个删除...zor/Build/src/targets/ServiceWorkerAssetsManifest.targets
- src/Components/startvs.cmd 1 个添加, 1 个删除src/Components/startvs.cmd
- src/ProjectTemplates/BlazorWasm.ProjectTemplates/BlazorWasm-CSharp.Client.csproj.in 13 个添加, 0 个删除...rWasm.ProjectTemplates/BlazorWasm-CSharp.Client.csproj.in
- src/ProjectTemplates/BlazorWasm.ProjectTemplates/content/BlazorWasm-CSharp/.template.config/dotnetcli.host.json 6 个添加, 3 个删除...nt/BlazorWasm-CSharp/.template.config/dotnetcli.host.json
- src/ProjectTemplates/BlazorWasm.ProjectTemplates/content/BlazorWasm-CSharp/.template.config/template.json 14 个添加, 0 个删除.../content/BlazorWasm-CSharp/.template.config/template.json
- src/ProjectTemplates/BlazorWasm.ProjectTemplates/content/BlazorWasm-CSharp/.template.config/vs-2017.3.host.json 7 个添加, 0 个删除...nt/BlazorWasm-CSharp/.template.config/vs-2017.3.host.json
- src/ProjectTemplates/BlazorWasm.ProjectTemplates/content/BlazorWasm-CSharp/Client/wwwroot/icon-512.png 0 个添加, 0 个删除...tes/content/BlazorWasm-CSharp/Client/wwwroot/icon-512.png
- src/ProjectTemplates/BlazorWasm.ProjectTemplates/content/BlazorWasm-CSharp/Client/wwwroot/index.html 6 个添加, 0 个删除...lates/content/BlazorWasm-CSharp/Client/wwwroot/index.html
- src/ProjectTemplates/BlazorWasm.ProjectTemplates/content/BlazorWasm-CSharp/Client/wwwroot/manifest.json 15 个添加, 0 个删除...es/content/BlazorWasm-CSharp/Client/wwwroot/manifest.json
- src/ProjectTemplates/BlazorWasm.ProjectTemplates/content/BlazorWasm-CSharp/Client/wwwroot/service-worker.js 4 个添加, 0 个删除...ontent/BlazorWasm-CSharp/Client/wwwroot/service-worker.js
- src/ProjectTemplates/BlazorWasm.ProjectTemplates/content/BlazorWasm-CSharp/Client/wwwroot/service-worker.published.js 48 个添加, 0 个删除...zorWasm-CSharp/Client/wwwroot/service-worker.published.js
- src/ProjectTemplates/test/BaselineTest.cs 150 个添加, 0 个删除src/ProjectTemplates/test/BaselineTest.cs
- src/ProjectTemplates/test/BlazorWasmTemplateTest.cs 51 个添加, 0 个删除src/ProjectTemplates/test/BlazorWasmTemplateTest.cs
- src/ProjectTemplates/test/template-baselines.json 55 个添加, 1227 个删除src/ProjectTemplates/test/template-baselines.json
- src/Shared/E2ETesting/BrowserFixture.cs 27 个添加, 0 个删除src/Shared/E2ETesting/BrowserFixture.cs
加载中
想要评论请 注册 或 登录