@jsenv/core 27.0.0-alpha.44 → 27.0.0-alpha.47
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/dist/html_supervisor_installer.js +130 -39
- package/dist/html_supervisor_installer.js.map +32 -17
- package/dist/html_supervisor_setup.js +52 -49
- package/dist/html_supervisor_setup.js.map +11 -11
- package/package.json +4 -4
- package/src/build/start_build_server.js +87 -37
- package/src/dev/start_dev_server.js +95 -21
- package/src/execute/execute.js +1 -2
- package/src/omega/kitchen.js +33 -2
- package/src/omega/omega_server.js +2 -3
- package/src/omega/server/file_service.js +15 -1
- package/src/omega/url_graph/url_info_transformations.js +3 -1
- package/src/omega/url_graph.js +58 -6
- package/src/plugins/autoreload/dev_sse/jsenv_plugin_dev_sse_server.js +27 -56
- package/src/plugins/autoreload/jsenv_plugin_autoreload.js +4 -4
- package/src/plugins/autoreload/jsenv_plugin_hmr.js +2 -2
- package/src/plugins/html_supervisor/client/html_supervisor_installer.js +132 -59
- package/src/plugins/html_supervisor/client/html_supervisor_setup.js +51 -49
- package/src/plugins/html_supervisor/jsenv_plugin_html_supervisor.js +30 -2
- package/src/plugins/plugins.js +6 -6
- package/src/test/execute_plan.js +2 -7
package/src/plugins/plugins.js
CHANGED
|
@@ -31,14 +31,13 @@ export const getCorePlugins = ({
|
|
|
31
31
|
minification = false,
|
|
32
32
|
bundling = false,
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
clientAutoreload = false,
|
|
35
|
+
clientFileChangeCallbackList,
|
|
36
|
+
clientFilesPruneCallbackList,
|
|
35
37
|
} = {}) => {
|
|
36
38
|
if (htmlSupervisor === true) {
|
|
37
39
|
htmlSupervisor = {}
|
|
38
40
|
}
|
|
39
|
-
if (autoreload === true) {
|
|
40
|
-
autoreload = {}
|
|
41
|
-
}
|
|
42
41
|
if (nodeEsmResolution === true) {
|
|
43
42
|
nodeEsmResolution = {}
|
|
44
43
|
}
|
|
@@ -75,13 +74,14 @@ export const getCorePlugins = ({
|
|
|
75
74
|
jsenvPluginMinification(minification),
|
|
76
75
|
|
|
77
76
|
jsenvPluginImportMetaHot(),
|
|
78
|
-
...(
|
|
77
|
+
...(clientAutoreload
|
|
79
78
|
? [
|
|
80
79
|
jsenvPluginAutoreload({
|
|
81
80
|
rootDirectoryUrl,
|
|
82
81
|
urlGraph,
|
|
83
82
|
scenario,
|
|
84
|
-
|
|
83
|
+
clientFileChangeCallbackList,
|
|
84
|
+
clientFilesPruneCallbackList,
|
|
85
85
|
}),
|
|
86
86
|
]
|
|
87
87
|
: []),
|
package/src/test/execute_plan.js
CHANGED
|
@@ -11,11 +11,7 @@ import {
|
|
|
11
11
|
urlToMeta,
|
|
12
12
|
writeFileSync,
|
|
13
13
|
} from "@jsenv/filesystem"
|
|
14
|
-
import {
|
|
15
|
-
createLogger,
|
|
16
|
-
createDetailedMessage,
|
|
17
|
-
loggerToLevels,
|
|
18
|
-
} from "@jsenv/logger"
|
|
14
|
+
import { createDetailedMessage, loggerToLevels } from "@jsenv/logger"
|
|
19
15
|
import { createLog, startSpinner } from "@jsenv/log"
|
|
20
16
|
import { Abort, raceProcessTeardownEvents } from "@jsenv/abort"
|
|
21
17
|
|
|
@@ -173,10 +169,9 @@ export const executePlan = async (
|
|
|
173
169
|
}),
|
|
174
170
|
],
|
|
175
171
|
})
|
|
176
|
-
const serverLogger = createLogger({ logLevel: "warn" })
|
|
177
172
|
const server = await startOmegaServer({
|
|
178
173
|
signal: multipleExecutionsOperation.signal,
|
|
179
|
-
|
|
174
|
+
logLevel: "warn",
|
|
180
175
|
rootDirectoryUrl,
|
|
181
176
|
urlGraph,
|
|
182
177
|
kitchen,
|