My understanding is that the WinRT APIs are available from JavaScript code running in a special sort of bundled PWA.
Microsoft's Create a "Hello World" app (JS) tutorial shows a script simply accessing APIs via a global Windows
object. Likewise this guide explains how I might take an existing web app and run it. Unfortunately those both use the "shortcut" of an app template created and launched via Visual Studio; I cannot install anything but the "core" of Visual Studio because the system disk on my Windows laptop is too small. (The likeliest "workflow" option requires a huge ASP.NET component.)
If I load the following very simple "PWA" index.html
implementation in MS Edge, of course it does not work since the WinRT APIs are not exposed to untrusted code running in the browser:
<!doctype html>
<html><head>
<meta charset="utf-8">
<title>Testing WinRT</title>
</head><body>
<script>
var messageDialog = new Windows.UI.Popups.MessageDialog("Hello, world!", "Alert");
messageDialog.showAsync();
</script>
</body>
Without Visual Studio, is there any way to run the above HTML file as a working UWP app? Do I need to somehow package and/or sign this "code", or is there a tool I can use to preview some local HTML/JS/CSS files ± as-is? At this point I am just looking for an easy way to test out the WinRT APIs — any technique does not have to be "production grade".