elm-pages 3.0.0-beta.7 → 3.0.0-beta.9
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/README.md +10 -1
- package/codegen/elm-pages-codegen.js +121 -102
- 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/elm-stuff/0.19.1/o.dat +0 -0
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm.json +1 -1
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/Reporter.elm.js +1 -1
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/Runner.elm.js +1 -1
- 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 +4 -4
- 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/elm-stuff/0.19.1/o.dat +0 -0
- package/generator/review/elm-stuff/tests-0.19.1/elm.json +1 -1
- package/generator/review/elm-stuff/tests-0.19.1/js/Reporter.elm.js +1 -1
- package/generator/review/elm-stuff/tests-0.19.1/js/Runner.elm.js +1 -1
- 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 +4 -4
- package/generator/src/build.js +53 -13
- package/generator/src/config.js +12 -10
- package/generator/src/dev-server.js +15 -6
- package/generator/src/pre-render-html.js +4 -6
- package/generator/src/render.js +2 -0
- package/generator/src/seo-renderer.js +11 -4
- package/generator/template/app/Api.elm +1 -1
- package/generator/template/app/Site.elm +6 -1
- package/package.json +1 -1
- package/src/ApiRoute.elm +0 -3
- package/src/DataSource.elm +11 -3
- package/src/Head.elm +126 -0
- package/src/HtmlPrinter.elm +7 -3
- package/src/Pages/Generate.elm +101 -10
- package/src/Pages/Internal/Platform/Cli.elm +52 -8
- package/src/Pages/Internal/Platform/Cli.elm.bak +1276 -0
- package/src/Pages/Internal/Platform/CompatibilityKey.elm +6 -0
- package/src/Pages/ProgramConfig.elm +5 -2
package/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# `elm-pages` [](https://app.netlify.com/sites/elm-pages/deploys) [](https://github.com/dillonkearns/elm-pages/actions?query=branch%3Amaster) [](https://npmjs.com/package/elm-pages) [](https://package.elm-lang.org/packages/dillonkearns/elm-pages/latest/)
|
|
2
2
|
|
|
3
3
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
4
|
+
|
|
4
5
|
[](#contributors-)
|
|
6
|
+
|
|
5
7
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
6
8
|
|
|
7
9
|
[](https://app.netlify.com/start/deploy?repository=https://github.com/dillonkearns/elm-pages-starter)
|
|
@@ -68,13 +70,19 @@ Try out `elm-pages`, open up Lighthouse, and
|
|
|
68
70
|
see for yourself! Or check out https://elm-pages.com
|
|
69
71
|
(find the source code in the [`examples/docs/`](https://github.com/dillonkearns/elm-pages/tree/master/examples/docs) folder).
|
|
70
72
|
|
|
71
|
-
|
|
72
73
|
## What's next?
|
|
73
74
|
|
|
74
75
|
Take a look at the current projects to see the current priorities!
|
|
75
76
|
|
|
76
77
|
https://github.com/dillonkearns/elm-pages/projects
|
|
77
78
|
|
|
79
|
+
## Compatibility Key
|
|
80
|
+
|
|
81
|
+
You will see an error if the NPM and Elm package do not have a matching Compatibility Key. Usually it's best to upgrade to the latest version of both the Elm and NPM
|
|
82
|
+
packages when you upgrade. However, in case you want to install versions that are behind the latest, the Compatibility Key is included here for reference.
|
|
83
|
+
|
|
84
|
+
Current Compatibility Key: 1.
|
|
85
|
+
|
|
78
86
|
## Contributors ✨
|
|
79
87
|
|
|
80
88
|
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
@@ -94,6 +102,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
94
102
|
|
|
95
103
|
<!-- markdownlint-enable -->
|
|
96
104
|
<!-- prettier-ignore-end -->
|
|
105
|
+
|
|
97
106
|
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
98
107
|
|
|
99
108
|
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
|
|
@@ -35471,9 +35471,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35471
35471
|
$author$project$Elm$list(
|
|
35472
35472
|
A2(
|
|
35473
35473
|
$elm$core$List$map,
|
|
35474
|
-
function (
|
|
35475
|
-
var route =
|
|
35476
|
-
var params =
|
|
35474
|
+
function (_v63) {
|
|
35475
|
+
var route = _v63.a;
|
|
35476
|
+
var params = _v63.b;
|
|
35477
35477
|
var pattern = '/' + A2(
|
|
35478
35478
|
$elm$core$String$join,
|
|
35479
35479
|
'/',
|
|
@@ -35523,9 +35523,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35523
35523
|
$elm$core$List$concatMap,
|
|
35524
35524
|
function (route) {
|
|
35525
35525
|
var params = $author$project$Pages$Internal$RoutePattern$toVariantName(route).params;
|
|
35526
|
-
var
|
|
35527
|
-
if (
|
|
35528
|
-
var repeated =
|
|
35526
|
+
var _v62 = $author$project$Pages$Internal$RoutePattern$repeatWithoutOptionalEnding(params);
|
|
35527
|
+
if (_v62.$ === 'Just') {
|
|
35528
|
+
var repeated = _v62.a;
|
|
35529
35529
|
return _List_fromArray(
|
|
35530
35530
|
[
|
|
35531
35531
|
_Utils_Tuple2(route, repeated),
|
|
@@ -35624,9 +35624,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35624
35624
|
[
|
|
35625
35625
|
A2(
|
|
35626
35626
|
$author$project$Elm$Case$patternToBranch,
|
|
35627
|
-
function (
|
|
35628
|
-
var first =
|
|
35629
|
-
var rest =
|
|
35627
|
+
function (_v60) {
|
|
35628
|
+
var first = _v60.a;
|
|
35629
|
+
var rest = _v60.b;
|
|
35630
35630
|
return $author$project$GenerateMain$append(
|
|
35631
35631
|
_List_fromArray(
|
|
35632
35632
|
[
|
|
@@ -35743,20 +35743,20 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35743
35743
|
function (args) {
|
|
35744
35744
|
if ((((((((args.b && args.b.b) && args.b.b.b) && args.b.b.b.b) && args.b.b.b.b.b) && args.b.b.b.b.b.b) && args.b.b.b.b.b.b.b) && args.b.b.b.b.b.b.b.b) && (!args.b.b.b.b.b.b.b.b.b)) {
|
|
35745
35745
|
var pageFormState = args.a;
|
|
35746
|
-
var
|
|
35747
|
-
var fetchers =
|
|
35748
|
-
var _v41 = _v40.b;
|
|
35749
|
-
var transition = _v41.a;
|
|
35750
|
-
var _v42 = _v41.b;
|
|
35751
|
-
var page = _v42.a;
|
|
35752
|
-
var _v43 = _v42.b;
|
|
35753
|
-
var maybePageUrl = _v43.a;
|
|
35754
|
-
var _v44 = _v43.b;
|
|
35755
|
-
var globalData = _v44.a;
|
|
35746
|
+
var _v44 = args.b;
|
|
35747
|
+
var fetchers = _v44.a;
|
|
35756
35748
|
var _v45 = _v44.b;
|
|
35757
|
-
var
|
|
35749
|
+
var transition = _v45.a;
|
|
35758
35750
|
var _v46 = _v45.b;
|
|
35759
|
-
var
|
|
35751
|
+
var page = _v46.a;
|
|
35752
|
+
var _v47 = _v46.b;
|
|
35753
|
+
var maybePageUrl = _v47.a;
|
|
35754
|
+
var _v48 = _v47.b;
|
|
35755
|
+
var globalData = _v48.a;
|
|
35756
|
+
var _v49 = _v48.b;
|
|
35757
|
+
var pageData = _v49.a;
|
|
35758
|
+
var _v50 = _v49.b;
|
|
35759
|
+
var actionData = _v50.a;
|
|
35760
35760
|
return A2(
|
|
35761
35761
|
$author$project$Elm$withType,
|
|
35762
35762
|
$author$project$Elm$Annotation$record(
|
|
@@ -35797,8 +35797,8 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35797
35797
|
[
|
|
35798
35798
|
A2(
|
|
35799
35799
|
$author$project$Elm$Case$patternToBranch,
|
|
35800
|
-
function (
|
|
35801
|
-
var data =
|
|
35800
|
+
function (_v51) {
|
|
35801
|
+
var data = _v51.b;
|
|
35802
35802
|
return $author$project$Elm$record(
|
|
35803
35803
|
_List_fromArray(
|
|
35804
35804
|
[
|
|
@@ -35887,7 +35887,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35887
35887
|
$author$project$Elm$Pattern$var('subModel'))),
|
|
35888
35888
|
A2(
|
|
35889
35889
|
$author$project$Elm$Case$patternToBranch,
|
|
35890
|
-
function (
|
|
35890
|
+
function (_v52) {
|
|
35891
35891
|
return modelMismatchView.value;
|
|
35892
35892
|
},
|
|
35893
35893
|
$author$project$Elm$Pattern$ignore)
|
|
@@ -35912,9 +35912,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35912
35912
|
function (route) {
|
|
35913
35913
|
return A2(
|
|
35914
35914
|
$author$project$Elm$Case$patternToBranch,
|
|
35915
|
-
function (
|
|
35916
|
-
var maybeRouteParams =
|
|
35917
|
-
var data =
|
|
35915
|
+
function (_v53) {
|
|
35916
|
+
var maybeRouteParams = _v53.a;
|
|
35917
|
+
var data = _v53.b;
|
|
35918
35918
|
return $author$project$Elm$Let$toExpression(
|
|
35919
35919
|
A4(
|
|
35920
35920
|
$author$project$Elm$Let$fn,
|
|
@@ -35935,7 +35935,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35935
35935
|
A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$ActionData, 'justActionData', route)),
|
|
35936
35936
|
A2(
|
|
35937
35937
|
$author$project$Elm$Case$patternToBranch,
|
|
35938
|
-
function (
|
|
35938
|
+
function (_v57) {
|
|
35939
35939
|
return $author$project$Elm$nothing;
|
|
35940
35940
|
},
|
|
35941
35941
|
$author$project$Elm$Pattern$ignore)
|
|
@@ -36043,7 +36043,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36043
36043
|
A2(
|
|
36044
36044
|
$author$project$Gen$Dict$map,
|
|
36045
36045
|
F2(
|
|
36046
|
-
function (
|
|
36046
|
+
function (_v54, fetcherState) {
|
|
36047
36047
|
return A2(
|
|
36048
36048
|
$author$project$Gen$Pages$Transition$map,
|
|
36049
36049
|
function (ad) {
|
|
@@ -36061,7 +36061,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36061
36061
|
A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$Model, 'subModel', route)),
|
|
36062
36062
|
A2(
|
|
36063
36063
|
$author$project$Elm$Case$patternToBranch,
|
|
36064
|
-
function (
|
|
36064
|
+
function (_v55) {
|
|
36065
36065
|
return modelMismatchView.value;
|
|
36066
36066
|
},
|
|
36067
36067
|
$author$project$Elm$Pattern$ignore)
|
|
@@ -36125,7 +36125,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36125
36125
|
_List_fromArray(
|
|
36126
36126
|
[
|
|
36127
36127
|
$author$project$Elm$Case$otherwise(
|
|
36128
|
-
function (
|
|
36128
|
+
function (_v58) {
|
|
36129
36129
|
return $author$project$Elm$record(
|
|
36130
36130
|
_List_fromArray(
|
|
36131
36131
|
[
|
|
@@ -36134,7 +36134,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36134
36134
|
A2(
|
|
36135
36135
|
$author$project$Elm$fn,
|
|
36136
36136
|
_Utils_Tuple2('_', $elm$core$Maybe$Nothing),
|
|
36137
|
-
function (
|
|
36137
|
+
function (_v59) {
|
|
36138
36138
|
return $author$project$Elm$record(
|
|
36139
36139
|
_List_fromArray(
|
|
36140
36140
|
[
|
|
@@ -36274,7 +36274,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36274
36274
|
return errorPage;
|
|
36275
36275
|
}),
|
|
36276
36276
|
$author$project$Elm$Case$otherwise(
|
|
36277
|
-
function (
|
|
36277
|
+
function (_v42) {
|
|
36278
36278
|
return $author$project$Elm$value(
|
|
36279
36279
|
{
|
|
36280
36280
|
annotation: $elm$core$Maybe$Nothing,
|
|
@@ -36419,9 +36419,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36419
36419
|
},
|
|
36420
36420
|
currentGlobalModel)),
|
|
36421
36421
|
$author$project$Elm$Let$letIn(
|
|
36422
|
-
function (
|
|
36423
|
-
var sharedModel =
|
|
36424
|
-
var globalCmd =
|
|
36422
|
+
function (_v37) {
|
|
36423
|
+
var sharedModel = _v37.a;
|
|
36424
|
+
var globalCmd = _v37.b;
|
|
36425
36425
|
return $author$project$Elm$Let$toExpression(
|
|
36426
36426
|
A4(
|
|
36427
36427
|
$author$project$Elm$Let$tuple,
|
|
@@ -36457,9 +36457,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36457
36457
|
function (route) {
|
|
36458
36458
|
return A2(
|
|
36459
36459
|
$author$project$Elm$Case$patternToBranch,
|
|
36460
|
-
function (
|
|
36461
|
-
var maybeRouteParams =
|
|
36462
|
-
var thisPageData =
|
|
36460
|
+
function (_v39) {
|
|
36461
|
+
var maybeRouteParams = _v39.a;
|
|
36462
|
+
var thisPageData = _v39.b;
|
|
36463
36463
|
return A3(
|
|
36464
36464
|
$author$project$Gen$Tuple$call_.mapBoth,
|
|
36465
36465
|
A2($author$project$GenerateMain$routeVariantExpression, $author$project$GenerateMain$Model, route),
|
|
@@ -36520,7 +36520,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36520
36520
|
},
|
|
36521
36521
|
A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$ActionData, 'thisActionData', route)),
|
|
36522
36522
|
$author$project$Elm$Case$otherwise(
|
|
36523
|
-
function (
|
|
36523
|
+
function (_v40) {
|
|
36524
36524
|
return $author$project$Elm$nothing;
|
|
36525
36525
|
})
|
|
36526
36526
|
]));
|
|
@@ -36572,7 +36572,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36572
36572
|
[
|
|
36573
36573
|
A2(
|
|
36574
36574
|
$author$project$Elm$Case$patternToBranch,
|
|
36575
|
-
function (
|
|
36575
|
+
function (_v41) {
|
|
36576
36576
|
return initErrorPage.call(pageData);
|
|
36577
36577
|
},
|
|
36578
36578
|
$author$project$Elm$Pattern$ignore)
|
|
@@ -36581,9 +36581,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36581
36581
|
nothing: initErrorPage.call(pageData)
|
|
36582
36582
|
}),
|
|
36583
36583
|
$author$project$Elm$Let$letIn(
|
|
36584
|
-
function (
|
|
36585
|
-
var templateModel =
|
|
36586
|
-
var templateCmd =
|
|
36584
|
+
function (_v38) {
|
|
36585
|
+
var templateModel = _v38.a;
|
|
36586
|
+
var templateCmd = _v38.b;
|
|
36587
36587
|
return A2(
|
|
36588
36588
|
$author$project$Elm$tuple,
|
|
36589
36589
|
$author$project$Elm$record(
|
|
@@ -36693,6 +36693,13 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36693
36693
|
$author$project$Elm$Annotation$function,
|
|
36694
36694
|
_List_fromArray(
|
|
36695
36695
|
[
|
|
36696
|
+
$author$project$Elm$Annotation$maybe(
|
|
36697
|
+
$author$project$Elm$Annotation$record(
|
|
36698
|
+
_List_fromArray(
|
|
36699
|
+
[
|
|
36700
|
+
_Utils_Tuple2('indent', $author$project$Elm$Annotation$int),
|
|
36701
|
+
_Utils_Tuple2('newLines', $author$project$Elm$Annotation$bool)
|
|
36702
|
+
]))),
|
|
36696
36703
|
$author$project$Gen$Html$annotation_.html($author$project$Gen$Basics$annotation_.never)
|
|
36697
36704
|
]),
|
|
36698
36705
|
$author$project$Elm$Annotation$string))),
|
|
@@ -36824,10 +36831,10 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36824
36831
|
[
|
|
36825
36832
|
A2(
|
|
36826
36833
|
$author$project$Elm$Case$patternToBranch,
|
|
36827
|
-
function (
|
|
36828
|
-
var a =
|
|
36829
|
-
var b =
|
|
36830
|
-
var c =
|
|
36834
|
+
function (_v36) {
|
|
36835
|
+
var a = _v36.a;
|
|
36836
|
+
var b = _v36.b;
|
|
36837
|
+
var c = _v36.c;
|
|
36831
36838
|
return A3(
|
|
36832
36839
|
$author$project$Elm$triple,
|
|
36833
36840
|
A2(
|
|
@@ -36947,20 +36954,20 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36947
36954
|
function (args) {
|
|
36948
36955
|
if ((((((((args.b && args.b.b) && args.b.b.b) && args.b.b.b.b) && args.b.b.b.b.b) && args.b.b.b.b.b.b) && args.b.b.b.b.b.b.b) && args.b.b.b.b.b.b.b.b) && (!args.b.b.b.b.b.b.b.b.b)) {
|
|
36949
36956
|
var pageFormState = args.a;
|
|
36950
|
-
var
|
|
36951
|
-
var fetchers =
|
|
36952
|
-
var _v12 = _v11.b;
|
|
36953
|
-
var transition = _v12.a;
|
|
36954
|
-
var _v13 = _v12.b;
|
|
36955
|
-
var sharedData = _v13.a;
|
|
36956
|
-
var _v14 = _v13.b;
|
|
36957
|
-
var pageData = _v14.a;
|
|
36958
|
-
var _v15 = _v14.b;
|
|
36959
|
-
var navigationKey = _v15.a;
|
|
36957
|
+
var _v15 = args.b;
|
|
36958
|
+
var fetchers = _v15.a;
|
|
36960
36959
|
var _v16 = _v15.b;
|
|
36961
|
-
var
|
|
36960
|
+
var transition = _v16.a;
|
|
36962
36961
|
var _v17 = _v16.b;
|
|
36963
|
-
var
|
|
36962
|
+
var sharedData = _v17.a;
|
|
36963
|
+
var _v18 = _v17.b;
|
|
36964
|
+
var pageData = _v18.a;
|
|
36965
|
+
var _v19 = _v18.b;
|
|
36966
|
+
var navigationKey = _v19.a;
|
|
36967
|
+
var _v20 = _v19.b;
|
|
36968
|
+
var msg = _v20.a;
|
|
36969
|
+
var _v21 = _v20.b;
|
|
36970
|
+
var model = _v21.a;
|
|
36964
36971
|
return A2(
|
|
36965
36972
|
$author$project$Elm$withType,
|
|
36966
36973
|
A2(
|
|
@@ -37003,9 +37010,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37003
37010
|
[
|
|
37004
37011
|
A2(
|
|
37005
37012
|
$author$project$Elm$Case$patternToBranch,
|
|
37006
|
-
function (
|
|
37007
|
-
var pageModel =
|
|
37008
|
-
var thisPageData =
|
|
37013
|
+
function (_v23) {
|
|
37014
|
+
var pageModel = _v23.a;
|
|
37015
|
+
var thisPageData = _v23.b;
|
|
37009
37016
|
return A3(
|
|
37010
37017
|
$author$project$Gen$Tuple$call_.mapBoth,
|
|
37011
37018
|
$author$project$Elm$val('ModelErrorPage____'),
|
|
@@ -37035,7 +37042,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37035
37042
|
$author$project$Elm$Pattern$var('thisPageData')))),
|
|
37036
37043
|
A2(
|
|
37037
37044
|
$author$project$Elm$Case$patternToBranch,
|
|
37038
|
-
function (
|
|
37045
|
+
function (_v24) {
|
|
37039
37046
|
return A2(
|
|
37040
37047
|
$author$project$Elm$tuple,
|
|
37041
37048
|
A2($author$project$Elm$get, 'page', model),
|
|
@@ -37044,9 +37051,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37044
37051
|
$author$project$Elm$Pattern$ignore)
|
|
37045
37052
|
])),
|
|
37046
37053
|
$author$project$Elm$Let$letIn(
|
|
37047
|
-
function (
|
|
37048
|
-
var updatedPageModel =
|
|
37049
|
-
var pageCmd =
|
|
37054
|
+
function (_v22) {
|
|
37055
|
+
var updatedPageModel = _v22.a;
|
|
37056
|
+
var pageCmd = _v22.b;
|
|
37050
37057
|
return A2(
|
|
37051
37058
|
$author$project$Elm$tuple,
|
|
37052
37059
|
A2(
|
|
@@ -37091,9 +37098,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37091
37098
|
A2($author$project$Elm$get, 'global', model)
|
|
37092
37099
|
])),
|
|
37093
37100
|
$author$project$Elm$Let$letIn(
|
|
37094
|
-
function (
|
|
37095
|
-
var sharedModel =
|
|
37096
|
-
var globalCmd =
|
|
37101
|
+
function (_v25) {
|
|
37102
|
+
var sharedModel = _v25.a;
|
|
37103
|
+
var globalCmd = _v25.b;
|
|
37097
37104
|
return A2(
|
|
37098
37105
|
$author$project$Elm$tuple,
|
|
37099
37106
|
A2(
|
|
@@ -37194,9 +37201,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37194
37201
|
navigationKey,
|
|
37195
37202
|
$author$project$Elm$Let$letIn(
|
|
37196
37203
|
F2(
|
|
37197
|
-
function (
|
|
37198
|
-
var updatedModel =
|
|
37199
|
-
var cmd =
|
|
37204
|
+
function (_v26, _v27) {
|
|
37205
|
+
var updatedModel = _v27.a;
|
|
37206
|
+
var cmd = _v27.b;
|
|
37200
37207
|
return A2(
|
|
37201
37208
|
$author$project$Elm$Case$maybe,
|
|
37202
37209
|
A2(
|
|
@@ -37256,9 +37263,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37256
37263
|
A2($author$project$Elm$get, 'global', model)
|
|
37257
37264
|
])),
|
|
37258
37265
|
$author$project$Elm$Let$letIn(
|
|
37259
|
-
function (
|
|
37260
|
-
var updatedGlobalModel =
|
|
37261
|
-
var globalCmd =
|
|
37266
|
+
function (_v28) {
|
|
37267
|
+
var updatedGlobalModel = _v28.a;
|
|
37268
|
+
var globalCmd = _v28.b;
|
|
37262
37269
|
return A2(
|
|
37263
37270
|
$author$project$Elm$tuple,
|
|
37264
37271
|
A2(
|
|
@@ -37332,13 +37339,13 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37332
37339
|
[
|
|
37333
37340
|
A2(
|
|
37334
37341
|
$author$project$Elm$Case$patternToBranch,
|
|
37335
|
-
function (
|
|
37336
|
-
var pageModel =
|
|
37337
|
-
var thisPageData =
|
|
37338
|
-
var
|
|
37339
|
-
var maybeRouteParams =
|
|
37340
|
-
var pageUrl =
|
|
37341
|
-
var justPage =
|
|
37342
|
+
function (_v29) {
|
|
37343
|
+
var pageModel = _v29.a;
|
|
37344
|
+
var thisPageData = _v29.b;
|
|
37345
|
+
var _v30 = _v29.c;
|
|
37346
|
+
var maybeRouteParams = _v30.a;
|
|
37347
|
+
var pageUrl = _v30.b;
|
|
37348
|
+
var justPage = _v30.c;
|
|
37342
37349
|
return $author$project$Elm$Let$toExpression(
|
|
37343
37350
|
A3(
|
|
37344
37351
|
$author$project$Elm$Let$destructure,
|
|
@@ -37400,7 +37407,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37400
37407
|
A2(
|
|
37401
37408
|
$author$project$Gen$Dict$map,
|
|
37402
37409
|
F2(
|
|
37403
|
-
function (
|
|
37410
|
+
function (_v33, fetcherState) {
|
|
37404
37411
|
return A2(
|
|
37405
37412
|
$author$project$Gen$Pages$Transition$map,
|
|
37406
37413
|
function (ad) {
|
|
@@ -37417,7 +37424,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37417
37424
|
},
|
|
37418
37425
|
A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$ActionData, 'justActionData', route)),
|
|
37419
37426
|
$author$project$Elm$Case$otherwise(
|
|
37420
|
-
function (
|
|
37427
|
+
function (_v34) {
|
|
37421
37428
|
return $author$project$Elm$nothing;
|
|
37422
37429
|
})
|
|
37423
37430
|
]));
|
|
@@ -37432,12 +37439,12 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37432
37439
|
A2($author$project$Elm$get, 'global', model)
|
|
37433
37440
|
]))),
|
|
37434
37441
|
$author$project$Elm$Let$letIn(
|
|
37435
|
-
function (
|
|
37436
|
-
var updatedPageModel =
|
|
37437
|
-
var pageCmd =
|
|
37438
|
-
var
|
|
37439
|
-
var newGlobalModel =
|
|
37440
|
-
var newGlobalCmd =
|
|
37442
|
+
function (_v31) {
|
|
37443
|
+
var updatedPageModel = _v31.a;
|
|
37444
|
+
var pageCmd = _v31.b;
|
|
37445
|
+
var _v32 = _v31.c;
|
|
37446
|
+
var newGlobalModel = _v32.a;
|
|
37447
|
+
var newGlobalCmd = _v32.b;
|
|
37441
37448
|
return A2(
|
|
37442
37449
|
$author$project$Elm$tuple,
|
|
37443
37450
|
A2(
|
|
@@ -37495,7 +37502,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37495
37502
|
$author$project$Elm$Pattern$var('justPage'))))),
|
|
37496
37503
|
A2(
|
|
37497
37504
|
$author$project$Elm$Case$patternToBranch,
|
|
37498
|
-
function (
|
|
37505
|
+
function (_v35) {
|
|
37499
37506
|
return A2($author$project$Elm$tuple, model, $author$project$GenerateMain$effectNone);
|
|
37500
37507
|
},
|
|
37501
37508
|
$author$project$Elm$Pattern$ignore)
|
|
@@ -37735,7 +37742,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37735
37742
|
$author$project$Elm$Case$branch1,
|
|
37736
37743
|
routeVariant,
|
|
37737
37744
|
_Utils_Tuple2('_', $author$project$Elm$Annotation$unit),
|
|
37738
|
-
function (
|
|
37745
|
+
function (_v13) {
|
|
37739
37746
|
return mappedDecoder;
|
|
37740
37747
|
}) : A2($author$project$Elm$Case$branch0, routeVariant, mappedDecoder);
|
|
37741
37748
|
},
|
|
@@ -37917,9 +37924,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37917
37924
|
return $author$project$Elm$list(
|
|
37918
37925
|
A2(
|
|
37919
37926
|
$elm$core$List$map,
|
|
37920
|
-
function (
|
|
37921
|
-
var key =
|
|
37922
|
-
var value =
|
|
37927
|
+
function (_v12) {
|
|
37928
|
+
var key = _v12.a;
|
|
37929
|
+
var value = _v12.b;
|
|
37923
37930
|
return A2(
|
|
37924
37931
|
$author$project$Elm$tuple,
|
|
37925
37932
|
$author$project$Elm$string(key),
|
|
@@ -38054,7 +38061,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
38054
38061
|
},
|
|
38055
38062
|
A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$Model, 'templateModel', route)),
|
|
38056
38063
|
$author$project$Elm$Case$otherwise(
|
|
38057
|
-
function (
|
|
38064
|
+
function (_v10) {
|
|
38058
38065
|
return $author$project$Gen$Platform$Sub$none;
|
|
38059
38066
|
})
|
|
38060
38067
|
]));
|
|
@@ -38152,8 +38159,14 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
38152
38159
|
_List_fromArray(
|
|
38153
38160
|
[
|
|
38154
38161
|
getStaticRoutes.reference,
|
|
38155
|
-
|
|
38156
|
-
$author$project$Elm$
|
|
38162
|
+
A3(
|
|
38163
|
+
$author$project$Elm$fn2,
|
|
38164
|
+
_Utils_Tuple2('a', $elm$core$Maybe$Nothing),
|
|
38165
|
+
_Utils_Tuple2('b', $elm$core$Maybe$Nothing),
|
|
38166
|
+
F2(
|
|
38167
|
+
function (_v8, _v9) {
|
|
38168
|
+
return $author$project$Elm$string('');
|
|
38169
|
+
}))
|
|
38157
38170
|
])))))))))));
|
|
38158
38171
|
var pathsToGenerateHandler = A2(
|
|
38159
38172
|
$author$project$Elm$Extra$topLevelValue,
|
|
@@ -38235,8 +38248,14 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
38235
38248
|
_List_fromArray(
|
|
38236
38249
|
[
|
|
38237
38250
|
getStaticRoutes.reference,
|
|
38238
|
-
|
|
38239
|
-
$author$project$Elm$
|
|
38251
|
+
A3(
|
|
38252
|
+
$author$project$Elm$fn2,
|
|
38253
|
+
_Utils_Tuple2('a', $elm$core$Maybe$Nothing),
|
|
38254
|
+
_Utils_Tuple2('b', $elm$core$Maybe$Nothing),
|
|
38255
|
+
F2(
|
|
38256
|
+
function (_v6, _v7) {
|
|
38257
|
+
return $author$project$Elm$string('');
|
|
38258
|
+
}))
|
|
38240
38259
|
]))))))))))));
|
|
38241
38260
|
var action = A3(
|
|
38242
38261
|
$author$project$Elm$Declare$fn,
|
|
@@ -38904,7 +38923,7 @@ _Platform_export({'Generate':{'init':$author$project$Generate$main(
|
|
|
38904
38923
|
$elm$json$Json$Decode$field,
|
|
38905
38924
|
'templates',
|
|
38906
38925
|
$elm$json$Json$Decode$list(
|
|
38907
|
-
$elm$json$Json$Decode$list($elm$json$Json$Decode$string)))))(0)}});var isBackend = false && typeof isLamdera !== 'undefined'
|
|
38926
|
+
$elm$json$Json$Decode$list($elm$json$Json$Decode$string)))))(0)}});var isBackend = false && typeof isLamdera !== 'undefined';
|
|
38908
38927
|
|
|
38909
38928
|
function _Platform_initialize(flagDecoder, args, init, update, subscriptions, stepperBuilder)
|
|
38910
38929
|
{
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"application","source-directories":["../../src","../../tests","../../../../src","src"],"elm-version":"0.19.1","dependencies":{"direct":{"elm/core":"1.0.5","elm/json":"1.1.3","elm-community/result-extra":"2.4.0","elm-explorations/test":"1.2.2","jfmengels/elm-review":"2.4.2","mpizenberg/elm-test-runner":"5.0.0","stil4m/elm-syntax":"7.2.5"},"indirect":{"elm/html":"1.0.0","elm/parser":"1.1.0","elm/project-metadata-utils":"1.0.2","elm/random":"1.0.0","elm/time":"1.0.0","elm/virtual-dom":"1.0.3","elm-community/list-extra":"8.
|
|
1
|
+
{"type":"application","source-directories":["../../src","../../tests","../../../../src","src"],"elm-version":"0.19.1","dependencies":{"direct":{"elm/core":"1.0.5","elm/json":"1.1.3","elm-community/result-extra":"2.4.0","elm-explorations/test":"1.2.2","jfmengels/elm-review":"2.4.2","mpizenberg/elm-test-runner":"5.0.0","stil4m/elm-syntax":"7.2.5"},"indirect":{"elm/html":"1.0.0","elm/parser":"1.1.0","elm/project-metadata-utils":"1.0.2","elm/random":"1.0.0","elm/time":"1.0.0","elm/virtual-dom":"1.0.3","elm-community/list-extra":"8.7.0","miniBill/elm-unicode":"1.0.2","rtfeldman/elm-hex":"1.0.0","stil4m/structured-writer":"1.0.3"}},"test-dependencies":{"direct":{},"indirect":{}}}
|
|
@@ -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:
|
|
78
|
+
const flags = { initialSeed: 3518984952, 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 =
|
|
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:
|
|
85
|
+
initialSeed: 3518984952,
|
|
86
86
|
fuzzRuns: 100,
|
|
87
|
-
mode: "
|
|
87
|
+
mode: "consoleColor",
|
|
88
88
|
verbosity: verbosity,
|
|
89
89
|
globs: [],
|
|
90
|
-
paths: ["/
|
|
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
|
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"application","source-directories":["../../src","../../tests","../../../../src","src"],"elm-version":"0.19.1","dependencies":{"direct":{"elm/core":"1.0.5","elm/html":"1.0.0","elm/json":"1.1.3","elm/regex":"1.0.0","elm-community/result-extra":"2.4.0","elm-explorations/test":"1.2.2","jfmengels/elm-review":"2.4.2","mdgriffith/elm-codegen":"2.0.0","mpizenberg/elm-test-runner":"5.0.0","stil4m/elm-syntax":"7.2.5","the-sett/elm-syntax-dsl":"6.0.2"},"indirect":{"Chadtech/elm-bool-extra":"2.4.2","elm/parser":"1.1.0","elm/project-metadata-utils":"1.0.2","elm/random":"1.0.0","elm/time":"1.0.0","elm/virtual-dom":"1.0.3","elm-community/basics-extra":"4.1.0","elm-community/list-extra":"8.
|
|
1
|
+
{"type":"application","source-directories":["../../src","../../tests","../../../../src","src"],"elm-version":"0.19.1","dependencies":{"direct":{"elm/core":"1.0.5","elm/html":"1.0.0","elm/json":"1.1.3","elm/regex":"1.0.0","elm-community/result-extra":"2.4.0","elm-explorations/test":"1.2.2","jfmengels/elm-review":"2.4.2","mdgriffith/elm-codegen":"2.0.0","mpizenberg/elm-test-runner":"5.0.0","stil4m/elm-syntax":"7.2.5","the-sett/elm-syntax-dsl":"6.0.2"},"indirect":{"Chadtech/elm-bool-extra":"2.4.2","elm/parser":"1.1.0","elm/project-metadata-utils":"1.0.2","elm/random":"1.0.0","elm/time":"1.0.0","elm/virtual-dom":"1.0.3","elm-community/basics-extra":"4.1.0","elm-community/list-extra":"8.7.0","elm-community/maybe-extra":"5.3.0","miniBill/elm-unicode":"1.0.2","rtfeldman/elm-hex":"1.0.0","stil4m/structured-writer":"1.0.3","the-sett/elm-pretty-printer":"3.0.0"}},"test-dependencies":{"direct":{},"indirect":{}}}
|
|
@@ -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:
|
|
78
|
+
const flags = { initialSeed: 188222656, 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
|