elm-pages 3.0.0-beta.36 → 3.0.0-beta.38
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/generator/dead-code-review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/d.dat +0 -0
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/node_runner.js +1 -1
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/node_supervisor.js +1 -1
- package/generator/review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/d.dat +0 -0
- package/generator/review/elm-stuff/tests-0.19.1/js/node_runner.js +1 -1
- package/generator/review/elm-stuff/tests-0.19.1/js/node_supervisor.js +1 -1
- package/generator/src/build.js +14 -5
- package/generator/src/compatibility-key.js +1 -1
- package/generator/src/dev-server.js +13 -0
- package/package.json +1 -1
|
Binary file
|
|
@@ -75,7 +75,7 @@ console.elmlog = (str) => logs.push(str + "\n");
|
|
|
75
75
|
const { Elm } = require("./Runner.elm.js");
|
|
76
76
|
|
|
77
77
|
// Start the Elm app
|
|
78
|
-
const flags = { initialSeed:
|
|
78
|
+
const flags = { initialSeed: 3708163480, fuzzRuns: 100, filter: null };
|
|
79
79
|
const app = Elm.Runner.init({ flags: flags });
|
|
80
80
|
|
|
81
81
|
// Record the timing at which we received the last "runTest" message
|
|
Binary file
|
|
@@ -75,7 +75,7 @@ console.elmlog = (str) => logs.push(str + "\n");
|
|
|
75
75
|
const { Elm } = require("./Runner.elm.js");
|
|
76
76
|
|
|
77
77
|
// Start the Elm app
|
|
78
|
-
const flags = { initialSeed:
|
|
78
|
+
const flags = { initialSeed: 1574590184, fuzzRuns: 100, filter: null };
|
|
79
79
|
const app = Elm.Runner.init({ flags: flags });
|
|
80
80
|
|
|
81
81
|
// Record the timing at which we received the last "runTest" message
|
package/generator/src/build.js
CHANGED
|
@@ -67,6 +67,14 @@ async function ensureRequiredExecutables() {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
export async function run(options) {
|
|
70
|
+
console.warn = function (...messages) {
|
|
71
|
+
// This is a temporary hack to avoid this warning. elm-pages manages compiling the Elm code without Vite's involvement, so it is external to Vite.
|
|
72
|
+
// There is a pending issue to allow having external scripts in Vite, once this issue is fixed we can remove this hack:
|
|
73
|
+
// https://github.com/vitejs/vite/issues/3533
|
|
74
|
+
if (!messages[0]?.startsWith(`<script src="/elm.js">`)) {
|
|
75
|
+
console.info(...messages);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
70
78
|
try {
|
|
71
79
|
await ensureRequiredDirs();
|
|
72
80
|
await ensureRequiredExecutables();
|
|
@@ -96,6 +104,9 @@ export async function run(options) {
|
|
|
96
104
|
input: "elm-stuff/elm-pages/index.html",
|
|
97
105
|
},
|
|
98
106
|
},
|
|
107
|
+
optimizeDeps: {
|
|
108
|
+
include: [],
|
|
109
|
+
},
|
|
99
110
|
},
|
|
100
111
|
config.vite || {}
|
|
101
112
|
);
|
|
@@ -111,11 +122,9 @@ export async function run(options) {
|
|
|
111
122
|
withoutExtension
|
|
112
123
|
);
|
|
113
124
|
const assetManifestPath = path.join(process.cwd(), "dist/manifest.json");
|
|
114
|
-
const manifest = (
|
|
115
|
-
await
|
|
116
|
-
|
|
117
|
-
})
|
|
118
|
-
).default;
|
|
125
|
+
const manifest = JSON.parse(
|
|
126
|
+
await fsPromises.readFile(assetManifestPath, { encoding: "utf-8" })
|
|
127
|
+
);
|
|
119
128
|
const indexTemplate = await fsPromises.readFile(
|
|
120
129
|
"dist/elm-stuff/elm-pages/index.html",
|
|
121
130
|
"utf-8"
|
|
@@ -36,6 +36,12 @@ const __dirname = path.dirname(__filename);
|
|
|
36
36
|
* @param {{ port: string; base: string; https: boolean; debug: boolean; }} options
|
|
37
37
|
*/
|
|
38
38
|
export async function start(options) {
|
|
39
|
+
console.error = function (...messages) {
|
|
40
|
+
if (!messages[0]?.startsWith("Failed to load url")) {
|
|
41
|
+
console.info(...messages);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
39
45
|
let threadReadyQueue = [];
|
|
40
46
|
let pool = [];
|
|
41
47
|
|
|
@@ -173,6 +179,13 @@ export async function start(options) {
|
|
|
173
179
|
configFile: false,
|
|
174
180
|
root: process.cwd(),
|
|
175
181
|
base: options.base,
|
|
182
|
+
/*
|
|
183
|
+
Using explicit optimizeDeps.include prevents the following Vite warning message:
|
|
184
|
+
(!) Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling.
|
|
185
|
+
*/
|
|
186
|
+
optimizeDeps: {
|
|
187
|
+
include: [],
|
|
188
|
+
},
|
|
176
189
|
},
|
|
177
190
|
|
|
178
191
|
config.vite
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elm-pages",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-beta.
|
|
4
|
+
"version": "3.0.0-beta.38",
|
|
5
5
|
"homepage": "https://elm-pages.com",
|
|
6
6
|
"moduleResolution": "node",
|
|
7
7
|
"description": "Type-safe static sites, written in pure elm with your own custom elm-markup syntax.",
|