@stencil/dev-server 5.0.0-next.0 → 5.0.0-rc.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 +105 -0
- package/dist/client/index.d.ts +9 -3
- package/dist/client/index.js +152 -84
- package/dist/connector.html +27 -20
- package/dist/index.d.mts +0 -3
- package/dist/index.mjs +348 -51
- package/dist/templates/directory-index.html +16 -6
- package/dist/templates/initial-load.html +142 -132
- package/dist/worker-thread.js +17 -15
- package/package.json +25 -19
- package/templates/directory-index.html +16 -6
- package/templates/initial-load.html +142 -132
- /package/{LICENSE.md → LICENSE} +0 -0
package/dist/connector.html
CHANGED
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html>
|
|
3
|
-
<head>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>Stencil Dev Server Connector 5.0.0</title>
|
|
6
|
+
<style>
|
|
7
|
+
body {
|
|
8
|
+
background: black;
|
|
9
|
+
color: white;
|
|
10
|
+
font: 18px monospace;
|
|
11
|
+
text-align: center;
|
|
12
|
+
}
|
|
13
|
+
</style>
|
|
14
|
+
</head>
|
|
15
|
+
<body>
|
|
16
|
+
Stencil Dev Server Connector 5.0.0
|
|
10
17
|
|
|
11
|
-
<script type="module">
|
|
12
|
-
|
|
18
|
+
<script type="module">
|
|
19
|
+
import { initDevClient } from '/~dev-server/client/index.js';
|
|
13
20
|
|
|
14
|
-
|
|
15
|
-
|
|
21
|
+
const appWindow = window.parent;
|
|
22
|
+
const config = window.__DEV_CLIENT_CONFIG__;
|
|
16
23
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
const defaultConfig = {
|
|
25
|
+
basePath: appWindow.location.pathname,
|
|
26
|
+
editors: [],
|
|
27
|
+
reloadStrategy: 'hmr',
|
|
28
|
+
socketUrl: `${location.protocol === 'https:' ? 'wss:' : 'ws:'}//${location.hostname}${location.port !== '' ? ':' + location.port : ''}/`,
|
|
29
|
+
};
|
|
23
30
|
|
|
24
|
-
|
|
25
|
-
</script>
|
|
26
|
-
</body>
|
|
31
|
+
initDevClient(appWindow, { ...defaultConfig, ...appWindow.devServerConfig, ...config });
|
|
32
|
+
</script>
|
|
33
|
+
</body>
|
|
27
34
|
</html>
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import "node:http";
|
|
2
|
-
import "node:https";
|
|
3
1
|
import { CompilerBuildResults, CompilerRequestResponse, CompilerWatcher, DevServer, DevServerConfig, DevServerConfig as DevServerConfig$1, Logger, StencilDevServerConfig } from "@stencil/core/compiler";
|
|
4
|
-
|
|
5
2
|
//#region src/server/types.d.ts
|
|
6
3
|
/**
|
|
7
4
|
* Internal dev server message protocol for communication between
|