elm-pages 3.0.4 → 3.0.6
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 +4 -1
- package/generator/src/cli.js +10 -2
- package/generator/src/parse-remote.js +2 -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: 4194905948, 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: 1594240894, 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
|
@@ -635,7 +635,10 @@ export async function compileCliApp(options) {
|
|
|
635
635
|
// TODO should be --optimize, but there seems to be an issue with the html to JSON with --optimize
|
|
636
636
|
options.debug ? "debug" : "optimize",
|
|
637
637
|
options,
|
|
638
|
-
path.join(
|
|
638
|
+
path.join(
|
|
639
|
+
process.cwd(),
|
|
640
|
+
`elm-stuff/elm-pages/.elm-pages/${options.mainModule || "Main"}.elm`
|
|
641
|
+
),
|
|
639
642
|
path.join(process.cwd(), "elm-stuff/elm-pages/elm.js"),
|
|
640
643
|
path.join(process.cwd(), "elm-stuff/elm-pages")
|
|
641
644
|
);
|
package/generator/src/cli.js
CHANGED
|
@@ -146,7 +146,11 @@ async function main() {
|
|
|
146
146
|
// TODO have option for compiling with --debug or not (maybe allow running with elm-optimize-level-2 as well?)
|
|
147
147
|
|
|
148
148
|
let executableName = await lamderaOrElmFallback();
|
|
149
|
-
await build.compileCliApp({
|
|
149
|
+
await build.compileCliApp({
|
|
150
|
+
debug: "debug",
|
|
151
|
+
executableName,
|
|
152
|
+
mainModule: "ScriptMain",
|
|
153
|
+
});
|
|
150
154
|
fs.renameSync(
|
|
151
155
|
`${projectDirectory}/elm-stuff/elm-pages/elm.js`,
|
|
152
156
|
`${projectDirectory}/elm-stuff/elm-pages/elm.cjs`
|
|
@@ -195,7 +199,11 @@ async function main() {
|
|
|
195
199
|
// TODO have option for compiling with --debug or not (maybe allow running with elm-optimize-level-2 as well?)
|
|
196
200
|
|
|
197
201
|
let executableName = await lamderaOrElmFallback();
|
|
198
|
-
await build.compileCliApp({
|
|
202
|
+
await build.compileCliApp({
|
|
203
|
+
debug: options.debug,
|
|
204
|
+
executableName,
|
|
205
|
+
mainModule: "ScriptMain",
|
|
206
|
+
});
|
|
199
207
|
// await runTerser(`${projectDirectory}/elm-stuff/elm-pages/elm.js`);
|
|
200
208
|
fs.renameSync(
|
|
201
209
|
`${projectDirectory}/elm-stuff/elm-pages/elm.js`,
|
|
@@ -23,6 +23,8 @@ export function parse(input) {
|
|
|
23
23
|
/https?:\/\/gist\.github.com\/(?<owner>[^\/]+)\/(?<repo>[^\/]+)(\/?#(?<filePath>.*))?$/,
|
|
24
24
|
/https?:\/\/gist\.github.com\/(?<repo>[^\/]+)(\/?#(?<filePath>.*))?$/,
|
|
25
25
|
/https?:\/\/gist\.githubusercontent\.com\/(?<owner>[^\/]+)\/(?<repo>[^\/]+)\/raw\/(?<sha>[^/]+)\/(?<filePath>.*)?$/,
|
|
26
|
+
/gist:(?<owner>[^\/]+)\/(?<repo>[^\/]+)(:(?<filePath>.*))?$/,
|
|
27
|
+
/gist:(?<repo>[^\/]+)(:(?<filePath>.*))?$/,
|
|
26
28
|
];
|
|
27
29
|
const gistMatch = gistPatterns
|
|
28
30
|
.map((pattern) => input.match(pattern))
|
package/package.json
CHANGED