elm-pages 3.0.0-beta.4 → 3.0.0-beta.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.
Files changed (24) hide show
  1. package/codegen/elm-pages-codegen.js +261 -153
  2. package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/Pages-Review-DeadCodeEliminateData.elmi +0 -0
  3. package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/d.dat +0 -0
  4. package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/i.dat +0 -0
  5. package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/o.dat +0 -0
  6. package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/Reporter.elm.js +1 -1
  7. package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/Runner.elm.js +1 -1
  8. package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/node_runner.js +1 -1
  9. package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/node_supervisor.js +4 -4
  10. package/generator/review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/Pages-Internal-RoutePattern.elmi +0 -0
  11. package/generator/review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/Pages-Review-NoContractViolations.elmi +0 -0
  12. package/generator/review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/d.dat +0 -0
  13. package/generator/review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/i.dat +0 -0
  14. package/generator/review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/o.dat +0 -0
  15. package/generator/review/elm-stuff/tests-0.19.1/js/Reporter.elm.js +1 -1
  16. package/generator/review/elm-stuff/tests-0.19.1/js/Runner.elm.js +1 -1
  17. package/generator/review/elm-stuff/tests-0.19.1/js/node_runner.js +1 -1
  18. package/generator/review/elm-stuff/tests-0.19.1/js/node_supervisor.js +4 -4
  19. package/generator/src/build.js +18 -15
  20. package/generator/src/dev-server.js +17 -7
  21. package/generator/src/vite-utils.js +78 -0
  22. package/package.json +2 -2
  23. package/src/Pages/Generate.elm +445 -94
  24. package/src/Pages/Internal/Platform.elm +31 -24
@@ -26323,6 +26323,16 @@ var $author$project$Gen$Pages$Transition$annotation_ = {
26323
26323
  'Transition',
26324
26324
  _List_Nil)
26325
26325
  };
26326
+ var $author$project$Gen$Platform$Sub$annotation_ = {
26327
+ sub: function (subArg0) {
26328
+ return A3(
26329
+ $author$project$Elm$Annotation$namedWith,
26330
+ _List_Nil,
26331
+ 'Sub',
26332
+ _List_fromArray(
26333
+ [subArg0]));
26334
+ }
26335
+ };
26326
26336
  var $author$project$Gen$Server$Response$moduleName_ = _List_fromArray(
26327
26337
  ['Server', 'Response']);
