elm-pages 3.0.5 → 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.
@@ -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: 1561605696, fuzzRuns: 100, filter: null };
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
@@ -82,7 +82,7 @@ const verbosity = 0;
82
82
  // Create a long lived reporter worker
83
83
  const { Elm } = require("./Reporter.elm.js");
84
84
  const flags = {
85
- initialSeed: 1561605696,
85
+ initialSeed: 4194905948,
86
86
  fuzzRuns: 100,
87
87
  mode: "consoleNoColor",
88
88
  verbosity: verbosity,
@@ -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: 3204223018, fuzzRuns: 100, filter: null };
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
@@ -82,7 +82,7 @@ const verbosity = 0;
82
82
  // Create a long lived reporter worker
83
83
  const { Elm } = require("./Reporter.elm.js");
84
84
  const flags = {
85
- initialSeed: 3204223018,
85
+ initialSeed: 1594240894,
86
86
  fuzzRuns: 100,
87
87
  mode: "consoleNoColor",
88
88
  verbosity: verbosity,
@@ -199,7 +199,11 @@ async function main() {
199
199
  // TODO have option for compiling with --debug or not (maybe allow running with elm-optimize-level-2 as well?)
200
200
 
201
201
  let executableName = await lamderaOrElmFallback();
202
- await build.compileCliApp({ debug: options.debug, executableName });
202
+ await build.compileCliApp({
203
+ debug: options.debug,
204
+ executableName,
205
+ mainModule: "ScriptMain",
206
+ });
203
207
  // await runTerser(`${projectDirectory}/elm-stuff/elm-pages/elm.js`);
204
208
  fs.renameSync(
205
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "elm-pages",
3
3
  "type": "module",
4
- "version": "3.0.5",
4
+ "version": "3.0.6",
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.",