Commit Graph

4514 Commits

Author SHA1 Message Date
Dillon Kearns
a39c381264 Inline code. 2022-09-13 14:31:50 -07:00
Dillon Kearns
4c2e9d264a Add additional param types. 2022-09-13 14:25:51 -07:00
Dillon Kearns
d9f0a3ea08 Remove unused code. 2022-09-13 10:58:03 -07:00
Dillon Kearns
59a7165fa3 Add missing dependencies. 2022-09-13 10:54:49 -07:00
Dillon Kearns
ba517563f7 Remove hardcoded value. 2022-09-13 10:54:19 -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
c93e3d8f85 Fix case for index route codegen. 2022-09-13 08:55:41 -07:00
Dillon Kearns
b4aceaeb64 Add missing catchall branch. 2022-09-13 08:50:40 -07:00
Dillon Kearns
c85463933f Add missing dependency to example project. 2022-09-13 08:50:31 -07:00
Dillon Kearns
f07f5feac9 Remove debug.todo. 2022-09-13 08:50:24 -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
c81649d93b Handle required splats in generated route module. 2022-09-13 06:51:21 -07:00
Dillon Kearns
27e58f1027 Handle optional case with correctly generating record argument. 2022-09-13 06:37:51 -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
0e942f0a5d Add annotation. 2022-09-12 21:38:24 -07:00
Dillon Kearns
00a59d6756 Extract function. 2022-09-12 21:37:01 -07:00
Dillon Kearns
aba66fef3b Handle optional ending. 2022-09-12 21:24:14 -07:00
Dillon Kearns
693094e6bf Generate records and case expression with no ending. 2022-09-12 21:05:01 -07:00
Dillon Kearns
b75e285247 Remove some hardcoding. 2022-09-12 17:02:54 -07:00
Dillon Kearns
378a8d7b41 Remove some hardcoding. 2022-09-12 17:02:19 -07:00
Dillon Kearns
b93c98ba23 Remove hardcoded name. 2022-09-12 17:00:58 -07:00
Dillon Kearns
9e9cf969e9 Use elm-syntax-dsl for case expression. 2022-09-12 16:59:11 -07:00
Dillon Kearns
fe3c79f30a Add test setup for branch generator. 2022-09-12 15:08: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
a9ac1ca707 Add test case for optional segment. 2022-09-12 13:21:41 -07:00
Dillon Kearns
261cd64ed5 Handle optional splat. 2022-09-12 13:20:44 -07:00
Dillon Kearns
2115b9be9d Handle splat route for generating variants. 2022-09-12 13:19:25 -07:00
Dillon Kearns
fdefee7036 Update send-grid repo branch. 2022-09-12 12:17:32 -07:00
Dillon Kearns
7df5986d80 Sort routes for elm-codegen generator flag. 2022-09-12 12:16:35 -07:00
Dillon Kearns
3f12c6ccb5 Add test for dynamic route param. 2022-09-12 12:16:18 -07:00
Dillon Kearns
c27459fa8d Add RoutePattern.toVariant helper. 2022-09-12 11:59:36 -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
aafbfd22d2 Move decapitlize logic out of parsing for RoutePattern and into building up record fields. 2022-09-12 11:47:51 -07:00
Dillon Kearns
ba6f0903ce Add boilerplate for elm-codegen. 2022-09-12 10:16:00 -07:00
Dillon Kearns
a0fa6c2188 Run the elm-pages code generation step and elm-codegen install as part of codegen command. 2022-09-11 07:50:41 -07:00
Dillon Kearns
80fb8a1466 Simplify elm-codegen setup in todos app. 2022-09-11 07:50:12 -07:00
Dillon Kearns
928830ead7 Update package-lock. 2022-09-10 12:22:01 -07:00
Dillon Kearns
f4d524bc9e Fix build. 2022-09-10 12:20:28 -07:00
Dillon Kearns
c628c073a0 Add missing doc comments. 2022-09-10 11:05:25 -07:00
Dillon Kearns
be28313594 Fix module name patterns. 2022-09-10 10:53:46 -07:00
Dillon Kearns
efc81b9401 Report errors for missing modules or invalid module name syntax. 2022-09-10 10:52:39 -07:00