26328
26338
  var $author$project$Gen$Server$Response$annotation_ = {
@@ -36725,82 +36735,154 @@ var $author$project$GenerateMain$otherFile = F2(
36725
36735
  var fooFn = A6(
36726
36736
  $author$project$Elm$Declare$fn4,
36727
36737
  'fooFn',
36728
- _Utils_Tuple2('wrapModel', $elm$core$Maybe$Nothing),
36729
- _Utils_Tuple2('wrapMsg', $elm$core$Maybe$Nothing),
36738
+ _Utils_Tuple2(
36739
+ 'wrapModel',
36740
+ $elm$core$Maybe$Just(
36741
+ A2(
36742
+ $author$project$Elm$Annotation$function,
36743
+ _List_fromArray(
36744
+ [
36745
+ $author$project$Elm$Annotation$var('a')
36746
+ ]),
36747
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'PageModel')))),
36748
+ _Utils_Tuple2(
36749
+ 'wrapMsg',
36750
+ $elm$core$Maybe$Just(
36751
+ A2(
36752
+ $author$project$Elm$Annotation$function,
36753
+ _List_fromArray(
36754
+ [
36755
+ $author$project$Elm$Annotation$var('b')
36756
+ ]),
36757
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')))),
36730
36758
  _Utils_Tuple2(
36731
36759
  'model',
36732
36760
  $elm$core$Maybe$Just(
36733
36761
  A2($author$project$Elm$Annotation$named, _List_Nil, 'Model'))),
36734
- _Utils_Tuple2('triple', $elm$core$Maybe$Nothing),
36762
+ _Utils_Tuple2(
36763
+ 'triple',
36764
+ $elm$core$Maybe$Just(
36765
+ A3(
36766
+ $author$project$Elm$Annotation$triple,
36767
+ $author$project$Elm$Annotation$var('a'),
36768
+ A3(
36769
+ $author$project$Elm$Annotation$namedWith,
36770
+ _List_fromArray(
36771
+ ['Effect']),
36772
+ 'Effect',
36773
+ _List_fromArray(
36774
+ [
36775
+ $author$project$Elm$Annotation$var('b')
36776
+ ])),
36777
+ $author$project$Elm$Annotation$maybe(
36778
+ A2(
36779
+ $author$project$Elm$Annotation$named,
36780
+ _List_fromArray(
36781
+ ['Shared']),
36782
+ 'Msg'))))),
36735
36783
  F4(
36736
36784
  function (wrapModel, wrapMsg, model, triple) {
36737
- return A3(
36738
- $author$project$Elm$Case$custom,
36739
- triple,
36740
- $author$project$Elm$Annotation$unit,
36741
- _List_fromArray(
36742
- [
36785
+ return A2(
36786
+ $author$project$Elm$withType,
36787
+ A3(
36788
+ $author$project$Elm$Annotation$triple,
36789
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'PageModel'),
36790
+ A3(
36791
+ $author$project$Elm$Annotation$namedWith,
36792
+ _List_fromArray(
36793
+ ['Effect']),
36794
+ 'Effect',
36795
+ _List_fromArray(
36796
+ [
36797
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')
36798
+ ])),
36799
+ A2(
36800
+ $author$project$Elm$Annotation$tuple,
36743
36801
  A2(
36744
- $author$project$Elm$Case$patternToBranch,
36745
- function (_v32) {
36746
- var a = _v32.a;
36747
- var b = _v32.b;
36748
- var c = _v32.c;
36749
- return A3(
36750
- $author$project$Elm$triple,
36751
- A2(
36752
- $author$project$Elm$apply,
36753
- wrapModel,
36754
- _List_fromArray(
36755
- [a])),
36756
- A2(
36757
- $author$project$Elm$apply,
36758
- $author$project$Elm$value(
36759
- {
36760
- annotation: $elm$core$Maybe$Nothing,
36761
- importFrom: _List_fromArray(
36762
- ['Effect']),
36763
- name: 'map'
36764
- }),
36802
+ $author$project$Elm$Annotation$named,
36803
+ _List_fromArray(
36804
+ ['Shared']),
36805
+ 'Model'),
36806
+ A3(
36807
+ $author$project$Elm$Annotation$namedWith,
36808
+ _List_fromArray(
36809
+ ['Effect']),
36810
+ 'Effect',
36811
+ _List_fromArray(
36812
+ [
36813
+ A2(
36814
+ $author$project$Elm$Annotation$named,
36765
36815
  _List_fromArray(
36766
- [wrapMsg, b])),
36767
- A2(
36768
- $author$project$Elm$Case$maybe,
36769
- c,
36770
- {
36771
- just: _Utils_Tuple2(
36772
- 'sharedMsg',
36773
- function (sharedMsg) {
36774
- return A2(
36775
- $author$project$Elm$apply,
36776
- A2(
36777
- $author$project$Elm$get,
36778
- 'update',
36779
- $author$project$Elm$value(
36780
- {
36781
- annotation: $elm$core$Maybe$Nothing,
36782
- importFrom: _List_fromArray(
36783
- ['Shared']),
36784
- name: 'template'
36785
- })),
36786
- _List_fromArray(
36787
- [
36788
- sharedMsg,
36789
- A2($author$project$Elm$get, 'global', model)
36790
- ]));
36816
+ ['Shared']),
36817
+ 'Msg')
36818
+ ])))),
36819
+ A3(
36820
+ $author$project$Elm$Case$custom,
36821
+ triple,
36822
+ $author$project$Elm$Annotation$unit,
36823
+ _List_fromArray(
36824
+ [
36825
+ A2(
36826
+ $author$project$Elm$Case$patternToBranch,
36827
+ function (_v32) {
36828
+ var a = _v32.a;
36829
+ var b = _v32.b;
36830
+ var c = _v32.c;
36831
+ return A3(
36832
+ $author$project$Elm$triple,
36833
+ A2(
36834
+ $author$project$Elm$apply,
36835
+ wrapModel,
36836
+ _List_fromArray(
36837
+ [a])),
36838
+ A2(
36839
+ $author$project$Elm$apply,
36840
+ $author$project$Elm$value(
36841
+ {
36842
+ annotation: $elm$core$Maybe$Nothing,
36843
+ importFrom: _List_fromArray(
36844
+ ['Effect']),
36845
+ name: 'map'
36791
36846
  }),
36792
- nothing: A2(
36793
- $author$project$Elm$tuple,
36794
- A2($author$project$Elm$get, 'global', model),
36795
- $author$project$GenerateMain$effectNone)
36796
- }));
36797
- },
36798
- A3(
36799
- $author$project$Elm$Pattern$triple,
36800
- $author$project$Elm$Pattern$var('a'),
36801
- $author$project$Elm$Pattern$var('b'),
36802
- $author$project$Elm$Pattern$var('c')))
36803
- ]));
36847
+ _List_fromArray(
36848
+ [wrapMsg, b])),
36849
+ A2(
36850
+ $author$project$Elm$Case$maybe,
36851
+ c,
36852
+ {
36853
+ just: _Utils_Tuple2(
36854
+ 'sharedMsg',
36855
+ function (sharedMsg) {
36856
+ return A2(
36857
+ $author$project$Elm$apply,
36858
+ A2(
36859
+ $author$project$Elm$get,
36860
+ 'update',
36861
+ $author$project$Elm$value(
36862
+ {
36863
+ annotation: $elm$core$Maybe$Nothing,
36864
+ importFrom: _List_fromArray(
36865
+ ['Shared']),
36866
+ name: 'template'
36867
+ })),
36868
+ _List_fromArray(
36869
+ [
36870
+ sharedMsg,
36871
+ A2($author$project$Elm$get, 'global', model)
36872
+ ]));
36873
+ }),
36874
+ nothing: A2(
36875
+ $author$project$Elm$tuple,
36876
+ A2($author$project$Elm$get, 'global', model),
36877
+ $author$project$GenerateMain$effectNone)
36878
+ }));
36879
+ },
36880
+ A3(
36881
+ $author$project$Elm$Pattern$triple,
36882
+ $author$project$Elm$Pattern$var('a'),
36883
+ $author$project$Elm$Pattern$var('b'),
36884
+ $author$project$Elm$Pattern$var('c')))
36885
+ ])));
36804
36886
  }));
36805
36887
  var update = A3(
36806
36888
  $author$project$Elm$Declare$function,
@@ -37917,99 +37999,125 @@ var $author$project$GenerateMain$otherFile = F2(
37917
37999
  F3(
37918
38000
  function (maybeRoute, path, model) {
37919
38001
  return A2(
37920
- $author$project$Elm$Case$maybe,
37921
- maybeRoute,
37922
- {
37923
- just: _Utils_Tuple2(
37924
- 'justRoute',
37925
- function (justRoute) {
37926
- return A2(
37927
- branchHelper,
37928
- justRoute,
37929
- F2(
37930
- function (route, maybeRouteParams) {
37931
- return A3(
37932
- $author$project$Elm$Case$custom,
37933
- A2($author$project$Elm$get, 'page', model),
37934
- $author$project$Elm$Annotation$unit,
37935
- _List_fromArray(
37936
- [
37937
- A2(
37938
- $author$project$Elm$Case$patternToBranch,
37939
- function (templateModel) {
37940
- return A2(
37941
- $author$project$Gen$Platform$Sub$call_.map,
37942
- A2($author$project$GenerateMain$routeVariantExpression, $author$project$GenerateMain$Msg, route),
37943
- A2(
37944
- $author$project$Elm$apply,
38002
+ $author$project$Elm$withType,
38003
+ $author$project$Gen$Platform$Sub$annotation_.sub(
38004
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')),
38005
+ A2(
38006
+ $author$project$Elm$Case$maybe,
38007
+ maybeRoute,
38008
+ {
38009
+ just: _Utils_Tuple2(
38010
+ 'justRoute',
38011
+ function (justRoute) {
38012
+ return A2(
38013
+ branchHelper,
38014
+ justRoute,
38015
+ F2(
38016
+ function (route, maybeRouteParams) {
38017
+ return A3(
38018
+ $author$project$Elm$Case$custom,
38019
+ A2($author$project$Elm$get, 'page', model),
38020
+ $author$project$Elm$Annotation$unit,
38021
+ _List_fromArray(
38022
+ [
38023
+ A2(
38024
+ $author$project$Elm$Case$patternToBranch,
38025
+ function (templateModel) {
38026
+ return A2(
38027
+ $author$project$Gen$Platform$Sub$call_.map,
38028
+ A2($author$project$GenerateMain$routeVariantExpression, $author$project$GenerateMain$Msg, route),
37945
38029
  A2(
37946
- $author$project$Elm$get,
37947
- 'subscriptions',
37948
- $author$project$Elm$value(
37949
- {
37950
- annotation: $elm$core$Maybe$Nothing,
37951
- importFrom: A2(
37952
- $elm$core$List$cons,
37953
- 'Route',
37954
- $author$project$Pages$Internal$RoutePattern$toModuleName(route)),
37955
- name: 'route'
37956
- })),
37957
- _List_fromArray(
37958
- [
37959
- $author$project$Elm$nothing,
37960
- A2(
37961
- $elm$core$Maybe$withDefault,
37962
- $author$project$Elm$record(_List_Nil),
37963
- maybeRouteParams),
37964
- path,
37965
- templateModel,
37966
- A2($author$project$Elm$get, 'global', model)
37967
- ])));
37968
- },
37969
- A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$Model, 'templateModel', route)),
37970
- $author$project$Elm$Case$otherwise(
37971
- function (_v6) {
37972
- return $author$project$Gen$Platform$Sub$none;
37973
- })
37974
- ]));
37975
- }));
37976
- }),
37977
- nothing: $author$project$Gen$Platform$Sub$none
37978
- });
38030
+ $author$project$Elm$apply,
38031
+ A2(
38032
+ $author$project$Elm$get,
38033
+ 'subscriptions',
38034
+ $author$project$Elm$value(
38035
+ {
38036
+ annotation: $elm$core$Maybe$Nothing,
38037
+ importFrom: A2(
38038
+ $elm$core$List$cons,
38039
+ 'Route',
38040
+ $author$project$Pages$Internal$RoutePattern$toModuleName(route)),
38041
+ name: 'route'
38042
+ })),
38043
+ _List_fromArray(
38044
+ [
38045
+ $author$project$Elm$nothing,
38046
+ A2(
38047
+ $elm$core$Maybe$withDefault,
38048
+ $author$project$Elm$record(_List_Nil),
38049
+ maybeRouteParams),
38050
+ path,
38051
+ templateModel,
38052
+ A2($author$project$Elm$get, 'global', model)
38053
+ ])));
38054
+ },
38055
+ A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$Model, 'templateModel', route)),
38056
+ $author$project$Elm$Case$otherwise(
38057
+ function (_v6) {
38058
+ return $author$project$Gen$Platform$Sub$none;
38059
+ })
38060
+ ]));
38061
+ }));
38062
+ }),
38063
+ nothing: $author$project$Gen$Platform$Sub$none
38064
+ }));
37979
38065
  }));
37980
38066
  var subscriptions = A5(
37981
38067
  $author$project$Elm$Declare$fn3,
37982
38068
  'subscriptions',
37983
- _Utils_Tuple2('route', $elm$core$Maybe$Nothing),
37984
- _Utils_Tuple2('path', $elm$core$Maybe$Nothing),
37985
- _Utils_Tuple2('model', $elm$core$Maybe$Nothing),
38069
+ _Utils_Tuple2(
38070
+ 'route',
38071
+ $elm$core$Maybe$Just(
38072
+ $author$project$Elm$Annotation$maybe(
38073
+ A2(
38074
+ $author$project$Elm$Annotation$named,
38075
+ _List_fromArray(
38076
+ ['Route']),
38077
+ 'Route')))),
38078
+ _Utils_Tuple2(
38079
+ 'path',
38080
+ $elm$core$Maybe$Just(
38081
+ A2(
38082
+ $author$project$Elm$Annotation$named,
38083
+ _List_fromArray(
38084
+ ['Path']),
38085
+ 'Path'))),
38086
+ _Utils_Tuple2(
38087
+ 'model',
38088
+ $elm$core$Maybe$Just(
38089
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'Model'))),
37986
38090
  F3(
37987
38091
  function (route, path, model) {
37988
- return $author$project$Gen$Platform$Sub$batch(
37989
- _List_fromArray(
37990
- [
37991
- A2(
37992
- $author$project$Gen$Platform$Sub$call_.map,
37993
- $author$project$Elm$val('MsgGlobal'),
37994
- A2(
37995
- $author$project$Elm$apply,
38092
+ return A2(
38093
+ $author$project$Elm$withType,
38094
+ $author$project$Gen$Platform$Sub$annotation_.sub(
38095
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')),
38096
+ $author$project$Gen$Platform$Sub$batch(
38097
+ _List_fromArray(
38098
+ [
37996
38099
  A2(
37997
- $author$project$Elm$get,
37998
- 'subscriptions',
37999
- $author$project$Elm$value(
38000
- {
38001
- annotation: $elm$core$Maybe$Nothing,
38002
- importFrom: _List_fromArray(
38003
- ['Shared']),
38004
- name: 'template'
38005
- })),
38006
- _List_fromArray(
38007
- [
38008
- path,
38009
- A2($author$project$Elm$get, 'global', model)
38010
- ]))),
38011
- A3(templateSubscriptions.call, route, path, model)
38012
- ]));
38100
+ $author$project$Gen$Platform$Sub$call_.map,
38101
+ $author$project$Elm$val('MsgGlobal'),
38102
+ A2(
38103
+ $author$project$Elm$apply,
38104
+ A2(
38105
+ $author$project$Elm$get,
38106
+ 'subscriptions',
38107
+ $author$project$Elm$value(
38108
+ {
38109
+ annotation: $elm$core$Maybe$Nothing,
38110
+ importFrom: _List_fromArray(
38111
+ ['Shared']),
38112
+ name: 'template'
38113
+ })),
38114
+ _List_fromArray(
38115
+ [
38116
+ path,
38117
+ A2($author$project$Elm$get, 'global', model)
38118
+ ]))),
38119
+ A3(templateSubscriptions.call, route, path, model)
38120
+ ])));
38013
38121
  }));
