@runic-artifex/vite-plugin-runic 0.7.0-preview.8 → 0.8.0-preview.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/dist/host-scripts.d.ts.map +1 -1
- package/dist/host-scripts.js +3 -1
- package/dist/host-scripts.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -13,7 +13,11 @@ export default defineConfig({ plugins: [runic({ desktop: true })] });
|
|
|
13
13
|
|
|
14
14
|
`desktop: true` inserts the Desktop bootstrap script and sets a relocatable
|
|
15
15
|
production base. For a CS-WebUI frontend, use `runic({ devtools: false })` or
|
|
16
|
-
omit the plugin entirely.
|
|
16
|
+
omit the plugin entirely. A Runic Views frontend needs neither: its page loads
|
|
17
|
+
`runic-views.js`, the Views client that every host provides, so `runic()` with
|
|
18
|
+
`base: "./"` builds one page for Runic Desktop and CS-WebUI. The Views build
|
|
19
|
+
passes the host it builds for as `RUNIC_APPLICATION_HOST` for a configuration
|
|
20
|
+
that still differs per host. `virtual:runic/client` and the `/client` entry point
|
|
17
21
|
provide bounded diagnostics and HMR resource ownership helpers. The optional
|
|
18
22
|
`@vitejs/devtools` peer enables the Runic dock; register `DevTools()` in your
|
|
19
23
|
Vite configuration when selecting `devtools: true`.
|
|
@@ -34,8 +38,8 @@ client: with a cold `node_modules/.vite` cache, the first page would otherwise
|
|
|
34
38
|
discover it, and Vite would reload the page and close the host's connection.
|
|
35
39
|
|
|
36
40
|
The native host serves `webui.js` and its client script (`runic-desktop.js`,
|
|
37
|
-
`runic-cswebui.js` or `runic-desktop-views.js`) from the root
|
|
38
|
-
content, outside the Vite build. The plugin leaves those classic script tags
|
|
41
|
+
`runic-views.js`, `runic-cswebui.js` or `runic-desktop-views.js`) from the root
|
|
42
|
+
of the web content, outside the Vite build. The plugin leaves those classic script tags
|
|
39
43
|
unbundled, so `vite build` prints no "can't be bundled without
|
|
40
44
|
type="module"" warning, and points them at the web root from every page: a
|
|
41
45
|
nested page such as `pages/settings.html` loads `../webui.js` in the build and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-scripts.d.ts","sourceRoot":"","sources":["../src/host-scripts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"host-scripts.d.ts","sourceRoot":"","sources":["../src/host-scripts.ts"],"names":[],"mappings":"AAiBA;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAG1D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CAa9F"}
|
package/dist/host-scripts.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
// The Runic hosts serve these classic scripts from the web root: CS-WebUI and
|
|
2
2
|
// Runic Desktop serve webui.js and runic-desktop.js, and the host packages copy
|
|
3
|
-
// their client scripts into www
|
|
3
|
+
// their client scripts into www/, the referenced host's also as the
|
|
4
|
+
// host-neutral runic-views.js. Vite cannot bundle them.
|
|
4
5
|
const hostScriptNames = new Set([
|
|
5
6
|
"webui.js",
|
|
6
7
|
"runic-desktop.js",
|
|
7
8
|
"runic-cswebui.js",
|
|
8
9
|
"runic-desktop-views.js",
|
|
10
|
+
"runic-views.js",
|
|
9
11
|
]);
|
|
10
12
|
const scriptTag = /<script\b([^>]*)>/gi;
|
|
11
13
|
const sourceAttribute = /(\ssrc\s*=\s*)(["'])([^"']*)\2/i;
|
package/dist/host-scripts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-scripts.js","sourceRoot":"","sources":["../src/host-scripts.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,gFAAgF;AAChF,
|
|
1
|
+
{"version":3,"file":"host-scripts.js","sourceRoot":"","sources":["../src/host-scripts.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,gF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E,OAAO,GAAG,CAAC;QACnC,IAAI,SAAS,GAAG,UAAU,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,MAAM,EAAE,MAAc,EAAE,KAAa,EAAE,EAAE,CAC5F,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC;QAC/C,IAAI,MAAM,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC;YAAE,SAAS,GAAG,eAAe,SAAS,EAAE,CAAC;QACvF,OAAO,UAAU,SAAS,GAAG,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,cAAc,CAAC,GAAW;IACjC,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAChC,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;IAClC,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO,SAAS,CAAC;IACjD,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,KAAK,EAAE,IAAI,OAAO,KAAK,GAAG,IAAI,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AAC/G,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runic-artifex/vite-plugin-runic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0-preview.1",
|
|
4
4
|
"description": "Vite 8 development and DevTools integration for Runic applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"url": "git+https://github.com/Runic-Artifex/runic-sdk.git",
|
|
61
61
|
"directory": "packages/web/vite-plugin-runic"
|
|
62
62
|
},
|
|
63
|
-
"homepage": "https://github.com/Runic-Artifex/runic-sdk/tree/v0.
|
|
63
|
+
"homepage": "https://github.com/Runic-Artifex/runic-sdk/tree/v0.8.0-preview.1/packages/web/vite-plugin-runic#readme",
|
|
64
64
|
"bugs": {
|
|
65
65
|
"url": "https://github.com/Runic-Artifex/runic-sdk/issues"
|
|
66
66
|
},
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"vite-plugin",
|
|
72
72
|
"devtools"
|
|
73
73
|
],
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "b99f3c0760a3d621478d82ae1fe5a03234a6c8a9"
|
|
75
75
|
}
|