Commit Graph

52 Commits

Author SHA1 Message Date
Pranav K 592dfe165b
Changes to build in master
* Cleanup bad merge
* Update to dotnet-serve that supports arbitrary ports
2020-05-28 15:43:55 -07:00
Pranav K 4c50b6cb16
Merge blazor-wasm in to master 2020-05-27 11:00:38 -07:00
Pranav K 81007200b5
Quality of life improvements 2020-05-26 18:26:07 -07:00
Pranav K ae2017f31e
Changes to allow building in 3.1 branch
* Undo overzealous merge choices
* Undo temporary changes applied when part of the repo was building in the blazor-wasm branch
* Skip SPA template tests in 3.1
2020-05-22 09:20:54 -07:00
Pranav K 8efeefb3d1
Merge branch 'blazor-wasm' into prkrishn/merge-blazor-wasm 2020-05-16 21:10:28 -07:00
Safia Abdalla 2a97de0344
Fix intermediate path for service worker assets (#21128) 2020-04-30 15:03:16 -07:00
Pranav K 147f5758c6
Ensure satellite resources are published when building in VS (#21347)
* Ensure satellite resources are published when building in VS

Fixes https://github.com/dotnet/aspnetcore/issues/21355
2020-04-30 14:57:04 -07:00
Pranav K 5da314644a Add an option to allow trimming collation data 2020-04-23 12:08:21 +01:00
Pranav K 6c23730fa8
Compute SHA256s for blazor.boot.json in parallel (#21021)
* Compute SHA256s for blazor.boot.json in parallel
2020-04-20 17:25:24 -07:00
Javier Calvarro Nelson 8f12519b0e
Fix typo in ServiceWorkerAssetsManifest.targets (#20944)
Fixes a typo that prevented the service worker from being removed during publish
2020-04-17 07:16:05 -07:00
Pranav K 50a2527ca9
Copy I18N assemblies when running without the linker (#20878)
* Copy I18N assemblies when running without the linker
Fixes https://github.com/dotnet/aspnetcore/issues/20517
2020-04-16 16:52:07 -07:00
Javier Calvarro Nelson ad725861a9
[Blazor][Wasm] Build fixes for incrementalism and PWA (#20861)
* Fixes incrementalism issue caused by a wrong up to date check
* Fixes PWA template on hosted scenario by removing the 'ServiceWorker' from the content itemgroup in all scenarios.
2020-04-15 10:26:00 -07:00
Pranav K 3fbb2f0cd9
Add timezone support (#20493) 2020-04-14 13:37:49 -07:00
Pranav K f3a1fb6ad3 Fixups 2020-04-14 09:37:09 -07:00
Safia Abdalla b289633533 Do not override existing web.config during IIS publish 2020-04-14 09:37:09 -07:00
Pranav K 1e70883e87
Create a ref-assembly package for HttpHandler (#20382)
* Create a ref-assembly package for HttpHandler

Fixes #19202
2020-04-13 14:07:15 -07:00
Pranav K 351eba767c
Cleanup Blazor standalone publish output (#20470)
* Remove stray content from Blazor's publish output.
* Introduce BlazorPrunePublishOutput as a way for users to opt-out of this.

Fixes https://github.com/dotnet/aspnetcore/issues/17018
2020-04-06 08:50:27 -07:00
Javier Calvarro Nelson 8232c6a4d8
[Fixes #19644][Blazor] Support brotli compression for framework files (#20363)
* [Blazor] Support brotli compression for framework files
* Adds a new tool to the Blazor.Build package to perform brotli compression.
* Performs brotli compression at publish time
* Centralizes hashing computation in one place and creates hash files for
  performing incremental compilations
2020-04-06 08:29:24 -07:00
Safia Abdalla e67e7a08ca
Remove WebAssemblyLoggerFactory and refactor logging setup (#20432)
**Changes in this PR**
 - Replaces `WebAssemblyLoggerFactory` with `LoggerFactory` from logging extensions package
 - Moves WebAssemblyConsoleLogger and PrependMessageLogger to provider model

Now that we are using the standard `LoggerFactory` support for config options like `SetMinimumLevel` and `AddProvider` is available.

Compared to what is currently in the `blazor-wasm` branch, the changes in this PR add an additional 12 kb to the total compressed size.

Addresses #19737
2020-04-03 10:22:05 -07:00
Pranav K 41a9588353
Move specifying default Blazor linker config to props file (#20458)
Fixes #20443
2020-04-03 09:04:38 -07:00
Pranav K 1b2cb0b93c
Apply suggestions from code review
Co-Authored-By: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
2020-04-02 15:21:42 -07:00
Pranav K a127eb86da
Fixup 2020-04-02 15:14:48 -07:00
Pranav K 861e88c61b
Fixup tests 2020-04-02 15:14:44 -07:00
Pranav K a7c2d25ffa
Remove constraints on WebAssembly.Build package
Make Blazor-Wasm projects not-packable by default
2020-04-02 15:13:35 -07:00
Pranav K 0c614ff9c7
Fixup 2020-04-02 15:13:34 -07:00
Pranav K a9494214fa
Preserve files being published to the publish root and the wwwroot
Fixes https://github.com/dotnet/aspnetcore/issues/19926
2020-04-02 15:13:33 -07:00
Steve Sanderson 113cb5422d
Support JsonStringEnumConverter. Fixes #19086 (#20446)
* Fix serializing enums. Fixes #19086

* Add E2E test
2020-04-02 16:09:34 +01:00
Steve Sanderson ae569e2b48
Add some extra publish integration tests, plus fix publish-from-VS-with-RID (#20410)
* Add detailed integration tests for publishing service workers, assets manifests, and blazor.boot.json
* Fix publishing from VS with non-portable RID
2020-04-01 13:35:30 -07:00
Steve Sanderson 05ee136e87 Rename site.css to app.css. Fixes #19779 2020-03-31 12:31:57 +01:00
Pranav K 56b944f46c
Fix missing pdbs in Blazor build (#20257)
* Fix missing pdbs in Blazor build

* Allow tests to run in Debug and Release independent of the configuration test project is built in

Fixes https://github.com/dotnet/aspnetcore/issues/20242
2020-03-28 14:50:11 -07:00
Steve Sanderson c379bae8e9
Fix SWAM hash (#20240) 2020-03-28 17:53:46 +00:00
Pranav K 82d05ae785
Add support for loading satellite assemblies (#20033)
* Add support for loading satellite assemblies

Fixes #17016
2020-03-26 13:58:00 -07:00
Pranav K cb6858fe31
Update to using System.Net.Http.Json (#20195) 2020-03-26 10:13:23 -07:00
Pranav K de2fa4c69c Update versions
* Update Blazor version to preview4
* Update ASP.NET Core references to 3.1.3
* Remove DisableImplicitComponentsAnalyzers workaround
2020-03-25 15:59:17 -07:00
Steve Sanderson bbe9cca327
Write hash to service worker on publish (#20131)
* Write SWAM version into service worker output

* Update project template

* Add publishing test

* Update src/Components/WebAssembly/Build/src/targets/ServiceWorkerAssetsManifest.targets

Co-Authored-By: Pranav K <prkrishn@hotmail.com>

* Add E2E test for hosted PWA too

* Avoid test clashes

* E2E test fix

* E2E test fix

* E2E test fix

Co-authored-by: Pranav K <prkrishn@hotmail.com>
2020-03-25 20:06:03 +00:00
Pranav K 147c39289a
Add support for configuration (#19544)
* Add support for configuration

Fixes https://github.com/dotnet/aspnetcore/issues/18675
2020-03-12 11:38:06 -07:00
Pranav K a0c76e5a4c
Rename WebAssembly.JSInterop -> Microsoft.JSInterop.WebAssembly 2020-03-10 13:42:35 -07:00
Pranav K 247c0ddae9
Make BlazorLinkerDescriptor public (#19649)
This was accidentally made non-public as part of the API review
2020-03-06 10:18:53 -08:00
Pranav K b02978e0d8
React to dotnet.js having a version number (#19603) 2020-03-05 14:36:32 -08:00
Javier Calvarro Nelson e15e1c2415
[Blazor] Fix incrementalism with unlinked files (#19596) 2020-03-05 05:44:08 -08:00
Javier Calvarro Nelson 085f6e1585
[Blazor][Fixes #19503] Exclude gzip files from manifest (#19525)
* Exclude gzip files from manifest
* Add a test to validate the service-worker manifest
2020-03-03 03:41:58 -08:00
Steve Sanderson eed3605ae5
In debug mode, don't enable the linker by default (plus other minor build fixes) (#19374)
* In debug mode, don't enable the linker by default

* Fixup

* Update Blazor.MonoRuntime.targets

* Ensure we have a true/false value. Stop inferring from BlazorLinkOnBuild.

* Avoid doing work for ServiceWorkerAssetsManifest when it's not being used

* React to BlazorLinkOnBuild->BlazorWebAssemblyEnableLinking rename

Co-authored-by: Pranav K <prkrishn@hotmail.com>
2020-02-27 11:49:47 +00:00
Steve Sanderson bfcf72dfdf
Fix boot json on mac/linux (#19332) 2020-02-25 11:48:31 +00:00
Pranav K 7ba8d06717
BlazorWASM: API review (#19219)
Fixes https://github.com/dotnet/aspnetcore/issues/13174
2020-02-21 12:58:02 -08:00
Steve Sanderson 6fe946e633
Blazor WebAssembly caching fixes (#19235)
* Support logging errors that happen really early

* Tolerate all the ways caching might be unavailable

* Include dotnet.js in blazor.boot.json

* Reorganize boot manifest to categorize files by role, not just by filename extension

* Enable cache-busting and SRI check on dotnet.js

* Change cache-busting to vary filename, not using querystring. Needed to make PWA manifest still work.
2020-02-21 17:35:36 +00:00
Javier Calvarro Nelson c9c06f573d
[Blazor] Adds support for statically pre-compressing assets using gzip (#19157)
* Adds a task to perform gzip compession.
* Gzips framework files incrementally
* Serves pre-compressed versions of the framework files when possible.
2020-02-21 09:32:07 -08:00
Pranav K 4715de45eb
Fixup RuntimeDependenciesResolver test (#19208)
Fixes https://github.com/dotnet/aspnetcore/issues/12059
2020-02-21 08:35:20 -08:00
Pranav K 1dfbe75e9f
Rename Blazor.Mono -> Components.WebAssembly.Runtime (#19124)
* Rename Blazor.Mono -> Components.WebAssembly.Runtime
2020-02-19 09:06:50 -08:00
Javier Calvarro Nelson 0e155fd7ca
[Fixes #12588][Blazor] Move Blazor to use Static Web Assets (#18409)
* [Blazor] Move Blazor to use Static Web Assets
* Plugs-in Blazor wasm through the static web assets infrastructure.
* Avoids the need for a custom Blazor.config file.
* Removes broken auto-rebuild and debug support.
* Removes unnecessary server-side Blazor helpers.
2020-02-19 04:05:03 -08:00
Pranav K 52c4598618
Fixup 2020-02-18 15:26:15 -08:00