38014
38122
  var apiPatterns = A2(
38015
38123
  $author$project$Elm$Extra$topLevelValue,
@@ -38796,7 +38904,7 @@ _Platform_export({'Generate':{'init':$author$project$Generate$main(
38796
38904
  $elm$json$Json$Decode$field,
38797
38905
  'templates',
38798
38906
  $elm$json$Json$Decode$list(
38799
- $elm$json$Json$Decode$list($elm$json$Json$Decode$string)))))(0)}});var isBackend = false && typeof isLamdera !== 'undefined'
38907
+ $elm$json$Json$Decode$list($elm$json$Json$Decode$string)))))(0)}});var isBackend = false && typeof isLamdera !== 'undefined';
38800
38908
 
38801
38909
  function _Platform_initialize(flagDecoder, args, init, update, subscriptions, stepperBuilder)
38802
38910
  {
@@ -6692,7 +6692,7 @@ _Platform_export({'Reporter':{'init':$author$project$Reporter$main(
6692
6692
  'paths',
6693
6693
  $elm$json$Json$Decode$list($elm$json$Json$Decode$string)));
6694
6694
  },
6695
- A2($elm$json$Json$Decode$field, 'verbosity', $elm$json$Json$Decode$int)))(0)}});var isBackend = false && typeof isLamdera !== 'undefined'
6695
+ A2($elm$json$Json$Decode$field, 'verbosity', $elm$json$Json$Decode$int)))(0)}});var isBackend = false && typeof isLamdera !== 'undefined';
6696
6696
 
