Commit Graph

113 Commits

Author SHA1 Message Date
Dillon Kearns
f24f240cf1 Migrate codegen for dataForRoute. 2022-09-17 19:46:44 -07:00
Dillon Kearns
ab91fc7ee5 Generate subscriptions with elm-codegen. 2022-09-16 16:12:21 -07:00
Dillon Kearns
ced9fc53cd Generate init function with elm-codegen. 2022-09-16 13:48:42 -07:00
Dillon Kearns
3301d3110c Extract helper. 2022-09-16 13:11:38 -07:00
Dillon Kearns
652215fdf9 Migrate more codegen code. 2022-09-16 13:05:17 -07:00
Dillon Kearns
2a55081a75 Generate surrounding code for init. 2022-09-16 10:40:19 -07:00
Dillon Kearns
e013cc6e1a Migrate more codegen code. 2022-09-16 09:30:02 -07:00
Dillon Kearns
32c7f7a48c Migrate more code. 2022-09-16 09:16:55 -07:00
Dillon Kearns
dc92df986f Migrate more code. 2022-09-16 09:11:06 -07:00
Dillon Kearns
6e5470cd54 Migrate more code to codegen. 2022-09-16 08:59:55 -07:00
Dillon Kearns
34be346d73 Migrate more code generation. 2022-09-16 07:23:27 -07:00
Dillon Kearns
a81d4a6da9 Implement more codegen. 2022-09-15 16:39:07 -07:00
Dillon Kearns
d33489e02e Implement more generation. 2022-09-15 15:26:15 -07:00
Dillon Kearns
b4a7b0a315 Implement more config generation. 2022-09-15 14:53:33 -07:00
Dillon Kearns
aa1a4ba017 Geneate more config. 2022-09-15 14:32:25 -07:00
Dillon Kearns
7b14ac59d9 Generate encode/decode response. 2022-09-15 14:30:55 -07:00
Dillon Kearns
a34bb131b5 Generate more of config. 2022-09-15 14:15:39 -07:00
Dillon Kearns
c570cf71a1 Finish generating getStaticRoutes. 2022-09-15 14:10:35 -07:00
Dillon Kearns
3eb61c8151 Build up more generated Main code. 2022-09-15 14:05:21 -07:00
Dillon Kearns
5b4754de37 Generate stub. 2022-09-15 13:49:43 -07:00
Dillon Kearns
2d86d57800 Move value to let. 2022-09-15 13:46:54 -07:00
Dillon Kearns
34f12fa475 Generate globalHeadTags. 2022-09-15 13:44:59 -07:00
Dillon Kearns
f18b67a728 Generate config.site. 2022-09-15 13:23:03 -07:00
Dillon Kearns
bf8e94d787 Wire through phase string. 2022-09-15 13:21:30 -07:00
Dillon Kearns
b67a19f31a Add more definitions to config. 2022-09-15 13:18:27 -07:00
Dillon Kearns
7755789fd2 Fill in some more config values. 2022-09-15 12:52:06 -07:00
Dillon Kearns
7f2541ddbf Fill in some config values. 2022-09-15 12:48:39 -07:00
Dillon Kearns
242906d00c Generate ports. 2022-09-15 12:38:52 -07:00
Dillon Kearns
81af7e9cf6 Generate main function. 2022-09-15 12:31:05 -07:00
Dillon Kearns
42d5bc2de2 Extract helper. 2022-09-15 12:27:23 -07:00
Dillon Kearns
09d127c3e1 Generate config boilerplate. 2022-09-15 12:24:31 -07:00
Dillon Kearns
2801ec542a Build up more generated Main.elm code. 2022-09-15 11:11:05 -07:00
Dillon Kearns
d98fbfe2bf Add starting point for wiring up elm-codegen for Main.elm. 2022-09-15 10:59:33 -07:00
Dillon Kearns
ac57661c61 Add starting point for RoutePattern.toModuleName helper. 2022-09-15 10:36:56 -07:00
Dillon Kearns
cfd4832d10 Remove a redundant case. 2022-09-15 09:45:38 -07:00
Dillon Kearns
e9ecdf582e Fix casing in route matching. 2022-09-14 15:53:27 -07:00
Dillon Kearns
a29d3a8b85 Don't generate catchall in case expression when it's alreaady covered by a top-level optional splat route. 2022-09-14 14:33:50 -07:00
Dillon Kearns
88dbfb5a78 Remove generated Debug.todo. 2022-09-14 14:28:37 -07:00
Dillon Kearns
60329582d1 Extract out exposed generator functions to one place. 2022-09-14 14:08:17 -07:00
Dillon Kearns
cd896a3a45 Rearrange code. 2022-09-14 14:06:21 -07:00
Dillon Kearns
79ab6858bf Re-use top-level values. 2022-09-14 10:44:24 -07:00
Dillon Kearns
dda46333e7 Reuse declaration. 2022-09-14 10:32:26 -07:00
Dillon Kearns
b97dec34d1 Extract definition. 2022-09-14 10:30:37 -07:00
Dillon Kearns
2dcc1d0818 Remove duplicate definition. 2022-09-14 10:28:16 -07:00
Dillon Kearns
4c2e9d264a Add additional param types. 2022-09-13 14:25:51 -07:00
Dillon Kearns
08015f49b9 Wire up baseUrl for Route module generation. 2022-09-13 10:49:51 -07:00
Dillon Kearns
92365d95b1 Generate Route.withoutBaseUrl. 2022-09-13 10:47:03 -07:00
Dillon Kearns
47751f3a2e Generate Route.link helper. 2022-09-13 10:38:16 -07:00
Dillon Kearns
621b7a76c1 Generate toLink function. 2022-09-13 10:31:01 -07:00
Dillon Kearns
b4aceaeb64 Add missing catchall branch. 2022-09-13 08:50:40 -07:00
Dillon Kearns
90ae03c271 Improve some type annotations that are getting referenced incorrectly without the help of Elm.withType (see https://github.com/mdgriffith/elm-codegen/issues/48). 2022-09-13 08:42:12 -07:00
Dillon Kearns
ef9b664cb3 Fix redirectTo generated definition. 2022-09-13 08:20:29 -07:00
Dillon Kearns
24622df871 Generate routeToPath. 2022-09-13 08:17:23 -07:00
Dillon Kearns
56558ca126 Use segmentsToRoute in generated module. 2022-09-13 07:11:41 -07:00
Dillon Kearns
392389ebbc Include Just in front of route helper. 2022-09-13 06:35:42 -07:00
Dillon Kearns
27d13c5a15 Prepare for generating 2 branches for optional params. 2022-09-12 21:45:34 -07:00
Dillon Kearns
9e9cf969e9 Use elm-syntax-dsl for case expression. 2022-09-12 16:59:11 -07:00
Dillon Kearns
012aac229a Add initial function generation for segmentsToRoute. 2022-09-12 15:01:59 -07:00
Dillon Kearns
2e881e0de5 Add more functions to generated Route.elm. 2022-09-12 14:36:54 -07:00
Dillon Kearns
d38d398460 Include hardcoded baseUrl in generated Route file. 2022-09-12 13:43:02 -07:00
Dillon Kearns
3f12c6ccb5 Add test for dynamic route param. 2022-09-12 12:16:18 -07:00
Dillon Kearns
d8639e617b Pass in list of templates to new code generation for Route module. 2022-09-12 11:49:02 -07:00
Dillon Kearns
ba6f0903ce Add boilerplate for elm-codegen. 2022-09-12 10:16:00 -07:00