Commit Graph

67 Commits

Author SHA1 Message Date
Steve Sanderson 78d12da33e Implement simplified RegisteredFunction.Invoke that uses JSON for marshalling 2018-01-03 14:13:04 +00:00
Steve Sanderson 54c2431e88 Rename Invoke to InvokeUnmarshalled 2018-01-03 12:01:20 +00:00
Steve Sanderson 7daec15a8e Add TS part of RegisteredFunction API 2017-12-15 20:01:23 +00:00
Steve Sanderson 9e92c21a2f Simplify code by not inlining quite so much 2017-12-15 19:50:36 +00:00
Steve Sanderson 04064f983c Add test to more explicitly cover both 'params array' and 'generics'-style interop APIs 2017-12-15 19:41:20 +00:00
Steve Sanderson 09eccb52c5 Remove old marshalled-interop API and update MonoSanity sample to use newer API 2017-12-15 19:16:15 +00:00
Steve Sanderson 99a08da321 Add API for unmarshalled .NET -> JS invocations (passing and returning .NET heap object pointers) 2017-12-15 14:26:40 +00:00
Steve Sanderson 748903c62f Rebuild client apps when any source file changes 2017-12-15 13:28:40 +00:00
Steve Sanderson fe6105a902 Support JS invocations that return undefined 2017-12-15 11:40:43 +00:00
Steve Sanderson d1069e2d1e Begin on Microsoft.Blazor.Browser project 2017-12-15 11:31:05 +00:00
Steve Sanderson 809528676b Rename Microsoft.Blazor.Browser project to Microsoft.Blazor.Browser.JS 2017-12-15 11:24:03 +00:00
Steve Sanderson 67f7559950 On exception when calling JS from .NET, return JS stack trace to .NET invoker 2017-12-15 11:05:28 +00:00
Steve Sanderson 6eede7b109 Low-level MonoSanity tests for invoking JS from .NET code 2017-12-15 10:57:44 +00:00
Steve Sanderson 4135f04901 Improve incremental build support 2017-12-14 19:54:00 +00:00
Steve Sanderson c72f9a1977 Simplify in-memory file provider usage by initializing with byte[], not Stream 2017-12-14 15:48:01 +00:00
Steve Sanderson 64770bfb23 Remove redundant file following Build/BuildTools split 2017-12-14 15:37:43 +00:00
Steve Sanderson a4b85ddf53 Split BuildTools into "Build" (for end-user app builds) and "BuildTools" (for building this repo only) 2017-12-14 15:32:28 +00:00
Steve Sanderson c49a67dcf0 Tidy up build filesystem providers code 2017-12-14 15:12:18 +00:00
Steve Sanderson 85cc7aee34 Use CompositeMountedFileProvider to simplify build logic 2017-12-14 14:48:36 +00:00
Steve Sanderson a81ad1830f Implement CompositeMountedFileProvider 2017-12-14 14:31:55 +00:00
Steve Sanderson aa63da5151 Write out all client app files to disk at build time instead of serving dynamically at runtime 2017-12-14 11:59:55 +00:00
Steve Sanderson 39b64c1bc3 Add tests for IndexHtmlFileProvider, plus minor cleanups 2017-12-13 12:33:47 +00:00
Steve Sanderson affc66c24e Move Server.Test project to correct location on disk 2017-12-13 11:15:31 +00:00
Steve Sanderson 7390af1681 Make the BuildTools project consumable either as a NuGet package or locally by importing a .proj 2017-12-13 11:10:41 +00:00
Steve Sanderson c5a104c56d Remove redundant 'using' 2017-12-12 19:54:27 +00:00
Steve Sanderson 91e1cd1030 Use (project).blazor.config to allow calling UseBlazor with just an assembly name. Allows ReferenceOutputAssembly=false. 2017-12-12 19:48:15 +00:00
Steve Sanderson d0096ec78e On build, emit <clientproject>.blazor.config to the output dir - transitively into host projects too 2017-12-12 17:18:35 +00:00
Steve Sanderson c4fea86603 Inject blazor.js script tag (with all references) automatically 2017-12-12 00:36:09 +00:00
Steve Sanderson aff369e86d Improve assembly resolution. Standalone hosting now works again. 2017-12-11 21:06:37 +00:00
Steve Sanderson 9ec79ae9f7 Start making standalone hosting work again by automatically locating the client app assembly 2017-12-11 19:45:02 +00:00
Steve Sanderson 9117263114 Load .NET assemblies from the ReferencedAssemblyFileProvider only 2017-12-11 19:18:19 +00:00
Steve Sanderson 3b01daf15a Begin on serving .NET assemblies from ReferencedAssemblyFileProvider 2017-12-11 17:32:30 +00:00
Steve Sanderson 9b95b68dbf Rename client bin dir to _bin so it can be served under default config 2017-12-11 17:24:42 +00:00
Steve Sanderson fb8a01a138 Fix tests in preceding commit 2017-12-11 17:00:32 +00:00
Steve Sanderson 667f2cc007 Split Mono files provider into "Js" and "Bcl" parts, as they are used for different things 2017-12-11 16:56:31 +00:00
Steve Sanderson 4b247e8050 Make ReferencedAssemblyFileProviderTest more useful 2017-12-11 16:11:13 +00:00
Steve Sanderson 5ec2a5eb1e Use new InMemoryFileProvider behaviours to clean up ReferencedAssemblyFileProvider 2017-12-11 15:14:07 +00:00
Steve Sanderson 867cb66b97 Use new file provider to serve Microsoft.Blazor.Browser and Microsoft.Blazor.Mono contents 2017-12-11 14:05:00 +00:00
Steve Sanderson 0ed4a4eba5 Implement directory-capable InMemoryFileProvider 2017-12-11 14:01:34 +00:00
Steve Sanderson c439787ab5 Begin implementing ReferencedAssemblyFileProvider 2017-12-09 00:53:44 +00:00
Steve Sanderson 1cb0df2e74 Solution layout tweak 2017-12-08 17:38:20 +00:00
Steve Sanderson 4618edead4 Rename BlazorStandalone sample to StandaloneApp for consistency 2017-12-08 17:36:29 +00:00
Steve Sanderson 4c15a74d14 Begin E2E testing for HostedInAspNet sample 2017-12-08 17:27:29 +00:00
Steve Sanderson 4138b3a049 Make Blazor apps actually start up Mono and execute the specified .NET entrypoint 2017-12-08 17:06:40 +00:00
Steve Sanderson 4d764d78df Beginning UseBlazorDevelopmentServer middleware and HostedInAspNet sample 2017-12-08 14:42:59 +00:00
Steve Sanderson da4df729ee Verify that the local Node.js version is 8.3.0+ (for NPM 5) before using it to build the static resources
Verify that the local Node.js version is 9.2.0+ before using it to build
the static resources
2017-12-08 13:09:18 +00:00
Steve Sanderson 5b5b3892d3 Auto-restore NPM dependencies on build 2017-12-08 10:27:46 +00:00
Steve Sanderson 82b2128bd9 Remove HelloWorld static site (it's now superseded by more relevant E2E samples) 2017-12-07 12:08:11 +00:00
Steve Sanderson bee5c176de Add comment about StaticSiteServerFixture 2017-12-07 12:06:07 +00:00
Steve Sanderson 6cad4e3b84 Make E2E tests even more E2E by using ASP.NET Core apps' BuildWebHost method 2017-12-07 11:57:34 +00:00