6697
6697
  function _Platform_initialize(flagDecoder, args, init, update, subscriptions, stepperBuilder)
6698
6698
  {
@@ -25732,7 +25732,7 @@ _Platform_export({'Runner':{'init':$author$project$Runner$main(
25732
25732
  },
25733
25733
  A2($elm$json$Json$Decode$field, 'fuzzRuns', $elm$json$Json$Decode$int));
25734
25734
  },
25735
- A2($elm$json$Json$Decode$field, 'initialSeed', $elm$json$Json$Decode$int)))(0)}});var isBackend = false && typeof isLamdera !== 'undefined'
25735
+ A2($elm$json$Json$Decode$field, 'initialSeed', $elm$json$Json$Decode$int)))(0)}});var isBackend = false && typeof isLamdera !== 'undefined';
25736
25736
 
25737
25737
  function _Platform_initialize(flagDecoder, args, init, update, subscriptions, stepperBuilder)
25738
25738
  {
@@ -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: 4257486087, fuzzRuns: 100, filter: null };
78
+ const flags = { initialSeed: 1035103192, 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
@@ -75,19 +75,19 @@ let testsCount, todoTests;
75
75
  let reporter;
76
76
  let runners = [];
77
77
  let working = false;
78
- let workersCount = 2;
78
+ let workersCount = 10;
79
79
  let startWorkCallback = function(){};
80
80
  const verbosity = 0;
81
81
 
82
82
  // Create a long lived reporter worker
83
83
  const { Elm } = require("./Reporter.elm.js");
84
84
  const flags = {
85
- initialSeed: 4257486087,
85
+ initialSeed: 1035103192,
86
86
  fuzzRuns: 100,
87
- mode: "consoleNoColor",
87
+ mode: "consoleColor",
88
88
  verbosity: verbosity,
89
89
  globs: [],
90
- paths: ["/home/runner/work/elm-pages-v3-beta/elm-pages-v3-beta/generator/dead-code-review/tests/Pages/Review/DeadCodeEliminateDataTest.elm"],
90
+ paths: ["/Users/dillonkearns/src/github.com/dillonkearns/elm-pages-v3-beta/generator/dead-code-review/tests/Pages/Review/DeadCodeEliminateDataTest.elm"],
91
91
  };
92
92
  reporter = Elm.Reporter.init({ flags: flags });
93
93
 
@@ -6692,7 +6692,7 @@ _Platform_export({'Reporter':{'init':$author$project$Reporter$main(
6692
6692
  'paths',
6693
6693
  $elm$json$Json$Decode$list($elm$json$Json$Decode$string)));
6694
6694
  },
6695
- A2($elm$json$Json$Decode$field, 'verbosity', $elm$json$Json$Decode$int)))(0)}});var isBackend = false && typeof isLamdera !== 'undefined'
6695
+ A2($elm$json$Json$Decode$field, 'verbosity', $elm$json$Json$Decode$int)))(0)}});var isBackend = false && typeof isLamdera !== 'undefined';
6696
6696
 
6697
6697
  function _Platform_initialize(flagDecoder, args, init, update, subscriptions, stepperBuilder)
6698
6698
  {
@@ -27514,7 +27514,7 @@ _Platform_export({'Runner':{'init':$author$project$Runner$main(
27514
27514
  },
27515
27515
  A2($elm$json$Json$Decode$field, 'fuzzRuns', $elm$json$Json$Decode$int));
27516
27516
  },
27517
- A2($elm$json$Json$Decode$field, 'initialSeed', $elm$json$Json$Decode$int)))(0)}});var isBackend = false && typeof isLamdera !== 'undefined'
27517
+ A2($elm$json$Json$Decode$field, 'initialSeed', $elm$json$Json$Decode$int)))(0)}});var isBackend = false && typeof isLamdera !== 'undefined';
27518
27518
 
27519
27519
  function _Platform_initialize(flagDecoder, args, init, update, subscriptions, stepperBuilder)
27520
27520
  {
@@ -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: 1646606691, fuzzRuns: 100, filter: null };
78
+ const flags = { initialSeed: 1889275192, 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
@@ -75,19 +75,19 @@ let testsCount, todoTests;
75
75
  let reporter;
76
76
  let runners = [];
77
77
  let working = false;
78
- let workersCount = 2;
78
+ let workersCount = 10;
79
79
  let startWorkCallback = function(){};
80
80
  const verbosity = 0;
81
81
 
82
82
  // Create a long lived reporter worker
83
83
  const { Elm } = require("./Reporter.elm.js");
84
84
  const flags = {
85
- initialSeed: 1646606691,
85
+ initialSeed: 1889275192,
86
86
  fuzzRuns: 100,
87
- mode: "consoleNoColor",
87
+ mode: "consoleColor",
88
88
  verbosity: verbosity,
89
89
  globs: [],
90
- paths: ["/home/runner/work/elm-pages-v3-beta/elm-pages-v3-beta/generator/review/tests/Pages/Review/NoContractViolationsTest.elm"],
90
+ paths: ["/Users/dillonkearns/src/github.com/dillonkearns/elm-pages-v3-beta/generator/review/tests/Pages/Review/NoContractViolationsTest.elm"],
91
91
  };
92
92
  reporter = Elm.Reporter.init({ flags: flags });
93
93
 
@@ -16,6 +16,7 @@ const { build } = require("vite");
16
16
  const preRenderHtml = require("./pre-render-html.js");
17
17
  const esbuild = require("esbuild");
18
18
  const { createHash } = require("crypto");
19
+ const { merge_vite_configs } = require("./vite-utils.js");
19
20
 
20
21
  let pool = [];
21
22
  let pagesReady;
@@ -92,23 +93,25 @@ async function run(options) {
92
93
  );
93
94
  return {};
94
95
  });
95
- const viteConfig = config.vite || {};
96
-
97
- const buildComplete = build({
98
- configFile: false,
99
- root: process.cwd(),
100
- base: options.base,
101
- ssr: false,
102
-
103
- build: {
104
- manifest: true,
105
- outDir: "dist",
106
- rollupOptions: {
107
- input: "elm-stuff/elm-pages/index.html",
96
+ const viteConfig = merge_vite_configs(
97
+ {
98
+ configFile: false,
99
+ root: process.cwd(),
100
+ base: options.base,
101
+ ssr: false,
102
+
103
+ build: {
104
+ manifest: true,
105
+ outDir: "dist",
106
+ rollupOptions: {
107
+ input: "elm-stuff/elm-pages/index.html",
108
+ },
108
109
  },
109
110
  },
110
- ...viteConfig,
111
- });
111
+ config.vite || {}
112
+ );
113
+
114
+ const buildComplete = build(viteConfig);
112
115
  const compileClientDone = compileElm(options);
113
116
  await buildComplete;
114
117
  await compileClientDone;